Skip to content

Add Support for VS 16.8 Which Introduced Breaking Changes#42

Merged
RehanSaeed merged 1 commit intomainfrom
support-vs-16-8
Nov 23, 2020
Merged

Add Support for VS 16.8 Which Introduced Breaking Changes#42
RehanSaeed merged 1 commit intomainfrom
support-vs-16-8

Conversation

@RehanSaeed
Copy link
Copy Markdown
Owner

@RehanSaeed RehanSaeed commented Nov 16, 2020

The way you set the severity in .editorconfig files changed drastically in VS 16.8 and is a breaking change. On the positive side, we now get errors/warnings in CI builds. I've set a default severity of warning like so:

dotnet_analyzer_diagnostic.severity = warning

Then added custom severities of suggestion where necessary. This requires knowing the error code which is a little opaque from our point of view where we are editing the .editorconfig file directly but when using VS, it's quite apparent from the error list.

dotnet_diagnostic.IDE0045.severity = suggestion

Furthermore, I've updated dotnet_style_parentheses_in_other_operators to always_for_clarity. The other parenthesis settings do the same and I'm not sure why we had it the opposite way around.

@RehanSaeed RehanSaeed added enhancement Issues describing an enhancement or pull requests adding an enhancement. major Pull requests requiring a major version update according to semantic versioning. labels Nov 16, 2020
@RehanSaeed RehanSaeed requested a review from henrygab November 16, 2020 09:40
@RehanSaeed RehanSaeed merged commit 4bf2cd6 into main Nov 23, 2020
@RehanSaeed RehanSaeed deleted the support-vs-16-8 branch November 23, 2020 16:34
RehanSaeed added a commit that referenced this pull request Dec 11, 2020
RehanSaeed added a commit that referenced this pull request Dec 11, 2020
* Revert "Add support for VS 16.8 which introduced breaking changes (#42)"

This reverts commit 4bf2cd6.

* Fix rule severities
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Issues describing an enhancement or pull requests adding an enhancement. major Pull requests requiring a major version update according to semantic versioning.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant