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

Improve S2302 Message: Use NameOf for VB.NET #7199

Merged
merged 2 commits into from
May 11, 2023

Conversation

cristian-ambrosini-sonarsource
Copy link
Contributor

Fixes #7197

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

@@ -33,6 +33,8 @@ public sealed class NameOfShouldBeUsed : NameOfShouldBeUsedBase<BaseMethodDeclar

protected override ILanguageFacade<SyntaxKind> Language => CSharpFacade.Instance;

protected override string NameOf => "nameof";
Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't need an empty line before

@@ -31,6 +31,8 @@ public sealed class NameOfShouldBeUsed : NameOfShouldBeUsedBase<MethodBlockBaseS

protected override ILanguageFacade<SyntaxKind> Language => VisualBasicFacade.Instance;

protected override string NameOf => "NameOf";
Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't need empty line before

Copy link
Contributor

Choose a reason for hiding this comment

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

LGTM

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

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

No Coverage information No Coverage information
No Duplication information No Duplication information

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

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

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@cristian-ambrosini-sonarsource cristian-ambrosini-sonarsource deleted the cristian/improve-S2302-message branch May 11, 2023 09:22
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.

Improve S2302 Message: Use NameOf for VB.NET
4 participants