Created
May 14, 2015 12:00
-
-
Save jbgutierrez/6c0a0590e32983e3d6f1 to your computer and use it in GitHub Desktop.
Linting scss files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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