You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While this is a sniff which isn't used for Go, this sniff is a good candidate for improvement in the short term.
A quick scan leaves me with the following action list:
Fix class documentation.
Also check for the index keys with $_REQUEST, $GLOBALS['_GET'] and $GLOBALS['_REQUEST']. (fixes false negatives)
Stricter checking - make sure the index key is just and only the text string, don't base the warning just off the first non empty token in the key. (fixes false positives)
Ignore "use" in isset() or empty() to reduce noise.
Small performance improvements by not using array_merge or in_array when not necessary.
Deprecated the public property, add a private property for the same and throw a warning if the public property is used in a custom ruleset (i.e. not the same as the private property content).
I'd like to use a more friendly name for the private property. @rebeccahum@GaryJones Is there a public link with more information about the background of this sniff which I could use to come up with a better name for the property ?
Review the
WordPressVIPMinimum.Performance.BatcacheWhitelistedParams
sniff for the following in as far as relevant to that sniff:Typical things to add tests for and verify correct handling of:
list
statementsTypical things to add tests for and verify correct handling of (where applicable):
::class
use function/const
Other:
Sniff basics, but changes need to be lined up for next major release:
public
properties (Audit Public Sniff Properties #234)Once PHPCS/PHPCSUtils supports this:
match
expressionsThe text was updated successfully, but these errors were encountered: