-
Notifications
You must be signed in to change notification settings - Fork 181
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
[2.x] Add code checks #468
Comments
Why you don't want to rely on require-dev? IMO it's hard for contributors later, since they have to run additional commands to run the checks locally... |
Using Docker was a suggestion. You're right, it's easier to install analysis tools with Composer. |
I was trying to work on this but it seems a big mess: we have too many dev dependencies which I cannot skip or the analysis will fail, and at the same time PHPCR doesn't allow PHPUnit 7, which is required to use phpstan/phpstan-phpunit... It seems to me that we're having too many optional dependencies in this package. Maybe we should split them? |
Could you please explain this? What is failing? About PHPCR, we may drop it from this bundle, there have been no issue about PHPCR during five years, maybe it's not used much. |
PHPStan requires all used dependencies to be installed because it need to know all symbols used in our code. |
Add jobs in Travis CI for:
Code analysis is fast but having two different jobs will make results easier to read if there's an error.
We could rely on Docker image https://github.com/jakzal/phpqa instead of adding dependencies to
dev
.Some ideas for the configuration of these tools:
Assigned to @Jean85
The text was updated successfully, but these errors were encountered: