Problem/Motivation
FILE: /Users/sahil.goyal/Documents/MySites/10.1.x/drupal/modules/contrib/workbench_reviewer/tests/src/Functional/WorkbenchReviewerFormTest.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/sahil.goyal/Documents/MySites/10.1.x/drupal/modules/contrib/workbench_reviewer/README.md
-----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 8 WARNINGS AFFECTING 8 LINES
-----------------------------------------------------------------------------------------------------
5 | WARNING | Line exceeds 80 characters; contains 282 characters
7 | WARNING | Line exceeds 80 characters; contains 142 characters
17 | WARNING | Line exceeds 80 characters; contains 104 characters
22 | WARNING | Line exceeds 80 characters; contains 165 characters
24 | WARNING | Line exceeds 80 characters; contains 143 characters
26 | WARNING | Line exceeds 80 characters; contains 194 characters
28 | WARNING | Line exceeds 80 characters; contains 247 characters
32 | WARNING | Line exceeds 80 characters; contains 159 characters
-----------------------------------------------------------------------------------------------------
FILE: /Users/sahil.goyal/Documents/MySites/10.1.x/drupal/modules/contrib/workbench_reviewer/workbench_reviewer.module
---------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------
96 | WARNING | [ ] Unused variable $node.
139 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
---------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------
Steps to reproduce
Run the following command : phpcs --standard="Drupal,DrupalPractice" --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml /10.1.x/drupal/modules/contrib/workbench_reviewer
Proposed resolution
Fix the above errors.
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | comment-remove-3337516-3.patch | 421 bytes | himanshu_jhaloya |
| #7 | after patch.png | 68.1 KB | paraderojether |
| #7 | before patch.png | 261.57 KB | paraderojether |
| #2 | 3337516-2.patch | 4.85 KB | sahil.goyal |
Issue fork workbench_reviewer-3337516
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
sahil.goyal commentedFixing the phpcs issues/erros
Comment #4
charchil khandelwal commentedI will review this.
Comment #6
charchil khandelwal commentedAll warnings and errors are fixed now.
Created MR for same.
Please review.
Comment #7
paraderojether commentedHi Charchil Khandelwal
I reviewed MR!1, and confirmed it fixes the issue reported by the phpcs. Drupal core version 9.5.8, Workbench Reviewer 3.0.0-beta1.
I added screenshots for reference.
Thank You.
Comment #8
avpadernoIf a line must be removed, it is not commented out.
Comment #9
himanshu_jhaloya commentedComment #10
himanshu_jhaloya commentedCreated patch for the commented issue. please review
Comment #11
himanshu_jhaloya commentedComment #13
nitin_lamaUpdated the MR.
Comment #14
abhineshThank you for your contribution's! Merging it into the development branch now.
Comment #16
abhineshComment #17
abhinesh