-
Notifications
You must be signed in to change notification settings - Fork 231
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
.NET 8 and C# 12: add repros and UTs for rules starting with P in SonarWay #8082
.NET 8 and C# 12: add repros and UTs for rules starting with P in SonarWay #8082
Conversation
1b713aa
to
3391bfd
Compare
analyzers/tests/SonarAnalyzer.UnitTest/Rules/ParameterValidationInYieldShouldBeWrappedTest.cs
Outdated
Show resolved
Hide resolved
There is a FN for the following case for PropertiesAccessCorrectField rule.
|
...tests/SonarAnalyzer.UnitTest/TestCases/ParameterValidationInYieldShouldBeWrapped.CSharp12.cs
Outdated
Show resolved
Hide resolved
.../SonarAnalyzer.UnitTest/TestCases/ProvideDeserializationMethodsForOptionalFields.CSharp12.cs
Outdated
Show resolved
Hide resolved
...ers/tests/SonarAnalyzer.UnitTest/TestCases/PublicMethodWithMultidimensionalArray.CSharp12.cs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a few comments. Overall nice findings!
Good catch! I have added the reproducer to this PR and an issue for it: #8101 |
analyzers/tests/SonarAnalyzer.UnitTest/Rules/PublicMethodWithMultidimensionalArrayTest.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left one more comment. you could try to reference the .NET8 assemblies as I suggested since we already have them on the machine or bump the target framework of the UTs.
@costin-zaharia-sonarsource taking over from @csaba-sagi-sonarsource Here is the last thread open: #8082 (comment) |
Kudos, SonarCloud Quality Gate passed! |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Rules affected by .NET 8 and C# 12 for rules starting with
P
in SonarWay.Adds repros:
Adds UTs with .NET 8 and C# 12 features for:
Rule ideas and improvement tasks created: