Skip to content
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

Refactor: Extract common method to check if any ancestor belongs to SyntaxKind #9202

Merged
merged 8 commits into from May 2, 2024

Conversation

mary-georgiou-sonarsource
Copy link
Contributor

No description provided.

Copy link

sonarcloud bot commented Apr 24, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link
Contributor

Choose a reason for hiding this comment

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

LGTM

@github-actions github-actions bot moved this from Review in progress to Review approved in Best Kanban Apr 25, 2024
@github-actions github-actions bot moved this from Review approved to Review in progress in Best Kanban Apr 25, 2024
Copy link
Contributor

@pavel-mikula-sonarsource pavel-mikula-sonarsource left a comment

Choose a reason for hiding this comment

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

Some cleanup

@github-actions github-actions bot moved this from Review in progress to In progress in Best Kanban May 1, 2024
@mary-georgiou-sonarsource
Copy link
Contributor Author

@pavel-mikula-sonarsource there are two more codesmells regarding the Helper suffix for the syntaxHelpers.
I did not change it now as I'm not sure it's a good time to cause confusion to anyone working with the analyzer.

Copy link

sonarcloud bot commented May 2, 2024

Quality Gate Passed Quality Gate passed for 'Sonar .NET Java Plugin'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link

sonarcloud bot commented May 2, 2024

Quality Gate Failed Quality Gate failed for 'SonarAnalyzer for .NET'

Failed conditions
87.0% Coverage on New Code (required ≥ 95%)

See analysis details on SonarCloud

Copy link
Contributor

@pavel-mikula-sonarsource pavel-mikula-sonarsource left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -85,7 +85,7 @@ public override void Visit(SyntaxNode node)
public override void VisitIdentifierName(IdentifierNameSyntax node) =>
DereferencesMethodArguments |=
argumentNames.Contains(node.GetName())
&& node.HasAncestorOfKind(AwaitExpression,
&& node.HasAncestor(AwaitExpression,
Copy link
Contributor

Choose a reason for hiding this comment

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

T0028

Suggested change
&& node.HasAncestor(AwaitExpression,
&& node.HasAncestor(
AwaitExpression,

Copy link
Contributor

Choose a reason for hiding this comment

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

You can fix this in your next PR, I'll merge this one now as I need to nuke the whole helper file

@github-actions github-actions bot moved this from Review in progress to Review approved in Best Kanban May 2, 2024
@pavel-mikula-sonarsource pavel-mikula-sonarsource merged commit c298484 into master May 2, 2024
30 of 31 checks passed
Best Kanban automation moved this from Review approved to Validate Peach May 2, 2024
@pavel-mikula-sonarsource pavel-mikula-sonarsource deleted the mary/extract-ancenstors-methdo branch May 2, 2024 11:07
@mary-georgiou-sonarsource mary-georgiou-sonarsource restored the mary/extract-ancenstors-methdo branch May 2, 2024 15:01
@mary-georgiou-sonarsource mary-georgiou-sonarsource deleted the mary/extract-ancenstors-methdo branch May 2, 2024 15:19
@mary-georgiou-sonarsource mary-georgiou-sonarsource moved this from Validate Peach to Done in Best Kanban May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Improvement Making existing code better.
Projects
Best Kanban
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants