Following errors are reported on phpcs when I run the module.
FILE: /var/www/html/drupal-8.4.3/modules/consumers/consumers.install
----------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
----------------------------------------------------------------------
15 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
16 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 6
21 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 6
22 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
----------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: .../www/html/drupal-8.4.3/modules/consumers/src/Entity/Consumer.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
149 | ERROR | [x] Array indentation error, expected 8 spaces but
| | found 9
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | code_review_changes-2936316-4.patch | 267 bytes | sivaprasadc |
| #2 | code_review_changes-2936316-2.patch | 1.19 KB | venkatesh rajan.j |
Comments
Comment #2
venkatesh rajan.j commentedThe attached patch will fix the above-reported errors.
Comment #3
e0ipsoThis was fixed. Thanks for the contribution.
Please make sure to also do meaningful contributions to modules, other than running
phpcbfautomatically. Gaming the credit system is creating an unfair load on project maintainers.Thanks again.
Comment #4
sivaprasadc commented@e0ipso
When I run
phpcs, still one more warning is there.All dependencies must be prefixed with the project name, for example "drupal:".Please find the attached patch file.
Comment #5
e0ipso@Sivaprasad C can you please post the complete
phpcscommand you're running?Comment #6
sivaprasadc commented@e0ipso
Comment #7
e0ipso@Sivaprasad C are you using this module?
Comment #8
sivaprasadc commentedyes.
Comment #10
e0ipso