Class: Linters::Configuration
- Inherits:
-
Object
- Object
- Linters::Configuration
- Defined in:
- lib/linters/configuration.rb
Constant Summary collapse
- DEFAULT_CHECKERS =
%i[rubocop reek bundle_audit fasterer].freeze
Instance Attribute Summary collapse
-
#custom_linters ⇒ Object
:reek:Attribute.
-
#linters ⇒ Object
:reek:Attribute.
-
#settings_path ⇒ Object
:reek:Attribute.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_linters ⇒ Object
:reek:Attribute
4 5 6 |
# File 'lib/linters/configuration.rb', line 4 def custom_linters @custom_linters end |
#linters ⇒ Object
:reek:Attribute
4 5 6 |
# File 'lib/linters/configuration.rb', line 4 def linters @linters end |
#settings_path ⇒ Object
:reek:Attribute
4 5 6 |
# File 'lib/linters/configuration.rb', line 4 def settings_path @settings_path end |