forked from rubocop/rubocop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve inherit_from correctly without namespace (rubocop#3421)
The current implementation of `load_file` will load the hash from a config, then apply the base_configs to that hash, before converting it to a proper `Config` object. This can clobber inherited configuration since merging will happen in resolve_inheritance, but will just keep the keys from both and then when `add_missing_namespaces` is called, one will be dropped. Since `Config` inherits from `Hash`, there shouldn't be a problem with doing the `resolve_*` methods after the `config = Config.new` line since all the normal Hash methods are available (.delete specifically).
- Loading branch information
1 parent
ccb75a6
commit b95a959
Showing
3 changed files
with
47 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters