lib/scss_lint/config.rb in scss_lint-0.38.0 vs lib/scss_lint/config.rb in scss_lint-0.39.0
- old
+ new
@@ -23,9 +23,17 @@
end
Config.new(config_options)
end
+ # Returns the location of the user-wide scss-lint configuration.
+ #
+ # This needs to be a method instead of a constant so that we can change
+ # the user's home directory in tests.
+ def user_file
+ File.join(Dir.home, FILE_NAME)
+ end
+
def linter_name(linter)
linter = linter.is_a?(Class) ? linter : linter.class
linter.name.split('::')[2..-1].join('::')
end