Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Some 8.x-1.x-dev coding standard violations remain pending after automating fixing from PHP CodeSniffer and should be fixed manually.
(For those new to Coder Sniffer, see https://www.drupal.org/node/1419988)
Tested with PHP_CodeSniffer version 2.7.1:
FILE: .../modules/contrib/ace_editor/src/Plugin/Filter/AceFilter.php
----------------------------------------------------------------------
FOUND 6 ERRORS AND 1 WARNING AFFECTING 7 LINES
----------------------------------------------------------------------
9 | ERROR | Missing short description in doc comment
33 | ERROR | Doc comment is empty
40 | WARNING | Line exceeds 80 characters; contains 83 characters
107 | ERROR | Inline doc block comments are not allowed; use "/*
| | Comment */" or "// Comment" instead
118 | ERROR | Doc comment is empty
180 | ERROR | Public method name "AceFilter::tag_attributes" is
| | not in lowerCamel format
212 | ERROR | Public method name "AceFilter::str_replace_once" is
| | not in lowerCamel format
----------------------------------------------------------------------
FILE: .../modules/contrib/ace_editor/src/Plugin/Editor/AceEditor.php
----------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
----------------------------------------------------------------------
41 | ERROR | Type hint "array" missing for $settings
108 | ERROR | Inline doc block comments are not allowed; use "/*
| | Comment */" or "// Comment" instead
188 | ERROR | Public method name "AceEditor::getJSSettings" is not
| | in lowerCamel format
----------------------------------------------------------------------
FILE: ...trib/ace_editor/src/Plugin/Field/FieldFormatter/AceFormatter.php
----------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
----------------------------------------------------------------------
22 | ERROR | Doc comment is empty
48 | WARNING | Line exceeds 80 characters; contains 83 characters
115 | ERROR | Inline doc block comments are not allowed; use "/*
| | Comment */" or "// Comment" instead
----------------------------------------------------------------------
FILE: .../modules/contrib/ace_editor/ace_editor.install
----------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------
3 | ERROR | Missing short description in doc comment
11 | ERROR | Doc comment is empty
----------------------------------------------------------------------
FILE: .../modules/contrib/ace_editor/ace_editor.module
----------------------------------------------------------------------
FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES
----------------------------------------------------------------------
8 | ERROR | Doc comment short description must be on a single
| | line, further text should be a separate paragraph
12 | WARNING | Format should be "* Implements hook_foo().", "*
| | Implements hook_foo_BAR_ID_bar() for xyz_bar().",, "*
| | Implements hook_foo_BAR_ID_bar() for
| | xyz-bar.html.twig.", "* Implements
| | hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or "*
| | Implements hook_foo_BAR_ID_bar() for block
| | templates."
14 | WARNING | Line exceeds 80 characters; contains 98 characters
----------------------------------------------------------------------
Comment | File | Size | Author |
---|---|---|---|
#6 | Satisfy-PHP-CodeSniffer-coding-standards-2846029-6.patch | 17.78 KB | ankitjain28may |
#6 | Screenshot from 2018-02-25 21-16-25.png | 61.73 KB | ankitjain28may |
#4 | ace_editor.txt | 2.57 KB | ankitjain28may |
Comments
Comment #2
interdruper CreditAttribution: interdruper at Interdruper commentedComment #3
ankitjain28may CreditAttribution: ankitjain28may commentedI am trying to check for the php_codesniffer error having phpcs V2.8.1 and drupal/coder V8.2.12.
I find only this errors-
Can you review this please so i will fix this up.
Comment #4
ankitjain28may CreditAttribution: ankitjain28may commentedComment #5
dbjpanda CreditAttribution: dbjpanda commented@ankitjain28may submit a patch which can fix the above issue of the Ace Code Editor. You need to manually correct those errors/warning.
Comment #6
ankitjain28may CreditAttribution: ankitjain28may as a volunteer commentedI have fixed the issues that need to be fixed manually, Please review the patch.
Comment #7
ankitjain28may CreditAttribution: ankitjain28may as a volunteer commentedComment #9
interdruper CreditAttribution: interdruper at Interdruper commentedFixed on 8.x-1.1.