Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix #10026] Fix inherit_mode resolution for parent and default config
The problem was that we deleted the `inherit_mode` entry in the configuration hash while processing the resolution of inheritance from base configurations (`inherit_from`, etc.). When the merging of default configuration and user configuration was done at a later stage, the `inherit_mode` parameter was gone. By not deleting `inherit_mode`, we fix the problem. I don't think it has any unwanted side effects, but `inherit_mode` does show up in the output from `--show-cops` now. This should be OK.
- Loading branch information
Showing
4 changed files
with
93 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* [#10026](https://github.com/rubocop/rubocop/issues/10026): Fix merging of array parameters in either parent of default config. ([@jonas054][]) |
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