Class: Gry::RubocopRunner
- Inherits:
-
Object
- Object
- Gry::RubocopRunner
- Defined in:
- lib/gry/rubocop_runner.rb
Overview
Run RuboCop with specific cops and config
Instance Method Summary collapse
-
#initialize(cops, setting) ⇒ RubocopRunner
constructor
A new instance of RubocopRunner.
- #run ⇒ Object
Constructor Details
#initialize(cops, setting) ⇒ RubocopRunner
Returns a new instance of RubocopRunner.
6 7 8 9 10 11 |
# File 'lib/gry/rubocop_runner.rb', line 6 def initialize(cops, setting) @cops = cops setting_base = RubocopAdapter.config_base @setting = setting_base.merge(setting) @tmp_setting_path = nil end |