Add ability to register custom reporters #7995
llaville
started this conversation in
Feature ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Because I've worked on two reports (an improved version of standard
txt
format, and a newsarif
format), I'm a bit sad to see that there is no ability yet to register it as it's case for custom fixers.So today, I've worked on it, and I'm able to propose a solution (already available on my fork : see https://github.com/llaville/PHP-CS-Fixer/tree/features/add_custom_reporters)
This new feature is summarized like that : https://github.com/llaville/PHP-CS-Fixer/blob/features/add_custom_reporters/doc/custom_reports.rst
E.g, may be invoke as standard command
vendor/bin/php-cs-fixer check src/SarifLog.php --format sarif
With a
.php-cs-fixer.php
like this :WDYT about this new feature idea ?
Beta Was this translation helpful? Give feedback.
All reactions