Fix the issues reported by phpcs

Created on 3 July 2023, 12 months ago
Updated 4 July 2023, 12 months ago

Problem/Motivation

FILE: /Users/roberttabigue/Projects/drupalorgissues/docroot/modules/contrib/jquery_ui_filter/tests/test-script.md
-----------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
 51 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------


FILE: /Users/roberttabigue/Projects/drupalorgissues/docroot/modules/contrib/jquery_ui_filter/jquery_ui_filter.info.yml
----------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------
 1 | WARNING | "core_version_requirement" property is missing in the info.yml file
 7 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
----------------------------------------------------------------------------------------------------------------------


FILE: /Users/roberttabigue/Projects/drupalorgissues/docroot/modules/contrib/jquery_ui_filter/README.md
------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 9 WARNINGS AFFECTING 9 LINES
------------------------------------------------------------------------------------------------------
  15 | WARNING | Line exceeds 80 characters; contains 81 characters
  23 | WARNING | Line exceeds 80 characters; contains 106 characters
  26 | WARNING | Line exceeds 80 characters; contains 106 characters
  29 | WARNING | Line exceeds 80 characters; contains 106 characters
  76 | WARNING | Line exceeds 80 characters; contains 87 characters
  78 | WARNING | Line exceeds 80 characters; contains 105 characters
  88 | WARNING | Line exceeds 80 characters; contains 82 characters
 103 | WARNING | Line exceeds 80 characters; contains 110 characters
 116 | WARNING | Line exceeds 80 characters; contains 100 characters
------------------------------------------------------------------------------------------------------


FILE: /Users/roberttabigue/Projects/drupalorgissues/docroot/modules/contrib/jquery_ui_filter/NOTES.md
-----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------------
 31 | WARNING | Line exceeds 80 characters; contains 127 characters
 34 | WARNING | Line exceeds 80 characters; contains 135 characters
 43 | WARNING | Line exceeds 80 characters; contains 89 characters
-----------------------------------------------------------------------------------------------------


FILE: /Users/roberttabigue/Projects/drupalorgissues/docroot/modules/contrib/jquery_ui_filter/src/Form/jQueryUiFilterSettingsForm.php
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 3 WARNINGS AFFECTING 7 LINES
---------------------------------------------------------------------------------------------------------------------------------------------
  3 | ERROR   | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
 18 | ERROR   | [ ] Class name must begin with a capital letter
 60 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
 72 | ERROR   | [x] Equals sign not aligned with surrounding assignments; expected 1 space but found 2 spaces
 75 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
 94 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
 95 | ERROR   | [ ] The array declaration extends to column 87 (the limit is 80). The array content should be split up over multiple lines
---------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------


FILE: /Users/roberttabigue/Projects/drupalorgissues/docroot/modules/contrib/jquery_ui_filter/src/Tests/jQueryUiFilterUnitTest.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 11 ERRORS AND 1 WARNING AFFECTING 11 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
   3 | ERROR   | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
  23 | ERROR   | [ ] Class name must begin with a capital letter
 113 | ERROR   | [ ] Doc comment is empty
 114 | ERROR   | [x] 2 spaces found before inline comment; expected "// Copied from: Drupal\filter\Tests\FilterUnitTest" but found "//  Copied from:
     |         |     Drupal\filter\Tests\FilterUnitTest"
 114 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 115 | ERROR   | [ ] Doc comment is empty
 120 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 128 | ERROR   | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
 129 | ERROR   | [x] Separate the @param and @code sections by a blank line.
 130 | ERROR   | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
 135 | ERROR   | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
 142 | WARNING | [ ] Line exceeds 80 characters; contains 86 characters
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


FILE: /Users/roberttabigue/Projects/drupalorgissues/docroot/modules/contrib/jquery_ui_filter/src/Plugin/Filter/jQueryUiFilter.php
---------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
---------------------------------------------------------------------------------------------------------------------------------
   3 | ERROR   | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
  27 | ERROR   | [ ] Class name must begin with a capital letter
 166 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
---------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------

Time: 240ms; Memory: 10MB

Steps to reproduce

Run this command: phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml

πŸ“Œ Task
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡΅πŸ‡­Philippines roberttabigue

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

Comments & Activities

Production build 0.69.0 2024