grunt-phpcs icon indicating copy to clipboard operation
grunt-phpcs copied to clipboard

Grunt plugin for running PHP Code Sniffer.

Results 23 grunt-phpcs issues
Sort by recently updated
recently updated
newest added

If there are non-english characters in the source the character count is off with the default encoding. This causes false positives as a line that has a char count close...

Fixes for the issue #44 : Error when there is no file to process

When the task has no file to process, phpcs produces the following error : Running "phpcs:app" (phpcs) task ERROR: You must supply at least one file or directory to process....

After some time researching the issue (by way of #23) I learned that grunt's core handling of files configuration already produces a flattened list of all files for task processing....

If overriding the reportFile property from specified to `false`, it will pass thru --report-file=false to phpcs. This suppresses that behavior to get stdout as expected.

So, I have a fairly specific use case (though perhaps not completely rare): We have legacy code that does not conform to the style, so while we're working on fixing...

Rather than having to define `src` inside of a task, it would be useful to define it globally and with each task being able to override it if necessary. A...

Trying to use globbing (so we can do ignores) causes the argument list to be too long to phpcs. Commit 933d01a seemed to make sense, but actually passing those options...

Your docs make no mention of being able to CS multiple directories at once, yet this is available in the command line. Please update your ReadMe to demonstrate the following...

I suspect this is something to do with too many files... but isn't an issue for grunt-phplint using the same globbing pattner: _Gruntfile.js_ ``` js ... phpcs: { all: {...