phpcs using drupal ruleset reports use of valid javascript constants, true|false|null as sniff violations. Javascript is case sensitive so true|false|null are the only valid uses of these constants
1. Have a javascript file which includes one or more uses of the generic javascript constants, true|false|null, as part of some Drupal code, e.g. an example module.
2. Run phpcs --standard=Drupal example.module
3. Each use of true, false or null in the javascript file will be reported as a sniff violation
Exclude javascript files files from the rule, Generic.PHP.UpperCaseConstant
Add Generic.PHP.LowerCaseConstant rule for javascript files.
Closed: won't fix
8.3
Coder Sniffer
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.