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.
22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/haml_lint/runner.rb', line 22 def run( = {}) @config = load_applicable_config() @sources = extract_applicable_sources(config, ) @linter_selector = HamlLint::LinterSelector.new(config, ) @fail_fast = .fetch(:fail_fast, false) @cache = {} @autocorrect = [:autocorrect] @autocorrect_only = [:autocorrect_only] @autocorrect_stdout = [:stdin] && [:stderr] report() end |