$ phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml role_theme_switcher/
FILE: ...rs\SI-001\Downloads\role_theme_switcher\role_theme_switcher.links.menu.yml
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
5 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...Users\SI-001\Downloads\role_theme_switcher\role_theme_switcher.routing.yml
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
9 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...sers\SI-001\Downloads\role_theme_switcher\role_theme_switcher.services.yml
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
6 | ERROR | [x] Expected 1 newline at end of file; 3 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...\Users\SI-001\Downloads\role_theme_switcher\src\Form\AdminSettingsForm.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
135 | WARNING | Possible useless method overriding detected
--------------------------------------------------------------------------------
FILE: ...01\Downloads\role_theme_switcher\src\Theme\RoleThemeSwitcherNegotiator.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
13 | WARNING | The class short comment should describe what the class does and
| | not simply repeat the class name
--------------------------------------------------------------------------------
Time: 293ms; Memory: 10MB
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | coding-standard-fixed-3291607-7.patch | 2.12 KB | urvashi_vora |
| #5 | coding-standard-fixed-3291607-5.patch | 2.15 KB | urvashi_vora |
| #2 | drupal_coding_Standard_issue-3291607-1.patch | 2.12 KB | rakhi soni |
Issue fork role_theme_switcher-3291607
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
rakhi soni commentedI have created a patch to fix the issue of Drupal Coding Standard,, Please review.
Comment #3
mrinalini9 commentedHi,
I have reviewed patch #2, looks good to me. It applied cleanly and fixed all errors and warnings.
But the class short comment doesn't seem proper to me here:
It should describe what the class does.
So, moving this to Needs Work.
Thanks & Regards,
Mrinalini
Comment #4
urvashi_vora commentedHi,
I am working on this
Comment #5
urvashi_vora commentedHi,
Please review this patch. As per suggestion, I fixed the class comment.
Thanks
Comment #6
mrinalini9 commentedPatch #5 doesn't applied properly, getting some errors related to trailing whitespace:
Please fix it.
So, moving this back to Needs Work.
Comment #7
urvashi_vora commentedHi,
Hope now the issue gets fixed. Applying the patch.
Thanks
Comment #9
neslee canil pinto