-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
inherit_mode Documentation Improvements #5640
Comments
I'm not sure what that would look like though. Changing
|
@jfelchner Yes I know. 😄 I'll try to come up with something ASAP. |
The I think that the least intrusive solution would be to make it work (almost) like @jfelchner expected and let Lint/HandleExceptions:
inherit_mode:
override:
- Enabled inhibit the warning. The user has shown with this configuration that the override is intentional. This is a deviation from @leklund's original idea with I also think that the warning message should direct the user to the relevant passage in the manual. If the above solution doesn't hold water, I could just change the warning logic so that the message only appears if the |
@jonas054 I personally like the The reason for that is because I think it's logical that most people would assume if you inherit a file that sets something, then you inherit another file that sets the same thing, that the second file's value will override the first file's value. If we go with the
I think if people are having issues, and they pull out the I think the other benefit to |
I agree and think |
Overriding a parameter within user configuration with another setting -- also in user configuration -- may be a legitimate use case. So we only print the message about overriding if the --debug option is given. The message will be on stdout now like the other debug messages.
I'm having some major issues with the new
inherit_mode
. Specifically around superfluous warning messages being shown that I don't care about and don't know how to get rid of. The fact that messages are being written to the output which is not consistent with other warning or errors is also breaking build tooling which parse those messages to determine if they're warnings or errors.What I currently have:
What I see in my output:
I've tried changing
.rubocop.yml
to add:I've tried both
override
andmerge
and neither of them fix the issue.RuboCop version
/cc @leklund
The text was updated successfully, but these errors were encountered: