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

Cannot suppress code analysis rules with code actions #3550

Closed
webczat opened this issue Feb 5, 2020 · 1 comment
Closed

Cannot suppress code analysis rules with code actions #3550

webczat opened this issue Feb 5, 2020 · 1 comment

Comments

@webczat
Copy link

webczat commented Feb 5, 2020

From what I know, code analyzer rules can be suppressed in many ways incl. editorconfig (doesn't seem to work here). The documentation of vs talks about the fact that there is a code action for suppressing code analyser rules, however it does not show in vscode when invoking code action list for rule violations. I got the info that this is implemented in roslyn, so is not vs specific.

@filipw
Copy link
Contributor

filipw commented Feb 7, 2020

Editorconfig is supported in OmniSharp - see https://www.strathweb.com/2019/07/editorconfig-support-in-omnisharp-and-c-extension-vs-code/

however, the way to control analyzer severity via editorconfig is currently not supported (this is a fairly new feature in Roslyn that only came in VS 16.3).
it is tracked by OmniSharp/omnisharp-roslyn#1657 so I will close this as duplicate.

As a workaround you can still use rulesets and those will be supported in OmniSharp.

@filipw filipw closed this as completed Feb 7, 2020
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

No branches or pull requests

2 participants