Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Linting scss files
#!/usr/bin/env ruby
# coding: UTF-8
require 'deadweight'
dw = Deadweight.new
dw.stylesheets = ["public/css/application.css"]
ignore_selectors = %w[.icon.* #modal-itx]
dw.ignore_selectors = Regexp.compile "(#{ignore_selectors.join('|')})"
dw.root = File.dirname(__FILE__) + '/'
dw.pages = Dir['views/**/*.dust']
puts dw.run
scss_files: 'public/sass/'
linters:
ImportantRule: # 2
enabled: false
Syntax: # 2
enabled: false
UnnecessaryParentReference: # 4
enabled: false
EmptyRule: # 5
enabled: false
HexNotation: # 5
enabled: false
SpaceAfterComma: # 5
enabled: false
BorderZero: # 6
enabled: false
DuplicateProperty: # 6
enabled: false
DeclarationOrder: # 7
enabled: false
HexLength: # 7
enabled: false
LeadingZero: # 9
enabled: false
FinalNewline: # 10
enabled: false
Shorthand: # 10
enabled: false
PropertySpelling: # 11
enabled: false
StringQuotes: # 16
enabled: false
Comment: # 20
enabled: false
SingleLinePerSelector: # 21
enabled: false
ImportPath: # 24
enabled: false
NameFormat: # 24
enabled: false
ColorKeyword: # 25
enabled: false
SelectorFormat: # 25
allow_leading_underscore: false
convention: ^[a-zA-Z0-9-]+$
VendorPrefix: # 33
enabled: false
TrailingSemicolon: # 51
enabled: false
ZeroUnit: # 52
enabled: false
QualifyingElement: # 53
enabled: false
UrlQuotes: # 57
enabled: false
MergeableSelector: # 82
enabled: false
NestingDepth: # 95
enabled: false
SelectorDepth: # 102
enabled: false
IdSelector: # 132
enabled: false
ColorVariable: # 208
enabled: false
SpaceBeforeBrace: # 252
enabled: false
PropertySortOrder: # 343
enabled: false
SpaceAfterPropertyColon: # 405
enabled: false
EmptyLineBetweenBlocks: # 467
enabled: false
Indentation: # 595
enabled: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.