-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: configure PHPStan static analysis #87
Conversation
|
Until this is merged/rejected, Ill be tracking error level => fixes in this comment
(Level 9 addresses the use of |
This PR sets up PHPStan linting for the project.
No CI is currently included, since the plugin fails even scanning at Level 0, but in light of the results of the
phpcs
audit, I think it makes sense to already include it since you gotta start somewhere.Follow-up PRs will address actual code issues unearthed by these lints.
To test,
composer install
composer phpstan
.phpstan.neon.dist
tophpstan.neon
, and change theparameters.level
to8
.composer phpstan
Additional notes
Once you're ready to add a
.distignore
file or a composerarchive
property to this project, thephpstan.neon.dist
file and/phpstan
directory should be excluded.