FILE: D:\xampp\htdocs\drupal9.5\web\modules\contrib\scalable_cybersec\README.md
-------------------------------------------------------------------------------
FOUND 0 ERRORS AND 7 WARNINGS AFFECTING 7 LINES
-------------------------------------------------------------------------------
8 | WARNING | Line exceeds 80 characters; contains 90 characters
10 | WARNING | Line exceeds 80 characters; contains 94 characters
13 | WARNING | Line exceeds 80 characters; contains 112 characters
25 | WARNING | Line exceeds 80 characters; contains 91 characters
26 | WARNING | Line exceeds 80 characters; contains 91 characters
28 | WARNING | Line exceeds 80 characters; contains 157 characters
29 | WARNING | Line exceeds 80 characters; contains 105 characters
-------------------------------------------------------------------------------
FILE: D:\xampp\htdocs\drupal9.5\web\modules\contrib\scalable_cybersec\scalable_cybersec.install
-----------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
-----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------
FILE: D:\xampp\htdocs\drupal9.5\web\modules\contrib\scalable_cybersec\src\Controller\ScalableCybersecController.php
-------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
-------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
25 | ERROR | [x] Parameter comment must end with a full stop
27 | ERROR | [ ] Description for the @return value is missing
39 | ERROR | [x] Parameter comment must end with a full stop
41 | ERROR | [ ] Description for the @return value is missing
42 | ERROR | [x] Separate the @return and @throws sections by a blank line.
-------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------
FILE: D:\xampp\htdocs\drupal9.5\web\modules\contrib\scalable_cybersec\src\DrupalFinder.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 18 ERRORS AND 1 WARNING AFFECTING 18 LINES
------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
10 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
12 | ERROR | [x] Missing class doc comment
37 | ERROR | [x] Missing function doc comment
67 | ERROR | [ ] Missing short description in doc comment
68 | ERROR | [ ] Missing parameter comment
68 | ERROR | [ ] Missing parameter type
70 | ERROR | [ ] Description for the @return value is missing
102 | WARNING | [x] '@todo: Remove this magic and detect the major version instead.' should match the format '@todo Fix problem X here.'
129 | ERROR | [ ] Missing short description in doc comment
130 | ERROR | [ ] Description for the @return value is missing
139 | ERROR | [ ] Missing parameter name
151 | ERROR | [ ] Missing short description in doc comment
152 | ERROR | [ ] Description for the @return value is missing
158 | ERROR | [ ] Missing short description in doc comment
159 | ERROR | [ ] Description for the @return value is missing
165 | ERROR | [ ] Missing short description in doc comment
166 | ERROR | [ ] Description for the @return value is missing
------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------
FILE: D:\xampp\htdocs\drupal9.5\web\modules\contrib\scalable_cybersec\src\Form\SettingsForm.php
-----------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
-----------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
14 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
122 | ERROR | [ ] Description for the @return value is missing
131 | ERROR | [ ] Description for the @return value is missing
140 | ERROR | [ ] Description for the @return value is missing
-----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------
FILE: D:\xampp\htdocs\drupal9.5\web\modules\contrib\scalable_cybersec\src\ParamConverter\ScalableCybersecTokenParamConverter.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
--------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------
FILE: D:\xampp\htdocs\drupal9.5\web\modules\contrib\scalable_cybersec\src\Utility.php
-------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
-------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
5 | ERROR | [x] Missing trait doc comment
10 | ERROR | [ ] Missing parameter comment
12 | ERROR | [ ] Description for the @return value is missing
-------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | phpcs-standard-coding-3295662-2.patch | 8.7 KB | Harsh panchal |
Comments
Comment #2
Harsh panchal commentedI have fixed this issue and providing a patch.
Comment #3
akshaydalvi212 commentedHello @Harsh panchal,
I will review patch #2.
Thanks and regards
Comment #4
akshaydalvi212 commentedHello @Harsh panchal,
After applying the patch all the about mention errors and warnings are eliminated.
some warnings are still there but you have created another issue and provided patch for the same.
hence switching the issue to reviewed and tested by the community.
Thanks and regards.