Problem/Motivation
Getting following error/warnings:
FILE: D:\xampp\htdocs\project_10\web\modules\contrib\rawdebug\rawdebug.module
----------------------------------------------------------------------------------------------------------
FOUND 46 ERRORS AND 2 WARNINGS AFFECTING 24 LINES
----------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
14 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
14 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
16 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
16 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
17 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
17 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
18 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
18 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
19 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
19 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
21 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
21 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
22 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
22 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
23 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
23 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
24 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
24 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
25 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
25 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
26 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
26 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
27 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
27 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
27 | WARNING | [ ] Avoid backslash escaping in translatable strings when possible, use "" quotes instead
28 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
28 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
28 | WARNING | [ ] Avoid backslash escaping in translatable strings when possible, use "" quotes instead
30 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
30 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
31 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
31 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 4
32 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
32 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
33 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
33 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
34 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
34 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 4
35 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
35 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
37 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
37 | ERROR | [x] Case breaking statement indented incorrectly; expected 4 spaces, found 3
39 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
39 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
40 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
40 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
41 | ERROR | [x] Expected 1 newline at end of file; 3 found
----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 46 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------
FILE: D:\xampp\htdocs\project_10\web\modules\contrib\rawdebug\rawdebug.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 122 ERRORS AFFECTING 61 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
23 | ERROR | [x] Expected "bool" but found "boolean" for parameter type
32 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
32 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
33 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
33 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
34 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
34 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
35 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
35 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
37 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
37 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
38 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
38 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
39 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
39 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
40 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
40 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
42 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
42 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
55 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
55 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
56 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
56 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
57 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
57 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
59 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
59 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
60 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
60 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
61 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
61 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
61 | ERROR | [x] No space found before comment text; expected "// return '' . $arg . ' (' . gettype($arg) . ')';" but found "//return '' . $arg . ' (' . gettype($arg) . ')';"
61 | ERROR | [x] Inline comments must start with a capital letter
61 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
62 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
62 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
64 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
64 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
65 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
65 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
66 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
66 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
67 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
67 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
68 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
68 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
70 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
70 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
71 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
71 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
73 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
73 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
74 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
74 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
74 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
75 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
75 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
76 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
76 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
78 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
78 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
84 | ERROR | [x] There must be a single blank line after a tag group
86 | ERROR | [x] Whitespace found at end of line
88 | ERROR | [ ] Function return type is not void, but function does not have a non-void return statement
92 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
92 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
94 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
94 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
95 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
95 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
96 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
96 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
97 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
97 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
98 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
98 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
99 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
99 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
100 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
100 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
102 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
102 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
104 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
104 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
106 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
106 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
107 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
107 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
108 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
108 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
109 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
109 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
110 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
110 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
110 | ERROR | [ ] Function return type is not void, but function is returning void here
111 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
111 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
113 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
113 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
115 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
115 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
116 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
116 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
117 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
117 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
118 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
118 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
119 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
119 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
120 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
120 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
121 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
121 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
122 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
122 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
123 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
123 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
125 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
125 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
127 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
127 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 120 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: D:\xampp\htdocs\project_10\web\modules\contrib\rawdebug\README.md
-------------------------------------------------------------------------
FOUND 1 ERROR AND 27 WARNINGS AFFECTING 28 LINES
-------------------------------------------------------------------------
19 | WARNING | [ ] Line exceeds 80 characters; contains 98 characters
24 | WARNING | [ ] Line exceeds 80 characters; contains 105 characters
26 | WARNING | [ ] Line exceeds 80 characters; contains 145 characters
35 | WARNING | [ ] Line exceeds 80 characters; contains 94 characters
37 | WARNING | [ ] Line exceeds 80 characters; contains 118 characters
38 | WARNING | [ ] Line exceeds 80 characters; contains 119 characters
40 | WARNING | [ ] Line exceeds 80 characters; contains 123 characters
47 | WARNING | [ ] Line exceeds 80 characters; contains 87 characters
60 | WARNING | [ ] Line exceeds 80 characters; contains 128 characters
62 | WARNING | [ ] Line exceeds 80 characters; contains 123 characters
67 | WARNING | [ ] Line exceeds 80 characters; contains 114 characters
70 | WARNING | [ ] Line exceeds 80 characters; contains 187 characters
71 | WARNING | [ ] Line exceeds 80 characters; contains 101 characters
77 | WARNING | [ ] Line exceeds 80 characters; contains 96 characters
81 | WARNING | [ ] Line exceeds 80 characters; contains 129 characters
87 | WARNING | [ ] Line exceeds 80 characters; contains 128 characters
89 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
95 | WARNING | [ ] Line exceeds 80 characters; contains 102 characters
97 | WARNING | [ ] Line exceeds 80 characters; contains 84 characters
98 | WARNING | [ ] Line exceeds 80 characters; contains 105 characters
103 | WARNING | [ ] Line exceeds 80 characters; contains 93 characters
108 | WARNING | [ ] Line exceeds 80 characters; contains 119 characters
114 | WARNING | [ ] Line exceeds 80 characters; contains 119 characters
117 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
120 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
122 | WARNING | [ ] Line exceeds 80 characters; contains 85 characters
123 | WARNING | [ ] Line exceeds 80 characters; contains 134 characters
130 | ERROR | [x] Expected 1 newline at end of file; 2 found
-------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------
Steps to reproduce
Run following command:
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml rawdebug/
Proposed resolution
Above error/warnings need to be fixed
Remaining tasks
User interface changes
API changes
Data model changes