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

Exception in VS 2019 when setting analyzer rule severity level. #45446

Closed
GaTechThomas opened this issue Jun 25, 2020 · 0 comments · Fixed by #45615
Closed

Exception in VS 2019 when setting analyzer rule severity level. #45446

GaTechThomas opened this issue Jun 25, 2020 · 0 comments · Fixed by #45615
Assignees
Milestone

Comments

@GaTechThomas
Copy link

GaTechThomas commented Jun 25, 2020

Version Used:
Microsoft (R) Visual C# Compiler version 3.6.0-4.20251.5 (910223b)

Steps to Reproduce:

  1. Add CA rules to .editorconfig file
  2. Add line "# dotnet_diagnostic.severity = error" to the .editorconfig file
  3. Run code analysis in Visual Studio 2019 IDE (will need at least one analyzer rule failure)
  4. In the Error List, right click on a rule failure and set severity for the rule to a different severity level

Expected Behavior:
New rule entry is added to .editorconfig file.

Actual Behavior:
Dialog box error as follows, and no change to the .editorconfig file:

. ---------------------------
. Microsoft Visual Studio
. ---------------------------
. Length cannot be less than zero.
.
. Parameter name: length
. ---------------------------
. OK
. ---------------------------

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants