Skip to content

Conversation

@zsolt-kolbay-sonarsource
Copy link
Contributor

@zsolt-kolbay-sonarsource zsolt-kolbay-sonarsource commented Feb 20, 2024

Fixes #8768
Deviations from the original RSPEC:

@costin-zaharia-sonarsource
Copy link
Member

costin-zaharia-sonarsource commented Feb 21, 2024

no check is done for the exception on InterpolatedStringHandlerAttribute as I couldn't find any logging method that use this attribute

My understanding is that the attribute is declared on the type of the argument that is passed to the logging method invocation. It's not about the logging method. https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/tutorials/interpolated-string-handler

Copy link
Member

Choose a reason for hiding this comment

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

Looks good to me so far. I've added a couple of questions and I'm waiting for the RSPEC update.

Copy link
Member

Choose a reason for hiding this comment

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

LGTM! Just a small change needed before I approve

@sonarqubecloud
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues

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

See analysis details on SonarCloud

@sonarqubecloud
Copy link

@zsolt-kolbay-sonarsource zsolt-kolbay-sonarsource merged commit 56a6076 into master Feb 22, 2024
@zsolt-kolbay-sonarsource zsolt-kolbay-sonarsource deleted the Zsolt/new-rule-S2629 branch February 22, 2024 21:19
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.

New rule S2629: Logging templates should be constant

2 participants