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:
commit
b8e34edd0d
@ -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."
|
||||
}
|
||||
}
|
||||
|
@ -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, don’t forget to add tests!
|
||||
|
Loading…
Reference in New Issue
Block a user