action-phpcs-code-review icon indicating copy to clipboard operation
action-phpcs-code-review copied to clipboard

Invalid PHPCS sniff(s) specified in options or options file error

Open pogla opened this issue 5 years ago • 2 comments

Hi

I'm getting this error:

Screenshot 2020-09-23 at 12 32 07

With these settings:

Screenshot 2020-09-23 at 12 32 18

Does anyone know why the bot is complaining?

pogla avatar Sep 23 '20 10:09 pogla

I'm having the same thing happen with these... interesting:

Invalid PHPCS sniff(s) specified in options or options file. Those have been ignored temporarily. Please update the options so that scanning can continue as expected.

Option name: --phpcs-sniffs-exclude Invalid sniff(s): Squiz.Commenting.FunctionComment.Missing, Squiz.Commenting.FunctionComment.ParamCommentFullStop, Squiz.Commenting.InlineComment.InvalidEndChar

forjoyilive avatar Dec 03 '21 21:12 forjoyilive

Here's the line I have in phpcs.yml:

PHPCS_SNIFFS_EXCLUDE: "WordPress.Files.FileName,Squiz.Commenting.FunctionComment.ParamCommentFullStop,Squiz.Commenting.FunctionComment.Missing,Squiz.Commenting.InlineComment.InvalidEndChar"

So it looks like WordPress.Files.FileName is recognized, but the others aren't. This is true even though (without these exclusions) we get Squiz.Commenting.FunctionComment.ParamCommentFullStop and others being reported on our commits.

image

forjoyilive avatar Dec 03 '21 22:12 forjoyilive