action-phpcs-code-review
action-phpcs-code-review copied to clipboard
Invalid PHPCS sniff(s) specified in options or options file error
Hi
I'm getting this error:
With these settings:
Does anyone know why the bot is complaining?
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
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.
