Skip to content

Introducing new flag --return-success-on-findings. - #1756

Merged
josefpihrt merged 5 commits into
dotnet:mainfrom
mdrybak:feature/1693_return_0_on_findings
Aug 1, 2026
Merged

Introducing new flag --return-success-on-findings.#1756
josefpihrt merged 5 commits into
dotnet:mainfrom
mdrybak:feature/1693_return_0_on_findings

Conversation

@mdrybak

@mdrybak mdrybak commented Mar 29, 2026

Copy link
Copy Markdown
Contributor

Fixes #1693.
New flag: --return-success-on-findings is introduced. When it's used, CLI will return 0 even if findings are reported.
Naming isn't really creative and I'm not really emotionally attached to it, so feel free to suggest some new name and I'll just change it.
Tagging @davewichers as the issue reporter.

mdrybak added 3 commits March 29, 2026 20:56
…n-findings. With this flag, CLI will return exit code 0 even when findings are reported.
Comment thread ChangeLog.md Outdated
Comment thread src/CommandLine/Options/AnalyzeCommandLineOptions.cs Outdated
Comment thread src/CommandLine/Commands/AnalyzeCommand.cs Outdated
Comment thread src/CommandLine/Options/AnalyzeCommandLineOptions.cs Outdated
@josefpihrt
josefpihrt merged commit 646d15c into dotnet:main Aug 1, 2026
17 checks passed
@josefpihrt

Copy link
Copy Markdown
Collaborator

@mdrybak Thank you for your contribution!

I changed the name to --return-success-on-diagnostics.

@davewichers

Copy link
Copy Markdown

@mdrybak - Thanks for addressing this. @josefpihrt - When do you expect this new feature to be released in a new version of Roslynator?

@josefpihrt

Copy link
Copy Markdown
Collaborator

@davewichers this week for sure.

This was referenced Aug 8, 2026
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.

Any way to suppress error code from Roslynator when it detects issues in code but runs successfully?

3 participants