Class: Avm::EacRubyBase1::Sources::Update::Changes::RubocopFormat
- Inherits:
-
Sources::Change
- Object
- Sources::Change
- Avm::EacRubyBase1::Sources::Update::Changes::RubocopFormat
- Defined in:
- lib/avm/eac_ruby_base1/sources/update/changes/rubocop_format.rb
Instance Method Summary collapse
Instance Method Details
#autofix ⇒ Boolean
18 19 20 |
# File 'lib/avm/eac_ruby_base1/sources/update/changes/rubocop_format.rb', line 18 def autofix source.rubocop_root_command.autocorrect(true).system end |
#disable_offenses ⇒ void
This method returns an undefined value.
23 24 25 |
# File 'lib/avm/eac_ruby_base1/sources/update/changes/rubocop_format.rb', line 23 def disable_offenses source.rubocop_offenses.disable_all end |
#perform ⇒ void
This method returns an undefined value.
10 11 12 13 14 15 |
# File 'lib/avm/eac_ruby_base1/sources/update/changes/rubocop_format.rb', line 10 def perform return if autofix disable_offenses autofix end |