Skip to content

Commit 998ce23

Browse files
committed
Specify unset_nil: false to ConfigLoader.merge_with_default
Follow up rubocop/rubocop#7048. This PR fixes the following warning. ```console % cd path/to/rubocop-performance % bundle exec rake generate_cops_documentation Files: 54 Modules: 4 ( 2 undocumented) Classes: 55 ( 0 undocumented) Constants: 122 ( 122 undocumented) Attributes: 1 ( 0 undocumented) Methods: 117 ( 100 undocumented) 25.08% documented Warning: AllCops does not support TargetRailsVersion parameter. Supported parameters are: - RubyInterpreters - Include - Exclude - DefaultFormatter - DisplayCopNames - DisplayStyleGuide - StyleGuideBaseURL - ExtraDetails - StyleGuideCopsOnly - EnabledByDefault - DisabledByDefault - UseCache - MaxFilesInCache - CacheRootDirectory - AllowSymlinksInCacheRootDirectory - TargetRubyVersion Warning: Rails/BulkChangeTable does not support Database parameter. Supported parameters are: - Enabled - SupportedDatabases - Include * generated /Users/koic/src/github.com/rubocop-hq/rubocop-rails/manual/cops_rails.md ``` Note: Use of `unset_nil: false` option requires a release higher than RuboCop 0.69.0.
1 parent 5180fa2 commit 998ce23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rubocop/rails/inject.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def self.defaults!
1010
hash = ConfigLoader.send(:load_yaml_configuration, path)
1111
config = Config.new(hash, path)
1212
puts "configuration from #{path}" if ConfigLoader.debug?
13-
config = ConfigLoader.merge_with_default(config, path)
13+
config = ConfigLoader.merge_with_default(config, path, unset_nil: false)
1414
ConfigLoader.instance_variable_set(:@default_configuration, config)
1515
end
1616
end

0 commit comments

Comments
 (0)