lib/scss_lint/config.rb in scss-lint-0.35.0 vs lib/scss_lint/config.rb in scss-lint-0.36.0
- old
+ new
@@ -206,9 +206,13 @@
@options.fetch('exclude', []).any? do |exclusion_glob|
File.fnmatch(exclusion_glob, abs_path)
end
end
+ def exclude_patterns
+ @options.fetch('exclude', [])
+ end
+
def excluded_file_for_linter?(file_path, linter)
abs_path = File.expand_path(file_path)
linter_options(linter).fetch('exclude', []).any? do |exclusion_glob|
File.fnmatch(exclusion_glob, abs_path)