- Issue created by @jenue1933
- Status changed to Fixed
3 months ago 9:15pm 21 August 2024
$ vendor/bin/phpcs -s $_WEB_ROOT/modules/custom --report-junit=junit.xml --report-full --report-summary --report-source $_PHPCS_EXTRA
FILE: ...builds/project/ecoindex/web/modules/custom/ecoindex/src/EcoIndexHelper.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
12 | ERROR | [x] Doc comment star missing
| | (Drupal.Commenting.DocCommentStar.StarMissing)
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...stom/ecoindex/src/Plugin/Validation/Constraint/EcoIndexFieldConstraint.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
17 | ERROR | Missing member variable doc comment
| | (Drupal.Commenting.VariableComment.Missing)
--------------------------------------------------------------------------------
FILE: /builds/project/ecoindex/web/modules/custom/ecoindex/ecoindex.module
--------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
--------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
| | (Drupal.Commenting.FileComment.Missing)
4 | ERROR | [x] Use statements should be sorted alphabetically. The first
| | wrong one is
| | Drupal\Core\Field\FieldTypeCategoryManagerInterface.
| | (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses)
96 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
| | (Drupal.Files.LineLength.TooLong)
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
Time: 148ms; Memory: 6MB
PHP CODE SNIFFER REPORT SUMMARY
--------------------------------------------------------------------------------
FILE ERRORS WARNINGS
--------------------------------------------------------------------------------
...roject/ecoindex/web/modules/custom/ecoindex/ecoindex.module 2 1
...ecoindex/web/modules/custom/ecoindex/src/EcoIndexHelper.php 1 0
...rc/Plugin/Validation/Constraint/EcoIndexFieldConstraint.php 1 0
--------------------------------------------------------------------------------
A TOTAL OF 4 ERRORS AND 1 WARNING WERE FOUND IN 10 FILES
--------------------------------------------------------------------------------
PHPCBF CAN FIX 3 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
PHP CODE SNIFFER VIOLATION SOURCE SUMMARY
--------------------------------------------------------------------------------
SOURCE COUNT
--------------------------------------------------------------------------------
[x] Drupal.Commenting.DocCommentStar.StarMissing 1
[x] Drupal.Commenting.FileComment.Missing 1
[ ] Drupal.Commenting.VariableComment.Missing 1
[ ] Drupal.Files.LineLength.TooLong 1
[x] SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.Incorrectl 1
--------------------------------------------------------------------------------
A TOTAL OF 5 SNIFF VIOLATIONS WERE FOUND IN 5 SOURCES
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SOURCES AUTOMATICALLY (3 VIOLATIONS IN TOTAL)
--------------------------------------------------------------------------------
Fixed
1.0
Code