Problem/Motivation
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml .
FILE: .../web/modules/custom/native_lazy_loading/native_lazy_loading.module
-----------------------------------------------------------------------------------------------------------------------
FOUND 10 ERRORS AFFECTING 10 LINES
-----------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
21 | ERROR | [x] Expected 1 blank line after function; 2 found
48 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
87 | ERROR | [x] Data types in @var tags need to be fully namespaced
131 | ERROR | [ ] Missing short description in doc comment
132 | ERROR | [ ] Missing parameter comment
134 | ERROR | [ ] Description for the @return value is missing
136 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
150 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
163 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
-----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------
FILE: .../web/modules/custom/native_lazy_loading/README.md
-----------------------------------------------------------------------------------
FOUND 0 ERRORS AND 9 WARNINGS AFFECTING 9 LINES
-----------------------------------------------------------------------------------
5 | WARNING | Line exceeds 80 characters; contains 95 characters
9 | WARNING | Line exceeds 80 characters; contains 296 characters
11 | WARNING | Line exceeds 80 characters; contains 272 characters
17 | WARNING | Line exceeds 80 characters; contains 198 characters
19 | WARNING | Line exceeds 80 characters; contains 118 characters
21 | WARNING | Line exceeds 80 characters; contains 82 characters
24 | WARNING | Line exceeds 80 characters; contains 122 characters
28 | WARNING | Line exceeds 80 characters; contains 181 characters
33 | WARNING | Line exceeds 80 characters; contains 371 characters
-----------------------------------------------------------------------------------
Steps to reproduce
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml .
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork native_lazy_loading-3475328
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
alyaj2a commentedComment #4
alyaj2a commentedComment #5
cleavinjosh commentedHi @alyaj2a,
Thank you for providing an MR. I applied MR!4, it was applied smoothly and fixed all the phpcs issues.
Thank you.
Comment #7
prudloff commentedI merged this because the changes are straightforward but this module is obsolete and not developed anymore.