$ phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml trinion_backend/
FILE: C:\xampp\htdocs\contribution\web\themes\contrib\trinion_backend\css\custom.css
------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------
1 | ERROR | [x] Additional whitespace found at start of file
------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\contribution\web\themes\contrib\trinion_backend\css\styles.css
------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------
2742 | ERROR | Style definitions must end with a semicolon
------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\contribution\web\themes\contrib\trinion_backend\trinion_backend.theme
-------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
-------------------------------------------------------------------------------------------
81 | WARNING | Line exceeds 80 characters; contains 123 characters
82 | WARNING | Line exceeds 80 characters; contains 97 characters
82 | ERROR | Comment indentation error, expected only 1 spaces
85 | WARNING | Line exceeds 80 characters; contains 92 characters
85 | ERROR | Comment indentation error, expected only 4 spaces
88 | WARNING | Line exceeds 80 characters; contains 85 characters
88 | ERROR | Comment indentation error, expected only 4 spaces
-------------------------------------------------------------------------------------------
Time: 7.77 secs; Memory: 156MB
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | Screenshot from 2022-09-06 14-56-46.png | 26.15 KB | jsricardo |
| #9 | 3283271-3291041-9.patch | 353.17 KB | jsricardo |
| #5 | interdiff_2-5.txt | 9.83 KB | indrapatil |
| #5 | Coding_standard_issues-3291041-5.patch | 208.14 KB | indrapatil |
| #3 | Screenshot from 2022-06-22 18-00-43.png | 228.13 KB | indrapatil |
Issue fork 3283271-3291041
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 this issue,,
Comment #3
indrapatil commentedHi,
Patch didn't apply,
Moving needs work.
Thanks.
Comment #4
indrapatil commentedComment #5
indrapatil commentedHi ,
I have resloved some of issue still some are there so keeping in Needs work.
Please review the patch and also providing the interdiff.
Comment #6
alexanderj commentedI will review it
Comment #7
alexanderj commentedHi, i'm try to apply your patch #5, but when i went to test it. It unexpectedly failed.
Please look at this. Thanks!
Comment #8
jsricardo commentedI will Work on this
Comment #9
jsricardo commentedI couldn't solve this error
FILE: contrib/3283271-3291041/css/styles.css
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
2833 | ERROR | Style definitions must end with a semicolon
----------------------------------------------------------------------
Time: 9.49 secs; Memory: 150.01MB
Comment #10
ramonvasconcelos commentedI'll take a look.
Comment #11
ramonvasconcelos commentedHi @jsricardo i was able to apply the patch and it fixed all standard errors except the one you mentioned.
I think its a bug from the sniffer since the semicolon is there