VIP-Coding-Standards icon indicating copy to clipboard operation
VIP-Coding-Standards copied to clipboard

PHP_CodeSniffer ruleset to enforce WordPress VIP coding standards.

Results 124 VIP-Coding-Standards issues
Sort by recently updated
recently updated
newest added
trafficstars

## What problem would the enhancement address for VIP? Right now here's the rule that we see when you try to use `flush_rewrite_rules()`: > 🚫 Error( severity 5 ): flush_rewrite_rules...

Type: Enhancement

## What problem would the enhancement address for VIP? Sometimes certain core assets are deregistered/dequeued which break Query Monitor, which adds an extra step during debugging to track that down....

We typically don't have any errors that are below 5 (with 5 being the default severity level). https://github.com/Automattic/VIP-Coding-Standards/blob/60ad148168258afccd05ff0429d53a7e810270a5/WordPress-VIP-Go/ruleset.xml#L259-L261 However, on the VIP Go ruleset, we have `WordPressVIPMinimum.Security.ProperEscapingFunction.htmlAttrNotByEscHTML` marked as an...

## What problem would the enhancement address for VIP? It would be useful if there was a way for clients to see a more granular report for checking VIP Go...

Type: Enhancement
Type: Documentation

## Describe the solution you'd like VIPCS could benefit from having a custom IniSet sniff...similar to https://github.com/WordPress/WordPress-Coding-Standards/blob/41f5a9c66ff814863bc479fb52fd6cd1abc87e28/WordPress/Sniffs/PHP/IniSetSniff.php#L55-L65, but we want to be able to customize the whitelist property for the...

Type: Enhancement

## Describe the solution you'd like We should add to the `$HTMLExecutingFunctions` property the following functions: - insertAdjacentHTML - outerHTML ## What code should be reported as a violation? ```...

## What problem would the enhancement address for VIP? `getimagesize()` holds up the PHP process downloading the entire image to just read its file size. ## Describe the solution you'd...

## What problem would the enhancement address for VIP? Because of the container-based infrastructure, VIP does not recommend using the function `filemtime()` to populate a value for versioning; each time...