Comply with Drupal coding standards (5) (Stylelint)

Created on 9 September 2023, over 1 year ago
Updated 23 October 2023, over 1 year ago

Problem/Motivation

Fix the following coding standard errors reported by https://git.drupalcode.org/project/bootstrap_cloud/-/jobs/79689

$ yarn --silent --cwd $_WEB_ROOT/core stylelint --formatter verbose --config ./.stylelintrc.json ../modules/custom/**/*.css --color || true
../modules/custom/bootstrap_cloud/css/blue-theme.css
   8:3   ✖  Expected "text-decoration" to come before "color"             order/properties-order
  23:16  ✖  Expected "1.42857143" to be "1.42857"                         number-max-precision
  24:3   ✖  Expected "border-top" to come before "line-height"            order/properties-order
  
... (snip) ...

 628:3   ✖  Expected "border-color" to come before "background-color"  order/properties-order
 634:3   ✖  Expected "border-color" to come before "background-color"  order/properties-order
../modules/custom/bootstrap_cloud/css/style.css
   1:26  ✖  Expected "url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css")" to be ""https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css""  import-notation
   2:39  ✖  Expected quotes around "HiraMaruPro-W4"                                                                                                                                              font-family-name-quotes

... (snip) ...

 638:10  ✖  Expected "#bbbbbb" to be "#bbb"                            color-hex-length
 640:3   ✖  Expected "border-color" to come before "background-color"  order/properties-order
../modules/custom/bootstrap_cloud/css/views.css
 4:3  ✖  Expected "border" to come before "font-size"  order/properties-order
../modules/custom/bootstrap_cloud/css/glyphicons/css/glyphicons.css
  10:16  ✖  Unexpected missing generic font family              font-family-no-missing-generic-family-keyword
  12:3   ✖  Expected "font-weight" to come before "font-style"  order/properties-order
  17:20  ✖  Expected double colon pseudo-element notation       selector-pseudo-element-colon-notation
  
... (snip) ....

 795:22  ✖  Expected double colon pseudo-element notation       selector-pseudo-element-colon-notation
 798:21  ✖  Expected double colon pseudo-element notation       selector-pseudo-element-colon-notation
 801:19  ✖  Expected double colon pseudo-element notation       selector-pseudo-element-colon-notation
1081 problems (1081 errors, 0 warnings)
16 sources checked
 /builds/project/bootstrap_cloud/web/modules/custom/bootstrap_cloud/css/blue-theme.css
 /builds/project/bootstrap_cloud/web/modules/custom/bootstrap_cloud/css/cloud.css
 /builds/project/bootstrap_cloud/web/modules/custom/bootstrap_cloud/css/dark-theme.css
 /builds/project/bootstrap_cloud/web/modules/custom/bootstrap_cloud/css/fonts.css
 /builds/project/bootstrap_cloud/web/modules/custom/bootstrap_cloud/css/form.css
 /builds/project/bootstrap_cloud/web/modules/custom/bootstrap_cloud/css/media.css
 /builds/project/bootstrap_cloud/web/modules/custom/bootstrap_cloud/css/modal.css
 /builds/project/bootstrap_cloud/web/modules/custom/bootstrap_cloud/css/nav.css
 /builds/project/bootstrap_cloud/web/modules/custom/bootstrap_cloud/css/oceanic-theme.css
 /builds/project/bootstrap_cloud/web/modules/custom/bootstrap_cloud/css/red-theme.css
 /builds/project/bootstrap_cloud/web/modules/custom/bootstrap_cloud/css/storm-theme.css
 /builds/project/bootstrap_cloud/web/modules/custom/bootstrap_cloud/css/style.css
 /builds/project/bootstrap_cloud/web/modules/custom/bootstrap_cloud/css/table.css
 /builds/project/bootstrap_cloud/web/modules/custom/bootstrap_cloud/css/typhoon-theme.css
 /builds/project/bootstrap_cloud/web/modules/custom/bootstrap_cloud/css/views.css
 /builds/project/bootstrap_cloud/web/modules/custom/bootstrap_cloud/css/glyphicons/css/glyphicons.css
1081 errors found
 order/properties-order: 640
 number-max-precision: 19
 order/order: 12
 custom-property-empty-line-before: 12 (maybe fixable)
 selector-pseudo-element-colon-notation: 323 (maybe fixable)
 color-hex-length: 36 (maybe fixable)
 comment-whitespace-inside: 8 (maybe fixable)
 color-function-notation: 7 (maybe fixable)
 alpha-value-notation: 7 (maybe fixable)
 font-family-no-missing-generic-family-keyword: 3
 declaration-empty-line-before: 7 (maybe fixable)
 length-zero-no-unit: 5 (maybe fixable)
 import-notation: 1 (maybe fixable)
 font-family-name-quotes: 1 (maybe fixable)
You may fix some problems with the "--fix" option.
📌 Task
Status

Fixed

Version

6.0

Component

Code

Created by

🇺🇸United States yas California 🇺🇸

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024