Problem/Motivation
Getting following error/warnings.
FILE: /var/www/html/modules/contrib/cm_revision_delete/README.md
----------------------------------------------------------------------
FOUND 0 ERRORS AND 8 WARNINGS AFFECTING 8 LINES
----------------------------------------------------------------------
16 | WARNING | Line exceeds 80 characters; contains 82 characters
17 | WARNING | Line exceeds 80 characters; contains 81 characters
20 | WARNING | Line exceeds 80 characters; contains 92 characters
23 | WARNING | Line exceeds 80 characters; contains 91 characters
25 | WARNING | Line exceeds 80 characters; contains 95 characters
69 | WARNING | Line exceeds 80 characters; contains 85 characters
70 | WARNING | Line exceeds 80 characters; contains 84 characters
71 | WARNING | Line exceeds 80 characters; contains 84 characters
----------------------------------------------------------------------
FILE: /var/www/html/modules/contrib/cm_revision_delete/cm_revision_delete.module
-------------------------------------------------------------------------------------------------------------------------------
FOUND 11 ERRORS AND 1 WARNING AFFECTING 12 LINES
-------------------------------------------------------------------------------------------------------------------------------
10 | WARNING | [x] Unused use statement
73 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
84 | ERROR | [x] Expected newline after closing brace
85 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
109 | ERROR | [x] Missing function doc comment
124 | ERROR | [x] Space after closing parenthesis of function call prohibited
125 | ERROR | [x] Space found before semicolon; expected ");" but found ")\n ;"
129 | ERROR | [x] Missing function doc comment
143 | ERROR | [x] Missing function doc comment
155 | ERROR | [x] Missing function doc comment
177 | ERROR | [x] Space after closing parenthesis of function call prohibited
178 | ERROR | [x] Space found before semicolon; expected ");" but found ")\n ;"
-------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 12 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/modules/contrib/cm_revision_delete/src/Form/AdminSettingsForm.php
-------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------
81 | WARNING | [x] A comma should follow the last multiline array item. Found: 20
-------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------
Time: 937ms; Memory: 6MB
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/cm_revision_delete/
Proposed resolution
Above error/warnings need to be fixed.