diff options
| author | 2023-03-26 23:19:41 +0200 | |
|---|---|---|
| committer | 2023-03-26 23:19:41 +0200 | |
| commit | f3af3f0f3d4da8023c5e918545d47a51afc4b6c1 (patch) | |
| tree | 4d2f4e92b45c3f627949f390d9ab0f48adceff71 /composer.json | |
| parent | 05e10f0e757bcb381e84ad3b2dccd2738e29ff08 (diff) | |
Automated test towards PHPStan level 6 (#5230)
* Automated test towards PHPStan level 6
Contributes to https://github.com/FreshRSS/FreshRSS/issues/4112
With this automated tests, files that are passing Level 6 are tested to avoid regressions towards Level 5 (which is the current baseline for the whole code-base)
It is included when calling `make test-all` or can be called specifically by `composer run-script phpstan-next`
* Test and example with 3 new passing files
Diffstat (limited to 'composer.json')
| -rw-r--r-- | composer.json | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/composer.json b/composer.json index 2234a0e13..461c2f457 100644 --- a/composer.json +++ b/composer.json @@ -57,6 +57,7 @@ "phpcs": "phpcs . -s", "phpcbf": "phpcbf . -p -s", "phpstan": "phpstan analyse --memory-limit 512M .", + "phpstan-next": "phpstan analyse --level 6 --memory-limit 512M $(find . -type d -name 'vendor' -prune -o -name '*.php' -o -name '*.phtml' | grep -Fxvf ./tests/phpstan-next.txt | sort | paste -s)", "phpunit": "phpunit --bootstrap ./tests/bootstrap.php --verbose ./tests", "translations": "cli/manipulate.translation.php -a format", "test": [ @@ -64,7 +65,8 @@ "@phtml-lint", "@phpunit", "@phpcs", - "@phpstan" + "@phpstan", + "@phpstan-next" ], "fix": [ "@translations", |
