- Issue created by @Prachi6824
- Assigned to Prachi6824
- Status changed to Needs review
over 1 year ago 2:47pm 23 June 2023 - 🇮🇳India Prachi6824
Hello,
I have created a patch to solve all the errors related to phpcs code standard within the .theme file .
Please review and apply it - Issue was unassigned.
- Status changed to Needs work
10 months ago 11:12am 5 March 2024 - 🇮🇳India Ashutosh Ahirwal India
Hi, I have applied patch but there are still so many errors found.
Moving to Need workUsed command:- ./vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,txt,md,css,js,yml web/modules/custom/topplus_lite
FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/css/components/dropdowns.css
------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------
36 | ERROR | Style definitions must end with a semicolon
------------------------------------------------------------------------------------------------------------------FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/css/components/inverted-header.css
------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------
42 | ERROR | Style definitions must end with a semicolon
------------------------------------------------------------------------------------------------------------------------FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/css/components/social-links.css
---------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------
41 | ERROR | Style definitions must end with a semicolon
---------------------------------------------------------------------------------------------------------------------FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/css/components/forms.css
--------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------
167 | ERROR | Style definitions must end with a semicolon
--------------------------------------------------------------------------------------------------------------FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/css/components/menu.css
-------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------
819 | ERROR | Class definition is empty
-------------------------------------------------------------------------------------------------------------FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/css/components/owl-carousel-global.css
----------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------
69 | ERROR | Style definitions must end with a semicolon
----------------------------------------------------------------------------------------------------------------------------FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/css/theme/local-theme.css
---------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Additional whitespace found at start of file
---------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/js/popper/popper.min.js
-------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
-------------------------------------------------------------------------------------------------------------FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/js/waypoints/shortcuts/inview.min.js
--------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------------------------------------------------FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/js/waypoints/shortcuts/sticky.min.js
--------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------------------------------------------------FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/js/waypoints/jquery.waypoints.min.js
--------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------------------------------------------------FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/js/magnific-popup/magnific-popup.css
--------------------------------------------------------------------------------------------------------------------------
FOUND 162 ERRORS AFFECTING 135 LINES
--------------------------------------------------------------------------------------------------------------------------
11 | ERROR | [x] Closing brace of class definition must be on new line
21 | ERROR | [x] Closing brace of class definition must be on new line
31 | ERROR | [x] Closing brace of class definition must be on new line
37 | ERROR | [x] Closing brace of class definition must be on new line
40 | ERROR | [x] Closing brace of class definition must be on new line
48 | ERROR | [x] Closing brace of class definition must be on new line
53 | ERROR | [x] Closing brace of class definition must be on new line
56 | ERROR | [x] Closing brace of class definition must be on new line
58 | ERROR | [x] Multiple selectors should each be on a single line
61 | ERROR | [x] Closing brace of class definition must be on new line
67 | ERROR | [x] Closing brace of class definition must be on new line
70 | ERROR | [x] Closing brace of class definition must be on new line
78 | ERROR | [x] Closing brace of class definition must be on new line
81 | ERROR | [x] Closing brace of class definition must be on new line
84 | ERROR | [x] Closing brace of class definition must be on new line
87 | ERROR | [x] CSS colours must be defined in lowercase; expected #ccc but found #CCC
95 | ERROR | [x] Closing brace of class definition must be on new line
96 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
97 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
97 | ERROR | [x] CSS colours must be defined in lowercase; expected #ccc but found #CCC
97 | ERROR | [x] Closing brace of class definition must be on new line
98 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 4
99 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
99 | ERROR | [x] CSS colours must be defined in lowercase; expected #fff but found #FFF
99 | ERROR | [x] Closing brace of class definition must be on new line
102 | ERROR | [x] Closing brace of class definition must be on new line
105 | ERROR | [x] Closing brace of class definition must be on new line
119 | ERROR | [x] Closing brace of class definition must be on new line
123 | ERROR | [x] Closing brace of class definition must be on new line
136 | ERROR | [x] CSS colours must be defined in lowercase; expected #fff but found #FFF
139 | ERROR | [x] Closing brace of class definition must be on new line
140 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
141 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
142 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
142 | ERROR | [x] Closing brace of class definition must be on new line
143 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
144 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
144 | ERROR | [x] Closing brace of class definition must be on new line
147 | ERROR | [x] Closing brace of class definition must be on new line
151 | ERROR | [x] CSS colours must be defined in lowercase; expected #fff but found #FFF
155 | ERROR | [x] Closing brace of class definition must be on new line
161 | ERROR | [x] CSS colours must be defined in lowercase; expected #ccc but found #CCC
164 | ERROR | [x] Closing brace of class definition must be on new line
175 | ERROR | [x] Closing brace of class definition must be on new line
176 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
177 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
177 | ERROR | [x] Closing brace of class definition must be on new line
178 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
179 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
180 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
180 | ERROR | [x] Closing brace of class definition must be on new line
181 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
182 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
183 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
184 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
185 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
186 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
187 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
188 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
189 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
190 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
191 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
192 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
192 | ERROR | [x] Closing brace of class definition must be on new line
193 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
194 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
195 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
196 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
196 | ERROR | [x] Closing brace of class definition must be on new line
197 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
198 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
199 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
200 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
200 | ERROR | [x] Closing brace of class definition must be on new line
203 | ERROR | [x] Closing brace of class definition must be on new line
204 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
205 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
205 | ERROR | [x] CSS colours must be defined in lowercase; expected #fff but found #FFF
206 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
206 | ERROR | [x] Closing brace of class definition must be on new line
207 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
208 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
209 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
209 | ERROR | [x] CSS colours must be defined in lowercase; expected #3f3f3f but found #3F3F3F
209 | ERROR | [x] Closing brace of class definition must be on new line
212 | ERROR | [x] Closing brace of class definition must be on new line
213 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
214 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
214 | ERROR | [x] CSS colours must be defined in lowercase; expected #fff but found #FFF
215 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
215 | ERROR | [x] Closing brace of class definition must be on new line
216 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
217 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
217 | ERROR | [x] CSS colours must be defined in lowercase; expected #3f3f3f but found #3F3F3F
217 | ERROR | [x] Closing brace of class definition must be on new line
221 | ERROR | [x] Closing brace of class definition must be on new line
222 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
223 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
224 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
225 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
225 | ERROR | [x] Closing brace of class definition must be on new line
226 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
227 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
227 | ERROR | [x] Closing brace of class definition must be on new line
233 | ERROR | [x] Closing brace of class definition must be on new line
234 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
235 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
236 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
237 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
238 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
239 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
240 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
241 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
242 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
242 | ERROR | [x] Closing brace of class definition must be on new line
253 | ERROR | [x] Closing brace of class definition must be on new line
257 | ERROR | [x] Closing brace of class definition must be on new line
258 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
259 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
260 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
261 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
262 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
263 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
264 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
265 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
266 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
267 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
268 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
269 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
270 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
270 | ERROR | [x] Closing brace of class definition must be on new line
271 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
272 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
272 | ERROR | [x] CSS colours must be defined in lowercase; expected #bdbdbd but found #BDBDBD
273 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
274 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
275 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
275 | ERROR | [x] Closing brace of class definition must be on new line
276 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
277 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
277 | ERROR | [x] Closing brace of class definition must be on new line
285 | ERROR | [x] Closing brace of class definition must be on new line
290 | ERROR | [x] CSS colours must be defined in lowercase; expected #f3f3f3 but found #F3F3F3
292 | ERROR | [x] Closing brace of class definition must be on new line
295 | ERROR | [x] Closing brace of class definition must be on new line
298 | ERROR | [x] Closing brace of class definition must be on new line
302 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
303 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
306 | ERROR | [x] Closing brace of class definition must be on new line
308 | ERROR | [x] Closing brace of class definition must be on new line
311 | ERROR | [x] Closing brace of class definition must be on new line
314 | ERROR | [x] Closing brace of class definition must be on new line
322 | ERROR | [x] Closing brace of class definition must be on new line
323 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
324 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
324 | ERROR | [x] Closing brace of class definition must be on new line
327 | ERROR | [x] Closing brace of class definition must be on new line
337 | ERROR | [x] Closing brace of class definition must be on new line
342 | ERROR | [x] Closing brace of class definition must be on new line
345 | ERROR | [x] Closing brace of class definition must be on new line
348 | ERROR | [x] Closing brace of class definition must be on new line
351 | ERROR | [x] Closing brace of class definition must be on new line
--------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 162 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/js/magnific-popup/jquery.magnific-popup.min.js
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
------------------------------------------------------------------------------------------------------------------------------------FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/js/magnific-popup/jquery.magnific-popup.js
--------------------------------------------------------------------------------------------------------------------------------
FOUND 10 ERRORS AFFECTING 10 LINES
--------------------------------------------------------------------------------------------------------------------------------
1106 | ERROR | String concat is not required here; use a single string instead
1107 | ERROR | String concat is not required here; use a single string instead
1108 | ERROR | String concat is not required here; use a single string instead
1109 | ERROR | String concat is not required here; use a single string instead
1110 | ERROR | String concat is not required here; use a single string instead
1113 | ERROR | String concat is not required here; use a single string instead
1114 | ERROR | String concat is not required here; use a single string instead
1115 | ERROR | String concat is not required here; use a single string instead
1116 | ERROR | String concat is not required here; use a single string instead
1544 | ERROR | String concat is not required here; use a single string instead
--------------------------------------------------------------------------------------------------------------------------------FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/js/slideout/slideout.min.js
-----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
-----------------------------------------------------------------------------------------------------------------FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/js/mt-modernizr/mt-modernizr.js
---------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
---------------------------------------------------------------------------------------------------------------------FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/js/flexslider/jquery.flexslider-min.js
----------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
----------------------------------------------------------------------------------------------------------------------------FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/js/flexslider/changelog.txt
-----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------------------------
13 | WARNING | Line exceeds 80 characters; contains 103 characters
33 | WARNING | Line exceeds 80 characters; contains 96 characters
36 | WARNING | Line exceeds 80 characters; contains 111 characters
-----------------------------------------------------------------------------------------------------------------FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/js/flexslider/jquery.flexslider.js
------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------------------------
885 | ERROR | [ ] Blank lines are not allowed after DEFAULT statements
1115 | ERROR | [x] Inline control structures are not allowed
1136 | ERROR | [x] Inline control structures are not allowed
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/js/owl-carousel/README.md
---------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 7 WARNINGS AFFECTING 7 LINES
---------------------------------------------------------------------------------------------------------------
37 | WARNING | Line exceeds 80 characters; contains 92 characters
41 | WARNING | Line exceeds 80 characters; contains 96 characters
44 | WARNING | Line exceeds 80 characters; contains 114 characters
61 | WARNING | Line exceeds 80 characters; contains 166 characters
74 | WARNING | Line exceeds 80 characters; contains 116 characters
95 | WARNING | Line exceeds 80 characters; contains 81 characters
98 | WARNING | Line exceeds 80 characters; contains 100 characters
---------------------------------------------------------------------------------------------------------------FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/js/owl-carousel/owl.carousel.min.js
-------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
-------------------------------------------------------------------------------------------------------------------------FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/theme-settings.php
--------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
--------------------------------------------------------------------------------------------------------
3 | ERROR | Missing short description in doc comment
7 | ERROR | Doc comment is empty
121 | WARNING | Avoid backslash escaping in translatable strings when possible, use "" quotes instead
--------------------------------------------------------------------------------------------------------Time: 2.55 secs; Memory: 54MB