Problem/Motivation
FILE: /var/www/html/drupal_cms/drupal9/web/modules/contrib/lazy/js/lazy.js
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
27 | ERROR | TRUE, FALSE and NULL must be uppercase; expected "TRUE" but
| | found "true"
--------------------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | coding_standard-3380611-2.patch | 434 bytes | rohit rana |
Issue fork lazy-3380611
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
rohit rana commentedComment #3
osmanHi Rahit,
Are you positive you're running PHPCS with `Drupal`, and `DrupalPractice` coding-standards loaded? AFAIK, JavaScript boolean values should be lowercase, but for PHP it should be uppercase.
You can check the installed standards via `phpcs -i`
Because this is what I get:
Comment #6
vladimirausComment #7
jannakha commentedall green!
Comment #8
osman* Drupal 8
* PHP 7.4
* PHPCS 3.10.1 (stable)
Before:
After:
Comment #10
osmanComment #11
vladimiraus