Fix the issues reported by phpcs

Created on 13 December 2016, about 8 years ago
Updated 7 June 2024, 7 months ago

GitLab CI reports PHP_CodeSniffer warnings/errors. The ones still to be fixed are the following ones.

FILE: .../custom/classy_paragraphs-2835021/src/ClassyParagraphsStyleListBuilder.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
 15 | ERROR | [x] Expected 1 blank line before function; 0 found
    |       |     (Squiz.WhiteSpace.FunctionSpacing.BeforeFirst)
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...es/custom/classy_paragraphs-2835021/src/ClassyParagraphsStyleInterface.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
 15 | ERROR | Return type missing for @return tag in function comment
    |       | (Drupal.Commenting.FunctionComment.MissingReturnType)
--------------------------------------------------------------------------------
FILE: ...tom/classy_paragraphs-2835021/src/ClassyParagraphsAccessControlHandler.php
--------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------
 28 | ERROR | [x] Expected 1 blank line after function; 0 found
    |       |     (Squiz.WhiteSpace.FunctionSpacing.AfterLast)
 29 | 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: ...odules/custom/classy_paragraphs-2835021/src/Tests/ClassyParagraphsTest.php
--------------------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 7 LINES
--------------------------------------------------------------------------------
   6 | ERROR | [x] Use statements should be sorted alphabetically. The first
     |       |     wrong one is Drupal\paragraphs\Entity\Paragraph.
     |       |     (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses)
  31 | ERROR | [x] Closing parenthesis of array declaration must be on a new
     |       |     line (Squiz.Arrays.ArrayDeclaration.CloseBraceNewLine)
  38 | ERROR | [ ] Missing parameter comment
     |       |     (Drupal.Commenting.FunctionComment.MissingParamComment)
  38 | ERROR | [ ] Missing parameter type
     |       |     (Drupal.Commenting.FunctionComment.MissingParamType)
  39 | ERROR | [ ] Missing parameter comment
     |       |     (Drupal.Commenting.FunctionComment.MissingParamComment)
  96 | ERROR | [x] list(...) is forbidden, use [...] instead.
     |       |     (SlevomatCodingStandard.PHP.ShortList.LongListUsed)
 101 | ERROR | [x] Expected 1 blank line after function; 0 found
     |       |     (Squiz.WhiteSpace.FunctionSpacing.AfterLast)
 102 | ERROR | [x] The closing brace for the class must have an empty line
     |       |     before it
     |       |     (Drupal.Classes.ClassDeclaration.CloseBraceAfterBody)
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...-2835021/src/Plugin/EntityReferenceSelection/ClassyParagraphsSelection.php
--------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------
  7 | ERROR | [x] Use statements should be sorted alphabetically. The first
    |       |     wrong one is
    |       |     Drupal\classy_paragraphs\Entity\ClassyParagraphsStyle.
    |       |     (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses)
 23 | ERROR | [x] @inheritDoc found. Did you mean {@inheritDoc}?
    |       |     (Drupal.Commenting.DocComment.InheritDocWithoutBraces)
 86 | ERROR | [x] Use null coalesce operator instead of ternary operator.
    |       |     (SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator.NullCoalesceOperatorNotUsed)
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...es/custom/classy_paragraphs-2835021/src/Form/ClassyParagraphsStyleForm.php
--------------------------------------------------------------------------------
FOUND 3 ERRORS AND 2 WARNINGS AFFECTING 5 LINES
--------------------------------------------------------------------------------
  5 | WARNING | [x] Unused use statement
    |         |     (Drupal.Classes.UnusedUseStatement.UnusedUse)
  6 | ERROR   | [x] Use statements should be sorted alphabetically. The first
    |         |     wrong one is Drupal\Core\Entity\EntityForm.
    |         |     (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses)
 13 | WARNING | [ ] The class short comment should describe what the class does
    |         |     and not simply repeat the class name
    |         |     (Drupal.Commenting.ClassComment.Short)
 18 | ERROR   | [x] Expected 1 blank line before function; 0 found
    |         |     (Squiz.WhiteSpace.FunctionSpacing.BeforeFirst)
 40 | ERROR   | [x] Whitespace found at end of line
    |         |     (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine)
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...tom/classy_paragraphs-2835021/src/Form/ClassyParagraphsStyleDeleteForm.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
--------------------------------------------------------------------------------
 16 | ERROR   | [x] Expected 1 blank line before function; 0 found
    |         |     (Squiz.WhiteSpace.FunctionSpacing.BeforeFirst)
 44 | WARNING | [x] A comma should follow the last multiline array item. Found:
    |         |     ) (Drupal.Arrays.Array.CommaLastItem)
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...ules/custom/classy_paragraphs-2835021/src/Entity/ClassyParagraphsStyle.php
--------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------
  6 | ERROR | [x] Use statements should be sorted alphabetically. The first
    |       |     wrong one is
    |       |     Drupal\classy_paragraphs\ClassyParagraphsStyleInterface.
    |       |     (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses)
 64 | ERROR | [ ] Doc comment short description must end with a full stop
    |       |     (Drupal.Commenting.DocComment.ShortFullStop)
 64 | ERROR | [ ] Doc comment short description must be on a single line,
    |       |     further text should be a separate paragraph
    |       |     (Drupal.Commenting.DocComment.ShortSingleLine)
 74 | ERROR | [x] Use null coalesce operator instead of ternary operator.
    |       |     (SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator.NullCoalesceOperatorNotUsed)
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...5021/web/modules/custom/classy_paragraphs-2835021/classy_paragraphs.module
--------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
--------------------------------------------------------------------------------
  9 | ERROR | [x] Use statements should be sorted alphabetically. The first
    |       |     wrong one is Drupal\Core\Entity\EntityInterface.
    |       |     (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses)
 44 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
    |       |     (Drupal.ControlStructures.ControlSignature.SpaceAfterKeyword)
 56 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
    |       |     (Drupal.ControlStructures.ControlSignature.SpaceAfterKeyword)
 63 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
    |       |     (Drupal.ControlStructures.ControlSignature.SpaceAfterKeyword)
 67 | ERROR | [x] Expected 1 space after IF keyword; 0 found
    |       |     (Drupal.ControlStructures.ControlSignature.SpaceAfterKeyword)
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
Time: 148ms; Memory: 6MB

 
 

📌 Task
Status

Needs review

Version

1.0

Component

Code

Created by

🇮🇳India vishalkhialani

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇹Italy apaderno Brescia, 🇮🇹

    The issue summary should always describe what the issue is trying to fix and, in the case, of coding standards issues, show which command has been used, which arguments have been used, and which report that command shown.

  • Assigned to nitin_lama
  • 🇮🇳India nitin_lama India

    There were more issue left. Fixed most of them. Providing the updated patch.

  • 🇮🇳India nitin_lama India

    Updating IS for the remaining issues.

  • 🇮🇳India nitin_lama India

    Kindly review the IS and inform me whether the remaining issues require resolution or not. Thanks.

  • Issue was unassigned.
  • Status changed to Needs review 12 months ago
  • 🇮🇳India dev16.addweb

    I have fixed every mentioned error in this patch; kindly review.

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 7 WARNINGS AFFECTING 7 LINES
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------
      6 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
      7 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
      8 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
      9 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
     10 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
     11 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
     12 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------
    
  • Pipeline finished with Success
    7 months ago
    Total: 148s
    #185939
  • 🇮🇹Italy apaderno Brescia, 🇮🇹
  • 🇮🇹Italy apaderno Brescia, 🇮🇹
  • Status changed to Needs work 7 months ago
  • 🇵🇭Philippines cleavinjosh

    Hi @silvi.addweb,

    I have applied patch#33 and it was applied smoothly.

    However, I still encounter some issues after I ran phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml.

    ➜  classy_paragraphs git:(8.x-1.0-rc3) ✗ curl https://www.drupal.org/files/issues/2024-05-30/classy_paragraphs-2835021-33.patch | patch -p1
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100 12768  100 12768    0     0  15725      0 --:--:-- --:--:-- --:--:-- 15724
    patching file classy_paragraphs.links.action.yml
    patching file classy_paragraphs.links.menu.yml
    patching file classy_paragraphs.module
    patching file classy_paragraphs.routing.yml
    patching file src/ClassyParagraphsAccessControlHandler.php
    patching file src/ClassyParagraphsStyleInterface.php
    patching file src/ClassyParagraphsStyleListBuilder.php
    patching file src/Entity/ClassyParagraphsStyle.php
    patching file src/Form/ClassyParagraphsStyleDeleteForm.php
    patching file src/Form/ClassyParagraphsStyleForm.php
    patching file src/Plugin/EntityReferenceSelection/ClassyParagraphsSelection.php
    patching file src/Tests/ClassyParagraphsTest.php
    patching file tests/modules/classy_paragraphs_test/classy_paragraphs_test.info.yml
    ➜  classy_paragraphs git:(8.x-1.0-rc3) ✗ ..
    ➜  contrib git:(main) ✗ phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml classy_paragraphs
    
    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/classy_paragraphs/tests/modules/classy_paragraphs_test/classy_paragraphs_test.info.yml
    -----------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------------------------------------------------------
     12 | ERROR | [x] Expected 1 newline at end of file; 2 found
    -----------------------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/classy_paragraphs/README.md
    ------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 19 WARNINGS AFFECTING 19 LINES
    ------------------------------------------------------------------------------------------------
      56 | WARNING | Line exceeds 80 characters; contains 146 characters
      57 | WARNING | Line exceeds 80 characters; contains 228 characters
      59 | WARNING | Line exceeds 80 characters; contains 116 characters
      60 | WARNING | Line exceeds 80 characters; contains 104 characters
      62 | WARNING | Line exceeds 80 characters; contains 130 characters
      63 | WARNING | Line exceeds 80 characters; contains 111 characters
      68 | WARNING | Line exceeds 80 characters; contains 96 characters
      71 | WARNING | Line exceeds 80 characters; contains 154 characters
      74 | WARNING | Line exceeds 80 characters; contains 97 characters
      75 | WARNING | Line exceeds 80 characters; contains 153 characters
      78 | WARNING | Line exceeds 80 characters; contains 92 characters
      80 | WARNING | Line exceeds 80 characters; contains 198 characters
      84 | WARNING | Line exceeds 80 characters; contains 88 characters
      86 | WARNING | Line exceeds 80 characters; contains 104 characters
      87 | WARNING | Line exceeds 80 characters; contains 108 characters
      89 | WARNING | Line exceeds 80 characters; contains 331 characters
      90 | WARNING | Line exceeds 80 characters; contains 400 characters
      97 | WARNING | Line exceeds 80 characters; contains 95 characters
     117 | WARNING | Line exceeds 80 characters; contains 125 characters
    ------------------------------------------------------------------------------------------------
    
    Time: 239ms; Memory: 10MB
    
    ➜  contrib git:(main) ✗

    Thank you.

  • Status changed to Needs review 7 months ago
  • 🇮🇹Italy apaderno Brescia, 🇮🇹
  • Pipeline finished with Success
    7 months ago
    Total: 140s
    #192475
  • Status changed to Needs work 7 months ago
  • 🇵🇭Philippines cleavinjosh

    Hi @apaderno,

    I applied MR!3, it was applied smoothly.

    However, I still encounter some issues after I ran phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml.

    ➜  classy_paragraphs git:(8.x-1.0-rc3) curl https://git.drupalcode.org/project/classy_paragraphs/-/merge_requests/3.diff | git apply -v
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100 12633    0 12633    0     0  35815      0 --:--:-- --:--:-- --:--:-- 35889
    Checking patch .gitlab-ci.yml...
    Checking patch classy_paragraphs.module...
    Checking patch src/ClassyParagraphsAccessControlHandler.php...
    Checking patch src/ClassyParagraphsStyleInterface.php...
    Checking patch src/ClassyParagraphsStyleListBuilder.php...
    Checking patch src/Entity/ClassyParagraphsStyle.php...
    Checking patch src/Form/ClassyParagraphsStyleDeleteForm.php...
    Checking patch src/Form/ClassyParagraphsStyleForm.php...
    Checking patch src/Plugin/EntityReferenceSelection/ClassyParagraphsSelection.php...
    Checking patch src/Tests/ClassyParagraphsTest.php...
    Applied patch .gitlab-ci.yml cleanly.
    Applied patch classy_paragraphs.module cleanly.
    Applied patch src/ClassyParagraphsAccessControlHandler.php cleanly.
    Applied patch src/ClassyParagraphsStyleInterface.php cleanly.
    Applied patch src/ClassyParagraphsStyleListBuilder.php cleanly.
    Applied patch src/Entity/ClassyParagraphsStyle.php cleanly.
    Applied patch src/Form/ClassyParagraphsStyleDeleteForm.php cleanly.
    Applied patch src/Form/ClassyParagraphsStyleForm.php cleanly.
    Applied patch src/Plugin/EntityReferenceSelection/ClassyParagraphsSelection.php cleanly.
    Applied patch src/Tests/ClassyParagraphsTest.php cleanly.
    ➜  classy_paragraphs git:(8.x-1.0-rc3) ✗ ..
    ➜  contrib git:(main) ✗ phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml classy_paragraphs
    
    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/classy_paragraphs/classy_paragraphs.links.action.yml
    -------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------------------
     5 | ERROR | [x] Expected 1 newline at end of file; 2 found
    -------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/classy_paragraphs/tests/modules/classy_paragraphs_test/classy_paragraphs_test.info.yml
    -----------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 7 WARNINGS AFFECTING 7 LINES
    -----------------------------------------------------------------------------------------------------------------------------------------------------------
      6 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
      7 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
      8 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
      9 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
     10 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
     11 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
     12 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
    -----------------------------------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/classy_paragraphs/README.md
    ------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 19 WARNINGS AFFECTING 19 LINES
    ------------------------------------------------------------------------------------------------
      56 | WARNING | Line exceeds 80 characters; contains 146 characters
      57 | WARNING | Line exceeds 80 characters; contains 228 characters
      59 | WARNING | Line exceeds 80 characters; contains 116 characters
      60 | WARNING | Line exceeds 80 characters; contains 104 characters
      62 | WARNING | Line exceeds 80 characters; contains 130 characters
      63 | WARNING | Line exceeds 80 characters; contains 111 characters
      68 | WARNING | Line exceeds 80 characters; contains 96 characters
      71 | WARNING | Line exceeds 80 characters; contains 154 characters
      74 | WARNING | Line exceeds 80 characters; contains 97 characters
      75 | WARNING | Line exceeds 80 characters; contains 153 characters
      78 | WARNING | Line exceeds 80 characters; contains 92 characters
      80 | WARNING | Line exceeds 80 characters; contains 198 characters
      84 | WARNING | Line exceeds 80 characters; contains 88 characters
      86 | WARNING | Line exceeds 80 characters; contains 104 characters
      87 | WARNING | Line exceeds 80 characters; contains 108 characters
      89 | WARNING | Line exceeds 80 characters; contains 331 characters
      90 | WARNING | Line exceeds 80 characters; contains 400 characters
      97 | WARNING | Line exceeds 80 characters; contains 95 characters
     117 | WARNING | Line exceeds 80 characters; contains 125 characters
    ------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/classy_paragraphs/classy_paragraphs.routing.yml
    --------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------------------
     41 | ERROR | [x] Expected 1 newline at end of file; 2 found
    --------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    --------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/classy_paragraphs/classy_paragraphs.module
    ---------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ---------------------------------------------------------------------------------------------------------------
     55 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
    ---------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ---------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/classy_paragraphs/classy_paragraphs.links.menu.yml
    -----------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------------------
     7 | ERROR | [x] Expected 1 newline at end of file; 2 found
    -----------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/classy_paragraphs/src/Tests/ClassyParagraphsTest.php
    -------------------------------------------------------------------------------------------------------------------------
    FOUND 2 ERRORS AFFECTING 2 LINES
    -------------------------------------------------------------------------------------------------------------------------
      6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\node\Entity\Node.
     31 | ERROR | [x] Closing parenthesis of array declaration must be on a new line
    -------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/classy_paragraphs/src/Plugin/EntityReferenceSelection/ClassyParagraphsSelection.php
    --------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 3 LINES
    --------------------------------------------------------------------------------------------------------------------------------------------------------
     69 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     77 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     87 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     87 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
    --------------------------------------------------------------------------------------------------------------------------------------------------------
    
    Time: 206ms; Memory: 10MB
    
    ➜  contrib git:(main) ✗

    Thank you.

  • Pipeline finished with Canceled
    7 months ago
    Total: 48s
    #192737
  • Status changed to Needs review 7 months ago
  • 🇮🇹Italy apaderno Brescia, 🇮🇹
  • Pipeline finished with Success
    7 months ago
    Total: 140s
    #192739
  • Status changed to Needs work 7 months ago
  • 🇵🇭Philippines cleavinjosh

    Hi @apaderno,

    I applied MR!3 and it was applied smoothly.

    However, I still encountered some issues after I ran phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml.

    ➜  classy_paragraphs git:(8.x-1.0-rc3) curl https://git.drupalcode.org/project/classy_paragraphs/-/merge_requests/3.diff | git apply -v
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100 13029    0 13029    0     0  36767      0 --:--:-- --:--:-- --:--:-- 36701
    Checking patch .gitlab-ci.yml...
    Checking patch classy_paragraphs.module...
    Checking patch src/ClassyParagraphsAccessControlHandler.php...
    Checking patch src/ClassyParagraphsStyleInterface.php...
    Checking patch src/ClassyParagraphsStyleListBuilder.php...
    Checking patch src/Entity/ClassyParagraphsStyle.php...
    Checking patch src/Form/ClassyParagraphsStyleDeleteForm.php...
    Checking patch src/Form/ClassyParagraphsStyleForm.php...
    Checking patch src/Plugin/EntityReferenceSelection/ClassyParagraphsSelection.php...
    Checking patch src/Tests/ClassyParagraphsTest.php...
    Applied patch .gitlab-ci.yml cleanly.
    Applied patch classy_paragraphs.module cleanly.
    Applied patch src/ClassyParagraphsAccessControlHandler.php cleanly.
    Applied patch src/ClassyParagraphsStyleInterface.php cleanly.
    Applied patch src/ClassyParagraphsStyleListBuilder.php cleanly.
    Applied patch src/Entity/ClassyParagraphsStyle.php cleanly.
    Applied patch src/Form/ClassyParagraphsStyleDeleteForm.php cleanly.
    Applied patch src/Form/ClassyParagraphsStyleForm.php cleanly.
    Applied patch src/Plugin/EntityReferenceSelection/ClassyParagraphsSelection.php cleanly.
    Applied patch src/Tests/ClassyParagraphsTest.php cleanly.
    ➜  classy_paragraphs git:(8.x-1.0-rc3) ✗ ..
    ➜  contrib git:(main) ✗ phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml classy_paragraphs
    
    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/classy_paragraphs/classy_paragraphs.links.action.yml
    -------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------------------
     5 | ERROR | [x] Expected 1 newline at end of file; 2 found
    -------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/classy_paragraphs/tests/modules/classy_paragraphs_test/classy_paragraphs_test.info.yml
    -----------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 7 WARNINGS AFFECTING 7 LINES
    -----------------------------------------------------------------------------------------------------------------------------------------------------------
      6 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
      7 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
      8 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
      9 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
     10 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
     11 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
     12 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
    -----------------------------------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/classy_paragraphs/README.md
    ------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 19 WARNINGS AFFECTING 19 LINES
    ------------------------------------------------------------------------------------------------
      56 | WARNING | Line exceeds 80 characters; contains 146 characters
      57 | WARNING | Line exceeds 80 characters; contains 228 characters
      59 | WARNING | Line exceeds 80 characters; contains 116 characters
      60 | WARNING | Line exceeds 80 characters; contains 104 characters
      62 | WARNING | Line exceeds 80 characters; contains 130 characters
      63 | WARNING | Line exceeds 80 characters; contains 111 characters
      68 | WARNING | Line exceeds 80 characters; contains 96 characters
      71 | WARNING | Line exceeds 80 characters; contains 154 characters
      74 | WARNING | Line exceeds 80 characters; contains 97 characters
      75 | WARNING | Line exceeds 80 characters; contains 153 characters
      78 | WARNING | Line exceeds 80 characters; contains 92 characters
      80 | WARNING | Line exceeds 80 characters; contains 198 characters
      84 | WARNING | Line exceeds 80 characters; contains 88 characters
      86 | WARNING | Line exceeds 80 characters; contains 104 characters
      87 | WARNING | Line exceeds 80 characters; contains 108 characters
      89 | WARNING | Line exceeds 80 characters; contains 331 characters
      90 | WARNING | Line exceeds 80 characters; contains 400 characters
      97 | WARNING | Line exceeds 80 characters; contains 95 characters
     117 | WARNING | Line exceeds 80 characters; contains 125 characters
    ------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/classy_paragraphs/classy_paragraphs.routing.yml
    --------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------------------
     41 | ERROR | [x] Expected 1 newline at end of file; 2 found
    --------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    --------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/classy_paragraphs/classy_paragraphs.links.menu.yml
    -----------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------------------
     7 | ERROR | [x] Expected 1 newline at end of file; 2 found
    -----------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/classy_paragraphs/src/Plugin/EntityReferenceSelection/ClassyParagraphsSelection.php
    --------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 3 LINES
    --------------------------------------------------------------------------------------------------------------------------------------------------------
     69 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     77 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     87 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
     87 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
    --------------------------------------------------------------------------------------------------------------------------------------------------------
    
    Time: 286ms; Memory: 10MB
    
    ➜  contrib git:(main) ✗

    Thank you.

  • Status changed to Needs review 7 months ago
Production build 0.71.5 2024