php-coding-standard icon indicating copy to clipboard operation
php-coding-standard copied to clipboard

Add support for FriendsOfPHP/PHP-CS-Fixer

Open spaceemotion opened this issue 5 years ago • 2 comments
trafficstars

I've tried to implement support for FriendsOfPHP/PHP-CS-Fixer, but there are a few issues that prevent me from completing it:

  • No real ability to specify files to look through (there's https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/4279 but it doesn't work without a config)
  • No detailed output. It only shows me a list of files that are invalid, but no line numbers or anything.

spaceemotion avatar May 06 '20 10:05 spaceemotion

  • you may provide multiple files, eg https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/4279#issuecomment-820615223 (specifying a config shouldn't be an issue)
  • use the schema, like checkfile, to receive such details: https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/2.18/doc/report-schema/checkstyle.xsd

keradus avatar Apr 15 '21 18:04 keradus

@keradus Thanks a lot for the followup! Will see what I can do....

spaceemotion avatar Apr 15 '21 21:04 spaceemotion