lib/scss_lint/linter_registry.rb in scss-lint-0.13.0 vs lib/scss_lint/linter_registry.rb in scss-lint-0.14.0

- old
+ new

@@ -1,8 +1,9 @@ module SCSSLint class NoSuchLinter < StandardError; end + # Stores all linters available to the application. module LinterRegistry @linters = [] class << self attr_reader :linters @@ -14,10 +15,10 @@ def extract_linters_from(linter_names) linter_names.map do |linter_name| begin Linter.const_get(linter_name) rescue NameError - raise NoSuchLinter.new("Linter #{linter_name} does not exist") + raise NoSuchLinter, "Linter #{linter_name} does not exist" end end end end end