Class: LintTrappings::LinterConfigurationValidator

Inherits:
Object
  • Object
show all
Defined in:
lib/lint_trappings/linter_configuration_validator.rb

Overview

Validates a linter’s configuration options.

Instance Method Summary collapse

Instance Method Details

#validate(linter, config, options_specs) ⇒ Object

Verifies the configuration passed to this linter satisfies the options specifications declared in the linter class.

Parameters:



10
11
12
13
# File 'lib/lint_trappings/linter_configuration_validator.rb', line 10

def validate(linter, config, options_specs)
  insert_default_values(config, options_specs)
  check_option_types(linter, config, options_specs)
end