1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Merge pull request #7029 from rarila/composer-scripts

This commit is contained in:
Bruce Weirdan 2021-12-01 01:02:03 +02:00 committed by GitHub
commit b8e34edd0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 13 deletions

View File

@ -102,17 +102,26 @@
"psalter"
],
"scripts": {
"all-tests": [
"phpcs",
"@php ./psalm --find-dead-code",
"phpunit"
],
"psalm": "@php ./psalm --find-dead-code",
"cs": "phpcs -p",
"cs-fix": "phpcbf -p",
"lint": "parallel-lint ./src ./tests",
"phpunit": "paratest --runner=WrapperRunner",
"phpunit-std": "phpunit",
"psalm": "@php ./psalm --find-dead-code",
"tests": [
"phpcs",
"phpunit"
"@lint",
"@cs",
"@psalm",
"@phpunit"
]
},
"scripts-descriptions": {
"cs": "Checks that the code conforms to the coding standard.",
"cs-fix": "Automatically correct coding standard violations.",
"lint": "Runs unit tests.",
"phpunit": "Runs unit tests in parallel.",
"phpunit-std": "Runs unit tests.",
"psalm": "Runs static analysis.",
"tests": "Runs all available tests."
}
}

View File

@ -34,10 +34,6 @@ Lastly, working to improve static analysis tools will also make you a better PHP
Before you send a pull request, make sure you follow these guidelines:
Run integration checks locally:
- `composer cs` - checks the code is properly linted
- `vendor/bin/paratest` - runs PHPUnit tests in parallel
- `./psalm` - runs Psalm on itself
Run integration checks locally: `composer tests`
If you're adding new features or fixing bugs, dont forget to add tests!