Problem/Motivation
FILE: /Users/specbee/Sites/Projects/admin_toolbar/js/jquery.hoverIntent.js
-------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------
67 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
-------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------
FILE: /Users/specbee/Sites/Projects/admin_toolbar/admin_toolbar_search/css/admin.toolbar_search.css
---------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------
91 | ERROR | [x] Expected 0 spaces before semicolon in style definition; 1 found
---------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------
FILE: /Users/specbee/Sites/Projects/admin_toolbar/admin_toolbar_search/js/admin_toolbar_search.js
-------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
-------------------------------------------------------------------------------------------------
13 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
46 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
61 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
66 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
-------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------
FILE: /Users/specbee/Sites/Projects/admin_toolbar/admin_toolbar_tools/src/AdminToolbarToolsHelper.php
-----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------
117 | WARNING | Line exceeds 80 characters; contains 82 characters
-----------------------------------------------------------------------------------------------------
Time: 784ms; Memory: 16MB
Steps to reproduce
Run following command
phpcs --standard=“Drupal,DrupalPractice” --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml,css,js .
Comments
Comment #2
prachi6824 commentedHello,
I have created a patch to solve all the errors related to phpcs code standard.
Comment #3
sourabhjainWhen I am applying the patch it is showing me below errors:
Let me work on it.
Comment #5
sourabhjainComment #6
avpadernoThe issue summary should always describe what the issue is trying to fix and, in the case of coding standards issues, show which command and arguments have been used and which report that command shown. In this way, project maintainers can verify the patch/MR fixes all the warnings/errors.
Comment #7
nitin_lamaComment #8
nitin_lamaFound one error remaining. Committing changes in the MR.
Comment #9
nitin_lamaComment #10
bhaveshithape commentedPatch to solve all the errors related to phpcs code standard.
Not interdiff because none of the above patch applied.
Comment #11
bhaveshithape commentedComment #12
prabuela commentedComment #13
prabuela commentedComment #14
prabuela commentedComment #16
ashutosh ahirwal commentedAddressing #6 and updating issue summary and required command with arguments.
Please review.
Comment #17
imustakim commentedIssue summary updated.
Comment #19
keshavv commentedUpdated MR !60 with latest changes.
I have scanned the module against 3.x branch with phpcs
../vendor/bin/phpcs --standard=drupal modules/contrib/admin_toolbarand fix the remaining issues.Please do not fix the following JS issues, As it will throw a JS error.
Please review.
Thank you.
Comment #20
aayushmankotia commentedI've conducted a local test and everything is functioning as expected. It's only presenting JavaScript errors, which we don't require to rectify.
It appears ready to be transitioned to RTBC
Comment #22
adriancid