Created on 3 May 2023, almost 2 years ago

Problem/Motivation

The current 8.x-1.x branch has coding standards issues that should be addressed. (see https://www.drupal.org/pift-ci-job/2657145 β†’ ):

FILE: ...sr/local/config_normalizer/src/ConfigItemNormalizerInterface.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 21 | WARNING | Line exceeds 80 characters; contains 85
    |         | characters (Drupal.Files.LineLength.TooLong)
----------------------------------------------------------------------


FILE: ...fig_normalizer/src/Config/NormalizedReadOnlyStorageInterface.php
----------------------------------------------------------------------
FOUND 1 ERROR AND 4 WARNINGS AFFECTING 5 LINES
----------------------------------------------------------------------
  5 | WARNING | [x] Unused use statement
    |         |     (Drupal.Classes.UnusedUseStatement.UnusedUse)
  6 | WARNING | [x] Unused use statement
    |         |     (Drupal.Classes.UnusedUseStatement.UnusedUse)
  7 | WARNING | [x] Unused use statement
    |         |     (Drupal.Classes.UnusedUseStatement.UnusedUse)
 59 | ERROR   | [ ] Missing parameter name
    |         |     (Drupal.Commenting.FunctionComment.MissingParamName)
 70 | WARNING | [ ] Line exceeds 80 characters; contains 85
    |         |     characters (Drupal.Files.LineLength.TooLong)
----------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------


FILE: .../config_normalizer/src/Config/NormalizedStorageComparerTrait.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
 44 | ERROR | [x] Expected "\Drupal\Core\Config\StorageComparer" but
    |       |     found "\Drupal\Core\Config\StorageComparer;" for
    |       |     function return type
    |       |     (Drupal.Commenting.FunctionComment.InvalidReturn)
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------


FILE: ...ormalizer/src/Plugin/ConfigNormalizer/ConfigNormalizerActive.php
----------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
----------------------------------------------------------------------
 32 | ERROR | [ ] The array declaration extends to column 102 (the
    |       |     limit is 80). The array content should be split up
    |       |     over multiple lines
    |       |     (Drupal.Arrays.Array.LongLineDeclaration)
 34 | ERROR | [x] Expected 1 blank line after function; 0 found
    |       |     (Squiz.WhiteSpace.FunctionSpacing.AfterLast)
 35 | ERROR | [x] The closing brace for the class must have an empty
    |       |     line before it
    |       |     (Drupal.Classes.ClassDeclaration.CloseBraceAfterBody)
----------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------


FILE: ...zer/src/Plugin/ConfigNormalizer/ConfigNormalizerFilterFormat.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 6 | WARNING | [x] Unused use statement
   |         |     (Drupal.Classes.UnusedUseStatement.UnusedUse)
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------


FILE: /usr/local/config_normalizer/src/ConfigItemNormalizer.php
----------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------
 41 | ERROR | The array declaration extends to column 86 (the limit
    |       | is 80). The array content should be split up over
    |       | multiple lines
    |       | (Drupal.Arrays.Array.LongLineDeclaration)
 65 | ERROR | Description for the @return value is missing
    |       | (Drupal.Commenting.FunctionComment.MissingReturnComment)
----------------------------------------------------------------------

Time: 192ms; Memory: 10MB

Steps to reproduce

Proposed resolution

Fix existing issues.

Remaining tasks

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States joegraduate Arizona, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024