forked from sds/scss-lint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scss_lint.rb
33 lines (30 loc) · 1.1 KB
/
scss_lint.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
require 'scss_lint/constants'
require 'scss_lint/exceptions'
require 'scss_lint/config'
require 'scss_lint/engine'
require 'scss_lint/location'
require 'scss_lint/lint'
require 'scss_lint/linter_registry'
require 'scss_lint/logger'
require 'scss_lint/file_finder'
require 'scss_lint/runner'
require 'scss_lint/selector_visitor'
require 'scss_lint/control_comment_processor'
require 'scss_lint/version'
require 'scss_lint/utils'
require 'scss_lint/plugins'
# Load Sass classes and then monkey patch them
require 'sass'
require File.expand_path('scss_lint/sass/script', File.dirname(__FILE__))
require File.expand_path('scss_lint/sass/tree', File.dirname(__FILE__))
# Load all linters in sorted order, since ordering matters and some systems
# return the files in an order which loads a child class before the parent.
require 'scss_lint/linter'
Dir[File.expand_path('scss_lint/linter/**/*.rb', File.dirname(__FILE__))].sort.each do |file|
require file
end
# Load all reporters
require 'scss_lint/reporter'
Dir[File.expand_path('scss_lint/reporter/**/*.rb', File.dirname(__FILE__))].sort.each do |file|
require file
end