lib/haml_lint/runner.rb
# Runs the appropriate linters against the desired files given the specified
# options.
#
# @param options [Hash]
# @raise [HamlLint::Exceptions::NoLintersError] when no linters are enabled
# @return [HamlLint::Report] a summary of all lints found
Runs the appropriate linters against the desired files given the specified
options.
Runs the appropriate linters against the desired files given the specified options .
def find_lints(file, linters, config)
      parser = Parser.new(file, config.hash)
      linters.each do |linter|
        linter.run(parser)
      end
    rescue Haml::Error => ex
      @lints << Lint.new(nil, file, ex.line, ex.to_s, :error)
    end
def find_lints ( file , linters , config ) parser = Parser . new ( file , config . hash ) linters . each do | linter | linter . run ( parser ) end rescue Haml :: Error => ex @lints << Lint . new ( nil , file , ex . line , ex . to_s , :error ) end
Runs the appropriate linters against the desired files given the specified
options.
Runs the appropriate linters against the desired files given the specified options .
a summary of all lints found
a summary of all lints found
HamlLint::Report
[HamlLint::Exceptions::NoLintersError] when no linters are enabled
[ HamlLint :: Exceptions :: NoLintersError ] when no linters are enabled
file
linters
config
None