Problem/Motivation
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\config_inspector\config_inspector.drush.inc
-------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
-------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\config_inspector\config_inspector.install
-----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
-----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\config_inspector\config_inspector.module
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\config_inspector\css\config_inspector.css
-----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
-----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\config_inspector\src\Commands\InspectorCommands.php
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 11 ERRORS AND 2 WARNINGS AFFECTING 12 LINES
---------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
8 | WARNING | [x] Unused use statement
144 | ERROR | [ ] The array declaration extends to column 105 (the limit is 80). The array content should be split up over multiple lines
194 | ERROR | [ ] The array declaration extends to column 112 (the limit is 80). The array content should be split up over multiple lines
208 | WARNING | [ ] Line exceeds 80 characters; contains 91 characters
220 | ERROR | [x] Array indentation error, expected 14 spaces but found 15
221 | ERROR | [x] Array indentation error, expected 14 spaces but found 15
223 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
260 | ERROR | [x] Missing class doc comment
262 | ERROR | [x] Missing function doc comment
269 | ERROR | [x] Expected 1 blank line after function; 0 found
270 | ERROR | [x] The closing brace for the class must have an empty line before it
270 | ERROR | [ ] Closing class brace must be on a line by itself
---------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\config_inspector\src\ConfigInspectorManager.php
-----------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 3 WARNINGS AFFECTING 9 LINES
-----------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
7 | WARNING | [x] Unused use statement
8 | WARNING | [x] Unused use statement
12 | WARNING | [x] Unused use statement
147 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
149 | ERROR | [ ] Parameter tags must be defined first in a doc comment
281 | ERROR | [x] There must be no blank lines after the function comment
294 | ERROR | [ ] Parameter $violations is not described in comment
297 | ERROR | [ ] Doc comment for parameter $list does not match actual variable name $violations
-----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\config_inspector\src\ConfigSchemaValidatability.php
---------------------------------------------------------------------------------------------------------------
FOUND 12 ERRORS AND 1 WARNING AFFECTING 13 LINES
---------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
7 | ERROR | [x] Missing class doc comment
9 | ERROR | [ ] Missing member variable doc comment
10 | ERROR | [ ] Missing member variable doc comment
12 | ERROR | [x] Missing function doc comment
18 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
34 | ERROR | [x] Missing function doc comment
38 | ERROR | [x] Missing function doc comment
49 | ERROR | [x] Missing function doc comment
53 | ERROR | [x] Missing function doc comment
57 | ERROR | [x] Missing function doc comment
61 | ERROR | [x] Missing function doc comment
65 | ERROR | [x] Missing function doc comment
---------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 10 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\config_inspector\src\Controller\ConfigInspectorController.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES
-------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
202 | ERROR | [x] Array indentation error, expected 12 spaces but found 14
207 | ERROR | [x] Array indentation error, expected 12 spaces but found 14
265 | WARNING | [x] A comma should follow the last multiline array item. Found: 'config-inspector-tree'
386 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
-------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\config_inspector\src\Form\ConfigInspectorItemForm.php
-----------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
-----------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\config_inspector\tests\src\Functional\ConfigInspectorUITest.php
---------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
---------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\config_inspector\tests\src\Functional\LoadTest.php
--------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
--------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\config_inspector\tests\src\Kernel\ConfigInspectorManagerTest.php
----------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------
Time: 3.37 secs; Memory: 8MB
Steps to reproduce
phpcs --standard=“Drupal,DrupalPractice” --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml,css,js .
Comments
Comment #2
sidharth_soman commentedWorking on this.
Comment #4
sidharth_soman commentedI have raised an MR. The only errors remaining are those related to editing/filling out documentation comments.
Comment #5
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.
Comment #6
shivam_tiwari commentedComment #7
imustakim commentedIssue summary updated.
Comment #9
shiv_yadavComment #10
clarkssquared commentedHi,
I tried to applied the updated MR !3 but It seems that the MR didn't apply properly please refer to the snippet of the output in my terminal.
Comment #12
sakthi_dev commentedRebased and fixed the remaining issues. Please review.
Comment #13
shiv_yadavComment #14
aayushmankotia commentedHi,
Merge request !3 has resolved all the phpcs errors and everything seems fine to me . A screenshot is attached for reference.
Moving to RTBC.
Thanks
Comment #15
aayushmankotia commentedComment #16
wim leersThanks for doing this!
But … 4 tests are failing 😅 So, not quite working fine just yet.
Comment #17
shiv_yadavComment #18
wim leersJust merged #3396042: Adopt GitLab CI, which will allow us to ensure to never regress against this again 😅
Thanks for the work here, everyone! Now reviewing…
Comment #19
wim leersI wanted to say "thanks", but it's hard to do so in this case, because this was done very poorly. It's literally breaking code, and it's removing parameters.
Therefore I'm not crediting:
To all of you: please read https://www.drupal.org/drupalorg/blog/ensuring-a-fair-drupal-contributio... 🙏 This was clear gaming behavior.
I am crediting:
Comment #20
wim leersComment #21
wim leers