Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix resolving
inherit_gem
in remote configs
When a file inherits from a url inheriting from a gem, like so: ```yaml # .rubocop.yml inherit_from: http://example.com/default.yml ``` ```yaml # http://example.com/default.yml inherit_gem: somegem: default.yml ``` ```yaml # somegem's default.yml Layout/LineLength: Max: 48 ``` Rubocop would then incorrectly try to resolve a URL like this: `http://example.com//private/var/folders/69/bjrqv8v1225f7yqnxknm3fb80000gn/T/d20200518-94245-6dqeew/work/gems/somegem/default.yml` With this change, local gem paths are no longer taken by mistake for relative remote paths.
- Loading branch information
Showing
3 changed files
with
42 additions
and
1 deletion.
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