-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[unconventional-import-alias
] Fix infinite loop between ICN001 and I002 (ICN001
)
#15480
Conversation
|
Can you tell me about what you tried to do in the configuration and why it didn't work? |
Well, I didn't really try anything exactly. I looked at #14477 that @AlexWaygood sent me as a similar fix, and then I spent some time looking through how configurations are constructed. But #14477 looked like validation on a single configuration field that could be handled during deserialization, while this issue looks to me like it requires validation between two configuration fields ( Then I found |
There are a few places where we verify configurations but they all have their trade-offs:
In your case, |
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.
Lgtm
Would you mind updating the PR summary to reflect that this is now implemented in the settings
I updated the PR summary and expanded the error message. Is the new message along the lines of what you had in mind? |
Looks good, thanks |
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!
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Summary
This fixes the infinite loop reported in #14389 by raising an error to the user about conflicting ICN001 (
unconventional-import-alias
) and I002 (missing-required-import
) configuration options.Test Plan
Added a CLI integration test reproducing the old behavior and then confirming the fix.
Closes #14389