Class: Linters::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/linters/configuration.rb

Constant Summary collapse

DEFAULT_CHECKERS =
%i[rubocop reek bundle_audit fasterer].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



8
9
10
11
12
# File 'lib/linters/configuration.rb', line 8

def initialize
  @custom_linters = {}
  @settings_path = ENV.fetch('LINTERS_SETTING_PATH', 'config/linter_settings.yml')
  @linters = ENV.fetch('LINTERS_CHECKERS', load_checkers(@settings_path))
end

Instance Attribute Details

#custom_lintersObject

:reek:Attribute



4
5
6
# File 'lib/linters/configuration.rb', line 4

def custom_linters
  @custom_linters
end

#lintersObject

:reek:Attribute



4
5
6
# File 'lib/linters/configuration.rb', line 4

def linters
  @linters
end

#settings_pathObject

:reek:Attribute



4
5
6
# File 'lib/linters/configuration.rb', line 4

def settings_path
  @settings_path
end