-
-
Notifications
You must be signed in to change notification settings - Fork 283
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
[OnHold|Feat] Add PhpStan #211
Conversation
…into feat-phpstan # Conflicts: # src/Domain/Insights/InsightFactory.php
This class is responsible for running the sniffs and rules from phpcs and phpstan
This will be huge. |
…into feat-phpstan
Removed the usage of ECS container: We now handle the file processors ourself in the runner class Added more phpstan rules: We now use a lot more rules from phpstan Fixed a bug with non autoloaded files: Files which is not part of the autoload did not work with phpstan. Removed the need for phpstan analyser: We now only use the parser, this improves the speed a lot Merged sniff insight and sniff decorator together: The sniff insights and decorator are now 1 class instead of two Removed errorAndDiffCollector: We don't use the collector anymore. We now store the sniff errors inside the sniff itself.
This latest commit is a rather large refactoring. It makes some gigantic changes to the whole structure of how we run everything. (Sorry that this PR is getting out of the scope for adding phpstan only) |
Closing this PR as there is soo many changes since I made this that it's probably quicker to start over... |
This PR adds support for phpstan.
It takes the same approach as the sniffers and actually uses the same file processor class.
The PR is based off the new formatter branch #201, as I didn't want to implement the
HasDetails
interface twice. So it is on hold until the formatter branch is merged in.InsightFactory
is required, as the naming in there and so on is kinda random now, as it also handles rules from phpstan and not only sniffs.RuleDecorator
class.resolves: #165