Skip to content

SONARPY-751 S5886: Fix FPs on iterators and unknown type aliases#832

Merged
guillaume-dequenne merged 3 commits intomasterfrom
SONARPY-751b
Aug 12, 2020
Merged

SONARPY-751 S5886: Fix FPs on iterators and unknown type aliases#832
guillaume-dequenne merged 3 commits intomasterfrom
SONARPY-751b

Conversation

@guillaume-dequenne
Copy link
Copy Markdown
Contributor

No description provided.

@guillaume-dequenne guillaume-dequenne force-pushed the SONARPY-751b branch 7 times, most recently from 95b7778 to c33cdda Compare August 12, 2020 07:56
@guillaume-dequenne guillaume-dequenne changed the title SONARPY-751 fix FP SONARPY-751 S5886: Fix FPs on iterators and unknown type aliases Aug 12, 2020
@guillaume-dequenne guillaume-dequenne marked this pull request as ready for review August 12, 2020 08:02
@@ -83,6 +83,9 @@ public Optional<Symbol> resolveMember(String memberName) {
@Override
public boolean canBeOrExtend(String typeName) {
if (typeName.equals("typing.Tuple") || typeName.equals("tuple")) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as discussed I think we shouldn't have this logic in the API. I think we can accept the FN on tuple for the time being and having a proper fix for return statement tree

@sonarsource-next
Copy link
Copy Markdown

Kudos, SonarQube Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

97.8% 97.8% Coverage
0.0% 0.0% Duplication

@guillaume-dequenne guillaume-dequenne merged commit a7dfecb into master Aug 12, 2020
@guillaume-dequenne guillaume-dequenne deleted the SONARPY-751b branch August 12, 2020 11:14
hashicorp-vault-sonar-prod Bot pushed a commit that referenced this pull request Feb 6, 2026
GitOrigin-RevId: bbe07e85a8130bc46393c0b41f47935c9337c100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants