Juliette
Juliette
**Describe the bug** I've done some - not entirely scientific - benchmark checks and am finding that enabling the caching option when on Windows (not sure about other OSes), makes...
While testing #2992, I really missed an option to clear the cache, but allow for it to be set. The `--no-cache` option only tells PHPCS to not _use_ the cache...
A new security advisory and associated article have recently been published about an attack vector called "Trojan Source" and someone already suggested to me to write a sniff to detect...
The `Generic.ControlStructures.DisallowYodaConditions` reports a `Usage of Yoda conditions is not allowed; switch the expression order` error for the below code, which IMO is incorrect (the error, not the code). ```php...
As I've been seeing new issues popping up elsewhere with some of the recent changes in PHP 8.1, I had a look at the latest test run for this repo...
I may be missing something, but AFAICS and in contrast to the other `//phpcs:` annotations, using `// phpcs:set Standard.Category.Sniff PropertyName value` is not file-based, but changes the sniff property for...
#### Rule: Removal of WP admin pages is not allowed. The exception would be a child theme removing a theme admin submenu page added by the parent theme. Ref: https://github.com/WPTRT/WordPress-Coding-Standards/issues/12#issuecomment-231783316...
#### Rule type: Error / Warning #### Rule: Check for incorrect usage of certain parameters in WP functions (hard-coded) and provide valid alternatives based on the parameter passed. > hardcoded...
#### Rule type: Error #### Rule: Verify a number of typical php snippets which are known as malware indicators The list of snippets might need to be expanded. Input welcome....
WPCS 1.0.0 added a new `WordPress.WP.EnqueuedResourceParameters` sniff which checks that when registering/enqueuing scripts and styles, a `$version` is passed correctly so new versions will break out of the browser cache...