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

Fix S1123 FN: The explanation should not be null or whitespace #6890

Conversation

Corniel
Copy link
Contributor

@Corniel Corniel commented Mar 9, 2023

As mentioned by @martin-strecker-sonarsource reading the arguments should be improved. Result of a remark in #6593 .

@Corniel Corniel force-pushed the corniel/obsolete-not-null-whitespace branch from 149a81b to 88d64e7 Compare March 17, 2023 14:54
@Corniel
Copy link
Contributor Author

Corniel commented Mar 17, 2023

@martin-strecker-sonarsource Given #6593 this should be an easy one, right?

Copy link
Contributor

Choose a reason for hiding this comment

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

Please add some more test cases

@martin-strecker-sonarsource
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Corniel
Copy link
Contributor Author

Corniel commented Mar 18, 2023

@martin-strecker-sonarsource Moved some test cases to tests that now only run under #if NET (I forgot the run the tests locally under .NET 4.8, oops). I used language versions to achieve this, although is in the end not language but framework dependent.

@martin-strecker-sonarsource
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

Choose a reason for hiding this comment

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

LGTM

@martin-strecker-sonarsource
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@sonarcloud
Copy link

sonarcloud bot commented Mar 19, 2023

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

@sonarcloud
Copy link

sonarcloud bot commented Mar 19, 2023

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

@martin-strecker-sonarsource martin-strecker-sonarsource added this to the 8.56 milestone Mar 20, 2023
@github-actions github-actions bot added this to To do in Best Kanban Mar 20, 2023
@martin-strecker-sonarsource martin-strecker-sonarsource added Type: False Negative Rule is NOT triggered when it should be. Area: VB.NET VB.NET rules related issues. Area: C# C# rules related issues. labels Mar 20, 2023
@martin-strecker-sonarsource martin-strecker-sonarsource moved this from To do to Review approved in Best Kanban Mar 20, 2023
@pavel-mikula-sonarsource pavel-mikula-sonarsource changed the title FN S1123: The explanation should not be null or whitespace Fix S1123 FN: The explanation should not be null or whitespace Mar 22, 2023
@martin-strecker-sonarsource martin-strecker-sonarsource merged commit f3c2ea1 into SonarSource:master Mar 23, 2023
Best Kanban automation moved this from Review approved to Validate Peach Mar 23, 2023
@Corniel Corniel deleted the corniel/obsolete-not-null-whitespace branch March 23, 2023 10:04
@martin-strecker-sonarsource
Copy link
Contributor

Peach validation: No changes found.

@martin-strecker-sonarsource martin-strecker-sonarsource moved this from Validate Peach to Done in Best Kanban Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: C# C# rules related issues. Area: VB.NET VB.NET rules related issues. Type: False Negative Rule is NOT triggered when it should be.
Projects
Best Kanban
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants