grunt-phpcs
grunt-phpcs copied to clipboard
Grunt plugin for running PHP Code Sniffer.
I wonder if this repository is still actively maintained. There are a lot of useful PRs there and none of them gets merged. Some of them are there since May...
The document was missing spaces between the hashes and headings, meaning GitHub wasn't displaying them properly.
Other people have reported it as well: https://stackoverflow.com/questions/37450185/php-code-sniffer-via-grunt-is-incredibly-slow/37682779 https://stackoverflow.com/questions/37611312/php-code-sniffer-execution-through-grunt-is-extremely-slow Couldn't something be done to improve this ?
I've discovered through trial and error that I can configure PHPCS features that this library doesn't directly support through configuration. Example: ``` options: { // hack: args not directly supported...
https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#ignoring-files-and-folders
If you use directory instead of file paths, the success message is worded oddly. ``` >> 3 files lint free. ``` See https://github.com/SaschaGalley/grunt-phpcs/blob/master/tasks/phpcs.js#L69 The simplest fix would be to change...
facing issues while generating checkstyle report. please suggest with some code snippet.
When running a source report, as part of `grunt phpcs`, I'm getting the report generated at https://gist.github.com/GaryJones/156f24e88c71ab453937 > Warning: str_repeat(): Second argument has to be greater than or equal to...
- Added "force" option to allow to continue running Grunt in the event of failures. - Removed empty spaces.