Problem/Motivation
phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig .
FILE: .../web/modules/custom/focal_point/tests/src/Unit/FocalPointManagerTest.php
-----------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------------------------------
67 | ERROR | The array declaration extends to column 81 (the limit is 80). The array content should be split up over
| | multiple lines
68 | ERROR | The array declaration extends to column 89 (the limit is 80). The array content should be split up over
| | multiple lines
69 | ERROR | The array declaration extends to column 84 (the limit is 80). The array content should be split up over
| | multiple lines
-----------------------------------------------------------------------------------------------------------------------
FILE: .../web/modules/custom/focal_point/tests/src/Unit/FieldWidgets/FocalPointFieldWidgetTest.php
-----------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------------------------------
123 | ERROR | The array declaration extends to column 81 (the limit is 80). The array content should be split up over
| | multiple lines
124 | ERROR | The array declaration extends to column 89 (the limit is 80). The array content should be split up over
| | multiple lines
125 | ERROR | The array declaration extends to column 84 (the limit is 80). The array content should be split up over
| | multiple lines
-----------------------------------------------------------------------------------------------------------------------
FILE: .../web/modules/custom/focal_point/tests/src/Unit/Effects/FocalPointEffectsTest.php
-----------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------------------------------
105 | ERROR | The array declaration extends to column 105 (the limit is 80). The array content should be split up
| | over multiple lines
153 | ERROR | The array declaration extends to column 105 (the limit is 80). The array content should be split up
| | over multiple lines
159 | ERROR | The array declaration extends to column 105 (the limit is 80). The array content should be split up
| | over multiple lines
-----------------------------------------------------------------------------------------------------------------------
Steps to reproduce
phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig .
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork focal_point-3472665
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
alyaj2a commentedComment #4
alyaj2a commentedComment #7
avpadernoGitLab CI does not report any PHP_CodeSniffer errors/warnings even before making any change.
Comment #9
alyaj2a commentedHello avpaderno, I uploaded the corrections that I indicated in this issue appeared to me with PHPCS.
Comment #10
svendecabooterLatest commits in 2.x have failing PHPCS jobs, so that still needs fixing.
Comment #12
liam morlandAll phpcs tests now pass.
#3513518: Fix PHP 8.4 deprecation should be merged first.
Comment #13
paraderojether commentedHi
I reviewed MR!2, and confirmed PHPCS is now passed on Gitlab CI.
However there are still remaining phpcs issues reported by PHP_CodeSniffer
Kindly check and advise, please.
Thank you.
Comment #14
avpadernoIf GitLab CI does not report any PHP_CodeSniffer errors/warnings, all the errors/warnings have been fixed. Running PHP_CodeSniffer locally requires to use the same configuration GitLab CI uses.
Comment #15
paraderojether commentedHi avpaderno,
Noted on that, moving this now to RBTC since PHPCS is passed in GitLab CI.
Thank you.
Comment #16
liam morland#3593262: Remove obsolete CORE_PREVIOUS_PHP_MIN should be committed first.
Comment #19
rajeshreeputraMR merged!