class SCSSLint::Reporter::ConfigReporter
Returns a YAML configuration where all linters are disabled which caused a lint.
Public Instance Methods
report_lints()
click to toggle source
# File lib/scss_lint/reporter/config_reporter.rb, line 5 def report_lints { 'linters' => disabled_linters }.to_yaml unless lints.empty? end
Private Instance Methods
disabled_linters()
click to toggle source
# File lib/scss_lint/reporter/config_reporter.rb, line 11 def disabled_linters linters.each_with_object({}) do |linter, m| m[linter] = { 'enabled' => false } end end
linter_name(linter)
click to toggle source
# File lib/scss_lint/reporter/config_reporter.rb, line 21 def linter_name(linter) linter.class.to_s.split('::').last end
linters()
click to toggle source
# File lib/scss_lint/reporter/config_reporter.rb, line 17 def linters lints.map { |lint| linter_name(lint.linter) }.compact.uniq.sort end