Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[Feat] Add PHPCsFixer wrapper #219
It's still not a "fix" option that will correct code direclty, but this allow to use Fixer from PhpCsFixer to indicate how should be some files. It wrap theses fixer into our "Insights"
I have been mainly helped with this site to get usefull fixer to add in our metrics.
I tried to add only those that I did not found match in PhpCodeSniffer.
This PR will be complete when:
@olivernybroe I refactored a bit how InsightFactory load Sniffs and Fixers insights with an InsightLoader, that are provided from Container thanks to a tag.
That avoid adding custom code in InsightFactory later when we want add new Insights (from phpstan for example). In the same way, filesprocessors are now retrieved by tag also.
That means if we want add an other file processor, less work is required. Just create an specific InsightLoader, a specific FileProcessor, and inject them in config/container.php