- Issue created by @sidharth_soman
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 10:42am 5 July 2023 - 🇮🇳India sidharth_soman Bangalore
I have fixed all issues except for those related to filling out or editing documentation. This should ideally be done by the maintainers instead.
Please review the MR
- Status changed to Needs work
9 months ago 12:21pm 6 March 2024 - 🇮🇳India Ashutosh Ahirwal India
Hi, I reviewed the MR1 it resolve the issues but still there are so many issue found.
moving to need work to get noticed.Used command:- ./vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,txt,md,css,js,yml web/modules/custom/extended_html_filter
FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/extended_html_filter/extended_html_filter.info.yml
---------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------
7 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
---------------------------------------------------------------------------------------------------------------------------FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/extended_html_filter/src/Form/ExtendedHTMLFilterSettingsForm.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------
11 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
-----------------------------------------------------------------------------------------------------------------------------------------FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/extended_html_filter/src/Plugin/Filter/ExtendedHTMLFilter.php
--------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 3 WARNINGS AFFECTING 5 LINES
--------------------------------------------------------------------------------------------------------------------------------------------------
10 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\StringTranslation\StringTranslationTrait.
13 | WARNING | [ ] Line exceeds 80 characters; contains 92 characters
24 | WARNING | [ ] Line exceeds 80 characters; contains 193 characters
69 | ERROR | [ ] Public method name "ExtendedHTMLFilter::getHTMLRestrictions" is not in lowerCamel format
112 | WARNING | [ ] Unused bound variable $star_protector.
--------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/extended_html_filter/src/Utility/ExtendedHTMLFilterStandard.php
----------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------------------------
7 | ERROR | Doc comment is empty
12 | ERROR | Doc comment is empty
----------------------------------------------------------------------------------------------------------------------------------------Time: 165ms; Memory: 12MB
- First commit to issue fork.
- 🇮🇳India sakthi_dev
Fixed the remaining issues just keeping the function name to keep it backward compatible in other modules. Please review.