Problem/Motivation
Getting following error/warnings
FILE: /app/modules/contrib/nocurrent_pass/README.md
-----------------------------------------------------------------------
FOUND 1 ERROR AND 3 WARNINGS AFFECTING 4 LINES
-----------------------------------------------------------------------
8 | WARNING | [ ] Line exceeds 80 characters; contains 88 characters
11 | WARNING | [ ] Line exceeds 80 characters; contains 83 characters
12 | WARNING | [ ] Line exceeds 80 characters; contains 86 characters
13 | ERROR | [x] Expected 1 newline at end of file; 0 found
-----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------
FILE: /app/modules/contrib/nocurrent_pass/config/install/nocurrent_pass.settings.yml
------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------
1 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------
FILE: /app/modules/contrib/nocurrent_pass/nocurrent_pass.info.yml
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
6 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: /app/modules/contrib/nocurrent_pass/nocurrent_pass.module
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 19 ERRORS AND 6 WARNINGS AFFECTING 21 LINES
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
4 | ERROR | [x] Doc comment short description must be on the first line
4 | ERROR | [x] Doc comment short description must end with a full stop
6 | WARNING | [ ] Line exceeds 80 characters; contains 102 characters
7 | ERROR | [x] There must be exactly one blank line after the file comment
8 | WARNING | [x] Unused use statement
14 | WARNING | [ ] Line exceeds 80 characters; contains 109 characters
19 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
22 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
27 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
28 | ERROR | [x] Short array syntax must be used to define arrays
33 | ERROR | [x] Short array syntax must be used to define arrays
40 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
45 | WARNING | [ ] Line exceeds 80 characters; contains 86 characters
45 | ERROR | [x] Doc comment short description must end with a full stop
54 | WARNING | [ ] Format should be "* Implements hook_foo().", "* Implements hook_foo_BAR_ID_bar() for xyz_bar().",, "* Implements hook_foo_BAR_ID_bar() for
| | xyz-bar.html.twig.", "* Implements hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or "* Implements hook_foo_BAR_ID_bar() for block templates."
55 | WARNING | [ ] Line exceeds 80 characters; contains 83 characters
55 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
59 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
63 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
68 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
69 | ERROR | [x] There should be no white space after an opening "("
69 | ERROR | [x] There should be no white space before a closing ")"
71 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
74 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
78 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 19 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Time: 355ms; Memory: 10MB
Steps to reproduce
Run following command
phpcs --standard="Drupal,DrupalPractice" --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml modules/contrib/nocurrent_pass/
Proposed resolution
Above error/warnings need to be fixed