Add static analysis in the test command
Open
@aminnairi is already working on this.
Since Oct 3, 2020.
Assessment
This issue has not been assessed yet.
Description
enhancement
Description
Static analysis helps catching bugs earlier.
Proposal
- Using phpstan/phpstan in the make test command:
php vendor/bin/phpunit && php vendor/bin/phpstan analyse sources - Use the level 8 for a maximum of consistency
- Use a
phpstan.neonconfiguration file
Worarkound solutions
None.
Notes
None.
- Dominant language
- PHP
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Similar issues
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·
-
0. Needs triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nextcloud/fulltextsearch#1011 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
phpstan/phpstan-doctrine#794 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Automattic/static-site-importer#1767 ·