Problem/Motivation
Getting following error/warnings
FILE: /var/www/html/modules/contrib/calendar_view/calendar_view.module
-------------------------------------------------------------------------------------------
FOUND 9 ERRORS AND 2 WARNINGS AFFECTING 11 LINES
-------------------------------------------------------------------------------------------
9 | WARNING | [x] Unused use statement
27 | ERROR | [x] Doc comment long description must end with a full stop
34 | ERROR | [x] Parameter comment must end with a full stop
36 | ERROR | [ ] Type hint "array" missing for $variables
92 | WARNING | [ ] Unused variable $debug.
107 | ERROR | [ ] Type hint "array" missing for $variables
129 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
140 | ERROR | [ ] Type hint "array" missing for $variables
158 | ERROR | [x] Comments may not appear after statements
168 | ERROR | [ ] String concat is not required here; use a single string instead
187 | ERROR | [x] Comments may not appear after statements
-------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------
FILE: /var/www/html/modules/contrib/calendar_view/src/Plugin/views/style/Calendar.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 30 ERRORS AND 22 WARNINGS AFFECTING 50 LINES
----------------------------------------------------------------------------------------------------------------------------------------------
19 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
68 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
69 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
70 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
71 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
72 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
73 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
74 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
122 | ERROR | [ ] Doc comment is empty
136 | WARNING | [ ] Line exceeds 80 characters; contains 83 characters
177 | ERROR | [ ] Type hint "\Drupal\views\ResultRow" missing for $result
193 | ERROR | [ ] Description for the @return value is missing
198 | ERROR | [x] Comments may not appear after statements
198 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
248 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
249 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
250 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
251 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
252 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
253 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
254 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
336 | ERROR | [ ] Parameter $operator is not described in comment
381 | ERROR | [x] Case breaking statements must be followed by a single blank line
384 | ERROR | [x] Case breaking statements must be followed by a single blank line
387 | ERROR | [x] Case breaking statements must be followed by a single blank line
390 | ERROR | [x] Case breaking statements must be followed by a single blank line
393 | ERROR | [x] Case breaking statements must be followed by a single blank line
429 | WARNING | [ ] Line exceeds 80 characters; contains 86 characters
472 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
485 | ERROR | [x] Expected newline after closing brace
496 | ERROR | [ ] Parameter $results is not described in comment
501 | ERROR | [ ] Doc comment for parameter $result does not match actual variable name $results
509 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
522 | ERROR | [x] Expected newline after closing brace
577 | ERROR | [x] Expected newline after closing brace
591 | WARNING | [ ] Line exceeds 80 characters; contains 86 characters
613 | ERROR | [x] Expected 1 blank line after function; 2 found
616 | ERROR | [ ] Parameter $children is not described in comment
618 | ERROR | [x] Whitespace found at end of line
619 | ERROR | [ ] Missing parameter comment
620 | ERROR | [ ] Missing parameter comment
620 | ERROR | [ ] Missing parameter name
621 | ERROR | [x] Whitespace found at end of line
622 | ERROR | [ ] Description for the @return value is missing
664 | ERROR | [x] Expected newline after closing brace
723 | WARNING | [ ] Unused variable $day.
751 | WARNING | [ ] Unused variable $index.
753 | ERROR | [x] Whitespace found at end of line
835 | ERROR | [ ] String concat is not required here; use a single string instead
839 | WARNING | [ ] Unused variable $month_end.
954 | ERROR | [x] Expected 1 blank line after function; 0 found
955 | ERROR | [x] The closing brace for the class must have an empty line before it
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 17 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/modules/contrib/calendar_view/src/Plugin/views/pager/Calendar.php
-------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------
26 | ERROR | [x] Missing function doc comment
111 | ERROR | [ ] String concat is not required here; use a single string instead
-------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------
Time: 3.19 secs; 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/calendar_view/
Proposed resolution
Above error/warnings need to be fixed.