- Issue created by @gxleano
- Issue was unassigned.
- Status changed to Fixed
7 months ago 4:41pm 28 May 2024
FILE: ...ons/web/modules/custom/iconify_icons/tests/src/Unit/IconifyServiceTest.php
--------------------------------------------------------------------------------
FOUND 3 ERRORS AND 3 WARNINGS AFFECTING 6 LINES
--------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first
| | wrong one is Drupal\iconify_icons\IconifyService.
| | (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses)
7 | WARNING | [x] Unused use statement
| | (Drupal.Classes.UnusedUseStatement.UnusedUse)
9 | WARNING | [x] Unused use statement
| | (Drupal.Classes.UnusedUseStatement.UnusedUse)
10 | WARNING | [x] Unused use statement
| | (Drupal.Classes.UnusedUseStatement.UnusedUse)
37 | ERROR | [x] Expected "\Drupal\iconify_icons\IconifyService" but found
| | "\Drupal\iconify_icons\IconifyService;" for @var tag in
| | member variable comment
| | (Drupal.Commenting.VariableComment.IncorrectVarType)
43 | ERROR | [x] Expected 1 blank line before function; 0 found
| | (Squiz.WhiteSpace.FunctionSpacing.Before)
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...conify_icons/web/modules/custom/iconify_icons/src/Element/IconifyIcons.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
95 | WARNING | [x] There must be no blank line following an inline comment
| | (Drupal.Commenting.InlineComment.SpacingAfter)
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
Time: 255ms; Memory: 6MB
PHP CODE SNIFFER REPORT SUMMARY
--------------------------------------------------------------------------------
FILE ERRORS WARNINGS
--------------------------------------------------------------------------------
...b/modules/custom/iconify_icons/src/Element/IconifyIcons.php 0 1
.../custom/iconify_icons/tests/src/Unit/IconifyServiceTest.php 3 3
--------------------------------------------------------------------------------
A TOTAL OF 3 ERRORS AND 4 WARNINGS WERE FOUND IN 12 FILES
--------------------------------------------------------------------------------
PHPCBF CAN FIX 7 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
PHP CODE SNIFFER VIOLATION SOURCE SUMMARY
--------------------------------------------------------------------------------
SOURCE COUNT
--------------------------------------------------------------------------------
[x] Drupal.Classes.UnusedUseStatement.UnusedUse 3
[x] Drupal.Commenting.InlineComment.SpacingAfter 1
[x] Drupal.Commenting.VariableComment.IncorrectVarType 1
[x] SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.Incorrectl 1
[x] Squiz.WhiteSpace.FunctionSpacing.Before 1
--------------------------------------------------------------------------------
A TOTAL OF 7 SNIFF VIOLATIONS WERE FOUND IN 5 SOURCES
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SOURCES AUTOMATICALLY (7 VIOLATIONS IN TOTAL)
--------------------------------------------------------------------------------
Uploading artifacts for failed job
00:02
Uploading artifacts...
junit.xml: found 1 matching artifact files and directories
Uploading artifacts as "archive" to coordinator... 201 Created id=1709652 responseStatus=201 Created token=glcbt-64
Uploading artifacts...
junit.xml: found 1 matching artifact files and directories
Uploading artifacts as "junit" to coordinator... 201 Created id=1709652 responseStatus=201 Created token=glcbt-64
Cleaning up project directory and file based variables
00:00
ERROR: Job failed: command terminated with exit code 1
Fixed
Code