Skip to content

Commit

Permalink
Remove unused @auto_gen_config from ConfigLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez authored and bbatsov committed Jun 24, 2020
1 parent 15bcad7 commit aa0b566
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion lib/rubocop/cli.rb
Expand Up @@ -101,7 +101,6 @@ def act_on_options

def set_options_to_config_loader
ConfigLoader.debug = @options[:debug]
ConfigLoader.auto_gen_config = @options[:auto_gen_config]
ConfigLoader.disable_pending_cops = @options[:disable_pending_cops]
ConfigLoader.enable_pending_cops = @options[:enable_pending_cops]
ConfigLoader.ignore_parent_exclusion = @options[:ignore_parent_exclusion]
Expand Down
5 changes: 2 additions & 3 deletions lib/rubocop/config_loader.rb
Expand Up @@ -22,16 +22,15 @@ class ConfigLoader
class << self
include FileFinder

attr_accessor :debug, :auto_gen_config, :ignore_parent_exclusion,
attr_accessor :debug, :ignore_parent_exclusion,
:disable_pending_cops, :enable_pending_cops
attr_writer :default_configuration

alias debug? debug
alias auto_gen_config? auto_gen_config
alias ignore_parent_exclusion? ignore_parent_exclusion

def clear_options
@debug = @auto_gen_config = nil
@debug = nil
FileFinder.root_level = nil
end

Expand Down

0 comments on commit aa0b566

Please sign in to comment.