cakephp-codesniffer icon indicating copy to clipboard operation
cakephp-codesniffer copied to clipboard

Version 4.7 shows this warning

Open wp4nuv opened this issue 2 years ago • 1 comments
trafficstars

Related to #382 Just created a project with CakePHP 4 and configured PHPStorm to use phpcs and this standard. Issue 382 refers to a warning relating to slevomat/coding-standard. Version 4.7 shows this error in PHPStorm:

phpcs: ERROR: Referenced sniff "SlevomatCodingStandard.Arrays.TrailingArrayComma" does not exist

I haven't begun coding on the project yet, so I'm unaware of any problems running phpcs in PHPStorm, but considering the implications in VSCode stated in 382, this may also impact that tool.

SlevomatCodingStandard installed is version 8.11.1

wp4nuv avatar Apr 14 '23 18:04 wp4nuv

Ok, just confirmed that phpcs fails to run, listing that same error. Interestingly, that sniff exists in the 8.11.1 version. In PHPStorm, I have configured phpcs to use the CakePHP standard.

[email protected] in /shared/httpd/api4.blnsoftware $ phpcbf --colors --standard=vendor/cakephp/cakephp-codesniffer/CakePHP -p src/
ERROR: Referenced sniff "SlevomatCodingStandard.Arrays.TrailingArrayComma" does not exist

Run "phpcbf --help" for usage information

wp4nuv avatar Apr 14 '23 18:04 wp4nuv

This must be a misconfig of sorts, closing for now.

dereuromark avatar Nov 30 '24 04:11 dereuromark