Class: HamlLint::Runner
- Inherits:
-
Object
- Object
- HamlLint::Runner
- Defined in:
- lib/haml_lint/runner.rb
Overview
Responsible for running the applicable linters against the desired files.
Instance Method Summary collapse
-
#run(options = {}) ⇒ HamlLint::Report
Runs the appropriate linters against the desired files given the specified options.
Instance Method Details
#run(options = {}) ⇒ HamlLint::Report
Runs the appropriate linters against the desired files given the specified options.
21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/haml_lint/runner.rb', line 21 def run( = {}) @config = load_applicable_config() @files = extract_applicable_files(config, ) @linter_selector = HamlLint::LinterSelector.new(config, ) @fail_fast = .fetch(:fail_fast, false) @cache = {} @autocorrect = [:autocorrect] @autocorrect_only = [:autocorrect_only] report() end |