Problem/Motivation
It would be great to address the below minor PHPCS issues :
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml flexi_style/
FILE: /var/www/web/themes/contrib/flexi_style/fonts/fontawesome/LICENSE.txt
---------------------------------------------------------------------------
FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 6 LINES
---------------------------------------------------------------------------
129 | WARNING | Line exceeds 80 characters; contains 81 characters
130 | WARNING | Line exceeds 80 characters; contains 83 characters
131 | WARNING | Line exceeds 80 characters; contains 83 characters
138 | WARNING | Line exceeds 80 characters; contains 83 characters
140 | WARNING | Line exceeds 80 characters; contains 82 characters
141 | WARNING | Line exceeds 80 characters; contains 81 characters
---------------------------------------------------------------------------
FILE: /var/www/web/themes/contrib/flexi_style/theme-settings.php
------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
------------------------------------------------------------------------------------
71 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
97 | WARNING | [ ] #options values usually have to run through t() for translation
98 | WARNING | [ ] #options values usually have to run through t() for translation
------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------
FILE: /var/www/web/themes/contrib/flexi_style/css/component/buttons.css
-----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------
91 | ERROR | [x] Multiple selectors should each be on a single line
-----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------
FILE: /var/www/web/themes/contrib/flexi_style/css/base/formating.css
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
232 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: /var/www/web/themes/contrib/flexi_style/css/base/elements.css
----------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------
1 | ERROR | [x] Selectors must be on a single line
380 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: /var/www/web/themes/contrib/flexi_style/flexi_style.theme
---------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------------------
8 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 1
9 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 1
9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Component\Render\MarkupInterface.
---------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------
Time: 2.69 secs; Memory: 60MB
Steps to reproduce
Run the command,
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml flexi_style/
Proposed resolution
Fix the PHPCS issues.
Issue fork flexi_style-3498434
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
nidhish commentedComment #4
nidhish commented@abhiyanshu Fixed the PHPCS issues
Comment #5
nidhish commentedComment #6
paraderojether commentedHi @nidhish,
I reviewed MR!11, applied against FlexiStyle 1.4.1, and there are still remaining phpcs issues show bellow:
Command used:
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig flexi_stylePlease check and advise.
Thank you.
Comment #7
nidhish commentedComment #8
nidhish commented@paraderojether I have added the commit to fix the remaining issues. Kindly review and merge
Comment #9
nidhish commentedComment #10
anoopsingh92Hi @nidhish,
Please check the Merge Request (MR). There are conflicts that need to be resolved. Also, ensure that you don't add files where no changes have been made.
Comment #13
nidhish commented@anoopsingh92 Issue fork flexi_style-3498434 branch 1.4.x is not the same as flexi_style branch 1.4.x as the issue fork flexi_style-3498434 was created before the latest commit 3beb0e5b. Since, I do not have access to flexi_style, you or the maintainer of flexi_style have to resolve merge conflicts
Comment #14
nidhish commentedComment #15
anoopsingh92Comment #16
nidhish commented@anoopsingh92 I have fixed the merged conflicts for MR11 : https://git.drupalcode.org/project/flexi_style/-/merge_requests/11.
Kindly review and merge.
Comment #17
nidhish commentedComment #18
paraderojether commentedHi nidhish,
I reviewed MR!11, again and it did not applied cleanly on my end.
Kindly check and advise.
Thank you.
Comment #19
anoopsingh92Comment #20
nidhish commented@anoopsingh92/ @paraderojether, I have removed changes in flexi_style.theme from this MR. Kindly review
Comment #21
anoopsingh92Comment #23
anoopsingh92@all, Thanks for the contribution.