Skip to content

Conversation

@michaelnebel
Copy link
Contributor

@michaelnebel michaelnebel commented Mar 12, 2025

In this PR we add the cs/constant-condition to the CCR suite.
A couple of improvements related to the accuracy was made prior to this change

The available autofix triage data for C# only had 3 results where 2 were FPs (which were fixed by the above improvements) and for the last data point autofix gave an almost correct suggestion (at least a good staring point).
I have tried to run autofix locally on our query test data files, which provided pretty good fix suggestions. Most of these cases are constructed examples, where the correct suggestion is to delete the code as nothing is done (which autofix correctly detects). Furthermore, it is also able to correctly detect the logic error in the Max method (and provide a good fix for the implementation).
Also ran autofix locally on the alerts for ASP.NET Core, which also provided good fix suggestions that could be directly applied.

@github-actions github-actions bot added the C# label Mar 12, 2025
@michaelnebel michaelnebel marked this pull request as ready for review March 12, 2025 15:22
Copilot AI review requested due to automatic review settings March 12, 2025 15:22
@michaelnebel michaelnebel requested a review from a team as a code owner March 12, 2025 15:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Tip: Copilot only keeps its highest confidence comments to reduce noise and keep you focused. Learn more

@michaelnebel michaelnebel merged commit 72c7024 into github:main Mar 13, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants