Selectors should be on a single line in the CSS file

Created on 7 January 2025, 3 months ago

Problem/Motivation

It would be great to address the below minor PHPCS issues :

phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml gin_toolbar_custom_menu/

FILE: /var/www/web/modules/contrib/gin_toolbar_custom_menu/gin_toolbar_custom_menu.info.yml
-------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------
 1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically
 1 | WARNING | Remove "datestamp" from the info file, it will be added by drupal.org packaging automatically
 1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically
-------------------------------------------------------------------------------------------------------------


FILE: /var/www/web/modules/contrib/gin_toolbar_custom_menu/css/toolbar.css
--------------------------------------------------------------------------
FOUND 264 ERRORS AFFECTING 198 LINES
--------------------------------------------------------------------------
   5 | ERROR | [x] Selectors must be on a single line
   6 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
   6 | ERROR | [x] Selectors must be on a single line
   7 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  11 | ERROR | [x] Selectors must be on a single line
  12 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  12 | ERROR | [x] Selectors must be on a single line
  13 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  17 | ERROR | [x] Selectors must be on a single line
  18 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  18 | ERROR | [x] Selectors must be on a single line
  19 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  23 | ERROR | [x] Selectors must be on a single line
  24 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  24 | ERROR | [x] Selectors must be on a single line
  25 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  29 | ERROR | [x] Selectors must be on a single line
  30 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  30 | ERROR | [x] Selectors must be on a single line
  31 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  35 | ERROR | [x] Selectors must be on a single line
  36 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  36 | ERROR | [x] Selectors must be on a single line
  37 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  41 | ERROR | [x] Selectors must be on a single line
  42 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  42 | ERROR | [x] Selectors must be on a single line
  43 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  47 | ERROR | [x] Selectors must be on a single line
  48 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  48 | ERROR | [x] Selectors must be on a single line
  49 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  53 | ERROR | [x] Selectors must be on a single line
  54 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  54 | ERROR | [x] Selectors must be on a single line
  55 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  59 | ERROR | [x] Selectors must be on a single line
  60 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  60 | ERROR | [x] Selectors must be on a single line
  61 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  65 | ERROR | [x] Selectors must be on a single line
  66 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  66 | ERROR | [x] Selectors must be on a single line
  67 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  71 | ERROR | [x] Selectors must be on a single line
  72 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  72 | ERROR | [x] Selectors must be on a single line
  73 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  77 | ERROR | [x] Selectors must be on a single line
  78 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  78 | ERROR | [x] Selectors must be on a single line
  79 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  83 | ERROR | [x] Selectors must be on a single line
  84 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  84 | ERROR | [x] Selectors must be on a single line
  85 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  89 | ERROR | [x] Selectors must be on a single line
  90 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  90 | ERROR | [x] Selectors must be on a single line
  91 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  95 | ERROR | [x] Selectors must be on a single line
  96 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
  96 | ERROR | [x] Selectors must be on a single line
  97 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 101 | ERROR | [x] Selectors must be on a single line
 102 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 102 | ERROR | [x] Selectors must be on a single line
 103 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 107 | ERROR | [x] Selectors must be on a single line
 108 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 108 | ERROR | [x] Selectors must be on a single line
 109 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 113 | ERROR | [x] Selectors must be on a single line
 114 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 114 | ERROR | [x] Selectors must be on a single line
 115 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 119 | ERROR | [x] Selectors must be on a single line
 120 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 120 | ERROR | [x] Selectors must be on a single line
 121 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 125 | ERROR | [x] Selectors must be on a single line
 126 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 126 | ERROR | [x] Selectors must be on a single line
 127 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 131 | ERROR | [x] Selectors must be on a single line
 132 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 132 | ERROR | [x] Selectors must be on a single line
 133 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 137 | ERROR | [x] Selectors must be on a single line
 138 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 138 | ERROR | [x] Selectors must be on a single line
 139 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 143 | ERROR | [x] Selectors must be on a single line
 144 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 144 | ERROR | [x] Selectors must be on a single line
 145 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 149 | ERROR | [x] Selectors must be on a single line
 150 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 150 | ERROR | [x] Selectors must be on a single line
 151 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 155 | ERROR | [x] Selectors must be on a single line
 156 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 156 | ERROR | [x] Selectors must be on a single line
 157 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 161 | ERROR | [x] Selectors must be on a single line
 162 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 162 | ERROR | [x] Selectors must be on a single line
 163 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 167 | ERROR | [x] Selectors must be on a single line
 168 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 168 | ERROR | [x] Selectors must be on a single line
 169 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 173 | ERROR | [x] Selectors must be on a single line
 174 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 174 | ERROR | [x] Selectors must be on a single line
 175 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 179 | ERROR | [x] Selectors must be on a single line
 180 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 180 | ERROR | [x] Selectors must be on a single line
 181 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 185 | ERROR | [x] Selectors must be on a single line
 186 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 186 | ERROR | [x] Selectors must be on a single line
 187 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 191 | ERROR | [x] Selectors must be on a single line
 192 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 192 | ERROR | [x] Selectors must be on a single line
 193 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 197 | ERROR | [x] Selectors must be on a single line
 198 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 198 | ERROR | [x] Selectors must be on a single line
 199 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 203 | ERROR | [x] Selectors must be on a single line
 204 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 204 | ERROR | [x] Selectors must be on a single line
 205 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 209 | ERROR | [x] Selectors must be on a single line
 210 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 210 | ERROR | [x] Selectors must be on a single line
 211 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 215 | ERROR | [x] Selectors must be on a single line
 216 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 216 | ERROR | [x] Selectors must be on a single line
 217 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 221 | ERROR | [x] Selectors must be on a single line
 222 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 222 | ERROR | [x] Selectors must be on a single line
 223 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 227 | ERROR | [x] Selectors must be on a single line
 228 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 228 | ERROR | [x] Selectors must be on a single line
 229 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 233 | ERROR | [x] Selectors must be on a single line
 234 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 234 | ERROR | [x] Selectors must be on a single line
 235 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 239 | ERROR | [x] Selectors must be on a single line
 240 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 240 | ERROR | [x] Selectors must be on a single line
 241 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 245 | ERROR | [x] Selectors must be on a single line
 246 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 246 | ERROR | [x] Selectors must be on a single line
 247 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 251 | ERROR | [x] Selectors must be on a single line
 252 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 252 | ERROR | [x] Selectors must be on a single line
 253 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 257 | ERROR | [x] Selectors must be on a single line
 258 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 258 | ERROR | [x] Selectors must be on a single line
 259 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 263 | ERROR | [x] Selectors must be on a single line
 264 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 264 | ERROR | [x] Selectors must be on a single line
 265 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 269 | ERROR | [x] Selectors must be on a single line
 270 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 270 | ERROR | [x] Selectors must be on a single line
 271 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 275 | ERROR | [x] Selectors must be on a single line
 276 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 276 | ERROR | [x] Selectors must be on a single line
 277 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 281 | ERROR | [x] Selectors must be on a single line
 282 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 282 | ERROR | [x] Selectors must be on a single line
 283 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 287 | ERROR | [x] Selectors must be on a single line
 288 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 288 | ERROR | [x] Selectors must be on a single line
 289 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 293 | ERROR | [x] Selectors must be on a single line
 294 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 294 | ERROR | [x] Selectors must be on a single line
 295 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 299 | ERROR | [x] Selectors must be on a single line
 300 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 300 | ERROR | [x] Selectors must be on a single line
 301 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 305 | ERROR | [x] Selectors must be on a single line
 306 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 306 | ERROR | [x] Selectors must be on a single line
 307 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 311 | ERROR | [x] Selectors must be on a single line
 312 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 312 | ERROR | [x] Selectors must be on a single line
 313 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 317 | ERROR | [x] Selectors must be on a single line
 318 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 318 | ERROR | [x] Selectors must be on a single line
 319 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 323 | ERROR | [x] Selectors must be on a single line
 324 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 324 | ERROR | [x] Selectors must be on a single line
 325 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 329 | ERROR | [x] Selectors must be on a single line
 330 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 330 | ERROR | [x] Selectors must be on a single line
 331 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 335 | ERROR | [x] Selectors must be on a single line
 336 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 336 | ERROR | [x] Selectors must be on a single line
 337 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 341 | ERROR | [x] Selectors must be on a single line
 342 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 342 | ERROR | [x] Selectors must be on a single line
 343 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 347 | ERROR | [x] Selectors must be on a single line
 348 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 348 | ERROR | [x] Selectors must be on a single line
 349 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 353 | ERROR | [x] Selectors must be on a single line
 354 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 354 | ERROR | [x] Selectors must be on a single line
 355 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 359 | ERROR | [x] Selectors must be on a single line
 360 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 360 | ERROR | [x] Selectors must be on a single line
 361 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 365 | ERROR | [x] Selectors must be on a single line
 366 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 366 | ERROR | [x] Selectors must be on a single line
 367 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 371 | ERROR | [x] Selectors must be on a single line
 372 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 372 | ERROR | [x] Selectors must be on a single line
 373 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 377 | ERROR | [x] Selectors must be on a single line
 378 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 378 | ERROR | [x] Selectors must be on a single line
 379 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 383 | ERROR | [x] Selectors must be on a single line
 384 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 384 | ERROR | [x] Selectors must be on a single line
 385 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 389 | ERROR | [x] Selectors must be on a single line
 390 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 390 | ERROR | [x] Selectors must be on a single line
 391 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 395 | ERROR | [x] Selectors must be on a single line
 396 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
 396 | ERROR | [x] Selectors must be on a single line
 397 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 264 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

Time: 353ms; Memory: 14MB

Steps to reproduce

Run the command,
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml gin_toolbar_custom_menu/

Proposed resolution

Fix the PHPCS issues, as selectors must be on a single line.

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇮🇳India abhiyanshu

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024