-
Notifications
You must be signed in to change notification settings - Fork 93
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
SONARPY-2345 Document new S1172 FN when super class is ambiguous #2164
Conversation
2a878a0
to
a53a73b
Compare
a53a73b
to
4094846
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.
Looks good!
As mentioned in the comment, the root cause of the problem already has a dedicated ticket, so I'm not entirely sure of the value of this new one.
|
||
class ChildFromDuplicated(ParentWithDuplicatedParent): | ||
|
||
def do_something(self, a): # FN SONARPY-2347 ChildFromDuplicated has an unresolved type hierarchy, because of the duplicated parent classes |
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 think this is a consequence of SONARPY-1829: DuplicatedParent
, being a class, is not propagated like other types. In unusedFunctionParameterImported.py
, the hierarchy of ParentWithDuplicatedParent
should be clearly defined, as the second definition of DuplicatedParent
always overrides the first one.
I'm not sure we need SONARPY-2347 as a result. Now that it's here, we can probably mark it as blocked by SONARPY-1829 though (or just add the example in SONARPY-1829 and archive SONARPY-2347 as duplicate).
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.
Alright! I canceled the SONARPY-2347 and changed the reference in the unit test to SONARPY-1829. Thanks for noticing it!
Quality Gate passedIssues Measures |
SONARPY-2345
Part of