New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow inherit_from to accept a glob #11261
Allow inherit_from to accept a glob #11261
Conversation
4e65f7c
to
9443318
Compare
I'm wondering if in some cases the order in which the extra files get required won't be an issue. Any thoughts on this? |
@@ -114,6 +114,13 @@ inherit_from: | |||
- ../conf/.rubocop.yml | |||
---- | |||
|
|||
`inherit_from` also accepts a glob, for example: | |||
[source,yaml] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd add an extra blank here.
@@ -114,6 +114,13 @@ inherit_from: | |||
- ../conf/.rubocop.yml | |||
---- | |||
|
|||
`inherit_from` also accepts a glob, for example: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might also want to say a few words about potential use-cases here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some more text about using this to manage per-component .rubocop_todo.yml
files. I'm not actually sure about other use cases since that use-case was the main motivator here 🤔 Let me know what ya think!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
bdc4f58
to
e57f3e5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice feature! Looks good. 👍
@alexevanczuk The CI's failing because a few lines are now too long. |
@bbatsov Thanks! Fixed. I'm having trouble seeing the results from CI. When I click the ❌ next to
Let me know if there's something I should be doing differently! |
Here's what we got from the CircleCI support team.
|
This reverts commit e5bafbe.
Thanks @bbatsov . I reauthorized on circle CI and made some good progress. Now I'm just seeing...
|
Seems we're in business now. Thanks! |
This PR allows
inherit_from
to accept a glob.Before submitting the PR make sure the following are checked:
[Fix #issue-number]
(if the related issue exists).master
(if not - rebase it).bundle exec rake default
. It executes all tests and runs RuboCop on its own code.{change_type}_{change_description}.md
if the new code introduces user-observable changes. See changelog entry format for details.Benchmarking
I ran benchmarks on
rails
to determine if this change causes a performance regression.10x
bundle exec rubocop --show-cop=Style/EmptyMethod
This reflects the basic startup time of Rubocop to process configurations and resolve inheritance.
Before
After
Conclusion
No change.
10x
bundle exec rubocop
This reflects overall rubocop execution time.
Before
After
Conclusion
No change.