From e3754c2bbf379336fef82dfa47ec407b7325b9c0 Mon Sep 17 00:00:00 2001 From: Kevin Pfeifer Date: Thu, 19 Jan 2023 21:18:21 +0100 Subject: [PATCH] new stan setup --- .editorconfig | 3 +++ .gitignore | 1 + .phive/phars.xml | 5 +++++ composer.json | 10 +++++----- 4 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 .phive/phars.xml diff --git a/.editorconfig b/.editorconfig index ad2a888ea..f7e2a692a 100644 --- a/.editorconfig +++ b/.editorconfig @@ -14,5 +14,8 @@ trim_trailing_whitespace = true [*.neon] indent_style = tab +[phars.xml] +indent_size = 2 + [*.js] indent_size = 2 diff --git a/.gitignore b/.gitignore index 4c3c5c3e0..1b4b968aa 100644 --- a/.gitignore +++ b/.gitignore @@ -22,6 +22,7 @@ package-lock.json /.phpunit.result.cache /nbproject/ /composer.lock +/tools /vendor /phpunit.xml /webroot/css/style.css.map diff --git a/.phive/phars.xml b/.phive/phars.xml new file mode 100644 index 000000000..b3c9592eb --- /dev/null +++ b/.phive/phars.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/composer.json b/composer.json index 8faa34958..930ebe771 100644 --- a/composer.json +++ b/composer.json @@ -51,15 +51,15 @@ "scripts": { "cs-check": "phpcs --colors --parallel=16 -p src/ tests/", "cs-fix": "phpcbf --colors --parallel=16 -p src/ tests/", - "phpstan": "phpstan.phar analyse", - "psalm": "psalm.phar --show-info=false", + "phpstan": "tools/phpstan analyse", + "psalm": "tools/psalm --show-info=false", "stan": [ "@phpstan", "@psalm" ], - "stan-baseline": "phpstan.phar --generate-baseline", - "psalm-baseline": "psalm.phar --set-baseline=psalm-baseline.xml", - "stan-setup": "cp composer.json composer.backup && composer require --dev symfony/polyfill-php81 phpstan/phpstan:~1.9.0 psalm/phar:~5.1.0 && mv composer.backup composer.json", + "stan-baseline": "tools/phpstan --generate-baseline", + "psalm-baseline": "tools/psalm --set-baseline=psalm-baseline.xml", + "stan-setup": "phive install", "test": "phpunit" }, "minimum-stability": "dev",