lib/scss_lint/runner.rb in scss-lint-0.35.0 vs lib/scss_lint/runner.rb in scss-lint-0.36.0
- old
+ new
@@ -1,8 +1,6 @@
module SCSSLint
- class NoFilesError < StandardError; end
-
# Finds and aggregates all lints found by running the registered linters
# against a set of SCSS files.
class Runner
attr_reader :lints
@@ -13,11 +11,9 @@
@linters = LinterRegistry.linters.map(&:new)
end
# @param files [Array]
def run(files)
- raise NoFilesError, 'No SCSS files specified' if files.empty?
-
files.each do |file|
find_lints(file)
end
@linters.each do |linter|