Problem/Motivation
FILE: modules/views_bulk_operations/tests/src/Unit/ViewsBulkOperationsBatchTest.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\StringTranslation\TranslatableMarkup.
------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------
Steps to reproduce
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig modules/views_bulk_operations/
Proposed resolution
Resolve the PHPCS issues.
| Comment | File | Size | Author |
|---|---|---|---|
| #27 | views_bulk_operations_3318147_27.patch | 14.88 KB | somesh1999 |
| #21 | 3318147-21.patch | 13.96 KB | imustakim |
| #17 | 3318147-17.patch | 13.51 KB | imustakim |
Issue fork views_bulk_operations-3318147
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
prasaddeole commentedComment #3
prasaddeole commentedComment #4
graber commentedComment #5
graber commentedComment #6
shefali99 commentedFixed Coding Standards.
Comment #8
chaitanyadessai commentedFixed Coding Standards.
Comment #11
vishaljd commentedComment #13
vishaljd commentedComment #14
rassoni commentedComment #15
avpadernoThe issue summary should always describe what the issue is trying to fix and, in the case, of coding standards issues, report which command has been used, which arguments have been used, and which report that command shown.
Comment #16
imustakim commentedworking on this.
Comment #17
imustakim commentedCreated the patch for fixes.
Please review.
Comment #18
imustakim commentedComment #20
avpadernoComment #21
imustakim commentedPatch updated.
Please review.
Comment #23
gg24 commentedComment #24
indrapatil commentedComment #25
indrapatil commentedComment #26
graber commentedThe last patch failed so..
Comment #27
somesh1999 commentedI have run the phpcs and fixed some part of the code. Please check.
Comment #28
graber commentedWhat’s the point of adding @var tags to type hinted properties?
Comment #29
avpadernoComment #31
shank115 commentedFixed some of phpcs issues, please review
Comment #32
nikolay shapovalov commented@Shank115 thank you for you contribution, as I can see there are several patches already attached to the issue and in the branch 3318147-fix-phpcs-coding these changes are not presented. Please add changes from patch #27.
I suggest to continue with MR workflow, because it will be easy to review.
Comment #33
nikolay shapovalov commentedI reviewed patch in #27, it only adds @var declaration for typed class properties may.
Source: Drupal coding standards.
I suggest to skip patch #27.
I execute comand on latest 4.2.x
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig views_bulk_operations/and was not able to find any violations.
Changes suggested in 3318147-fix-phpcs-coding make sense for me, can you please create new Merge Request?
Comment #34
nitin_lamaComment #36
nitin_lamaComment #37
nitin_lamaI believe this will require a rebase.
Comment #38
nikolay shapovalov commentedComment #39
nikolay shapovalov commentedComment #41
nikolay shapovalov commentedIS updated, only one thing left to fix.
Update branch 3318147-fix-phpcs-coding.
And create MR.
Comment #42
nikolay shapovalov commentedComment #43
nikolay shapovalov commentedHide all patch files.
Comment #44
benstallings commentedupdating to point at latest version
Comment #45
benstallings commentedI'm confused - MR !76 is showing 0 changes.
Comment #46
graber commentedIndeed.
Closing in favor of #3549282: Improve module code quality checks and going for it.