From fa6ef63bc6104b2e959c77c67d586ecde6a3822c Mon Sep 17 00:00:00 2001 From: Kevin Pfeifer Date: Thu, 19 Jan 2023 21:27:06 +0100 Subject: [PATCH] new stan setup --- .editorconfig | 3 +++ .gitignore | 1 + .phive/phars.xml | 5 +++++ composer.json | 10 ++++++++++ 4 files changed, 19 insertions(+) create mode 100644 .phive/phars.xml diff --git a/.editorconfig b/.editorconfig index b88269d0..ce4e6c97 100644 --- a/.editorconfig +++ b/.editorconfig @@ -16,5 +16,8 @@ end_of_line = crlf [*.yml] indent_size = 2 +[phars.xml] +indent_size = 2 + [*.neon] indent_style = tab diff --git a/.gitignore b/.gitignore index 35fd880e..afd585a4 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ /composer.lock /phpunit.xml /tmp +/tools /vendor .phpunit.result.cache diff --git a/.phive/phars.xml b/.phive/phars.xml new file mode 100644 index 00000000..b3c9592e --- /dev/null +++ b/.phive/phars.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/composer.json b/composer.json index b84c67c1..210a08fc 100644 --- a/composer.json +++ b/composer.json @@ -58,8 +58,18 @@ "scripts": { "check": [ "@cs-check", + "@stan", "@test" ], + "phpstan": "tools/phpstan analyse", + "psalm": "tools/psalm --show-info=false", + "stan": [ + "@phpstan", + "@psalm" + ], + "stan-baseline": "tools/phpstan --generate-baseline", + "psalm-baseline": "tools/psalm --set-baseline=psalm-baseline.xml", + "stan-setup": "phive install", "cs-check": "phpcs --colors -p src/ tests/", "cs-fix": "phpcbf --colors -p src/ tests/", "test": "phpunit",