-
Notifications
You must be signed in to change notification settings - Fork 483
Remove rulesets #6367
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
Merged
Merged
Remove rulesets #6367
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
db4f25a
Remove rulesets
Youssef1313 e9723f8
Set IsShipping to false for Test.Utilities.csproj
Youssef1313 9880540
Apply suggestions from code review
Youssef1313 53e89f9
Fix IDE0078 violations
Youssef1313 cc6bd76
Fix one more violation
Youssef1313 0386078
More fixes
Youssef1313 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
is_global = true | ||
|
||
# Default severity for all IDE code style rules with category 'Style' | ||
dotnet_analyzer_diagnostic.category-Style.severity = warning | ||
|
||
# Default severity for all IDE code quality rules with category 'CodeQuality' | ||
dotnet_analyzer_diagnostic.category-CodeQuality.severity = warning | ||
|
||
### Configuration for RSxxxx rules ### | ||
|
||
# RS1024: Compare symbols correctly | ||
# https://github.com/dotnet/roslyn-analyzers/issues/3389 | ||
Youssef1313 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
dotnet_diagnostic.RS1024.severity = none | ||
|
||
# Parts exported with MEFv2 must be marked with 'SharedAttribute', un-needed here | ||
dotnet_diagnostic.RS0023.severity = none | ||
|
||
# Exported parts should be marked with 'ImportingConstructorAttribute', un-needed here | ||
dotnet_diagnostic.RS0034.severity = none | ||
|
||
# Use 'null' instead of 'default' for nullable types | ||
dotnet_diagnostic.RS0038.severity = none | ||
|
||
# TODO: Remove this exclusion and fix related issues, tracked by https://github.com/dotnet/roslyn-analyzers/issues/3915 | ||
#dotnet_diagnostic.RS0041.severity = none | ||
|
||
### Configuration for IDE code style by diagnostic IDs ### | ||
|
||
# IDE0078: Use pattern matching | ||
# https://github.com/dotnet/roslyn/issues/51691 | ||
# https://github.com/dotnet/roslyn/issues/51693 | ||
dotnet_diagnostic.IDE0078.severity = silent | ||
mavasani marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
Youssef1313 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# IDE0066: Convert switch statement to expression | ||
dotnet_diagnostic.IDE0066.severity = suggestion | ||
|
||
# IDE0001: Name can be simplified | ||
dotnet_diagnostic.IDE0001.severity = silent | ||
|
||
# IDE0002: Name can be simplified | ||
dotnet_diagnostic.IDE0002.severity = silent | ||
|
||
# IDE0003: Name can be simplified | ||
dotnet_diagnostic.IDE0003.severity = silent | ||
|
||
# IDE0007: Use 'var' instead of explicit type | ||
dotnet_diagnostic.IDE0007.severity = silent | ||
|
||
# IDE0010: Add missing cases in switch statement | ||
dotnet_diagnostic.IDE0010.severity = silent | ||
|
||
# IDE0017: Object initialization can be simplified | ||
dotnet_diagnostic.IDE0017.severity = silent | ||
|
||
# IDE0045: 'if' statement can be simplified | ||
dotnet_diagnostic.IDE0045.severity = silent | ||
|
||
# IDE0046: 'if' statement can be simplified | ||
dotnet_diagnostic.IDE0046.severity = silent | ||
|
||
# IDE0048: Parentheses should be added for clarity | ||
dotnet_diagnostic.IDE0048.severity = silent | ||
|
||
# IDE0058: Expression value is never used | ||
dotnet_diagnostic.IDE0058.severity = silent | ||
|
||
# IDE0065: Using directives must be placed outside of a namespace declaration | ||
# Can remove the below entry and turn it into a warning once https://github.com/dotnet/roslyn/issues/43271 is resolved. | ||
dotnet_diagnostic.IDE0065.severity = silent | ||
|
||
# IDE0072: Populate switch | ||
dotnet_diagnostic.IDE0072.severity = silent | ||
|
||
# IDE0083: Use pattern matching | ||
dotnet_diagnostic.IDE0083.severity = silent | ||
|
||
# IDE0120: Simplify linq expression | ||
dotnet_diagnostic.IDE0120.severity = silent | ||
|
||
# IDE0130: Namespace does not match folder structure | ||
dotnet_diagnostic.IDE0130.severity = silent | ||
|
||
# IDE0150: Null check can be clarified | ||
dotnet_diagnostic.IDE0150.severity = silent | ||
|
||
### Configuration for Microsoft.CodeAnalysis.NetAnalyzers analyzers executed on this repo ### | ||
|
||
# CA1002: Do not expose generic lists | ||
dotnet_diagnostic.CA1002.severity = suggestion | ||
|
||
# CA1024: Use properties where appropriate | ||
dotnet_diagnostic.CA1024.severity = suggestion | ||
|
||
# CA1033: Interface methods should be callable by child types | ||
dotnet_diagnostic.CA1033.severity = suggestion | ||
|
||
# ValidateArgumentsOfPublicMethods - only useful for libraries with supported public API surface, we don't have any | ||
dotnet_diagnostic.CA1062.severity = none | ||
|
||
# CA1307: Specify StringComparison for clarity | ||
dotnet_diagnostic.CA1307.severity = suggestion | ||
|
||
# CA1711: Identifiers should not have incorrect suffix | ||
dotnet_diagnostic.CA1711.severity = suggestion | ||
|
||
# CA1309: Use ordinal string comparison | ||
dotnet_diagnostic.CA1309.severity = suggestion | ||
|
||
# 🐢 Avoid dead conditional code: https://github.com/dotnet/roslyn-analyzers/issues/4914 | ||
dotnet_diagnostic.CA1508.severity = none | ||
|
||
# 🐢 Dispose objects before losing scope: https://github.com/dotnet/roslyn-analyzers/issues/4915 | ||
dotnet_diagnostic.CA2000.severity = none | ||
|
||
### Configuration for vs-threading analyzers executed on this repo ### | ||
|
||
# VSTHRD002: Avoid problematic synchronous waits | ||
dotnet_diagnostic.VSTHRD002.severity = none | ||
|
||
# VSTHRD011: Use AsyncLazy<T> | ||
dotnet_diagnostic.VSTHRD011.severity = none |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
is_global = true | ||
|
||
# Do not declare static members on generic types (we use generic static classes in test helpers) | ||
dotnet_diagnostic.CA1000.severity = none | ||
|
||
# Nested types should not be visible (we use nested types as test helpers) | ||
dotnet_diagnostic.CA1034.severity = none | ||
|
||
# IdentifiersShouldNotContainUnderscores - test names contain underscores and this is fine | ||
dotnet_diagnostic.CA1707.severity = none | ||
|
||
# Type names should not match namespaces (not needed for test code) | ||
dotnet_diagnostic.CA1724.severity = none | ||
|
||
# Mark member as static rule has many violations in non-shipping projects | ||
dotnet_diagnostic.CA1822.severity = none | ||
|
||
# Do not directly await a Task (makes tests unnecessarily noisy) | ||
dotnet_diagnostic.CA2007.severity = none | ||
|
||
### Configuration for RSxxxx rules ### | ||
|
||
# Do not call 'GetTestAccessor()' | ||
dotnet_diagnostic.RS0043.severity = none | ||
mavasani marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
is_global = true | ||
|
||
# DoNotPassLiteralsAsLocalizedParameters - primarily useful for libraries where public APIs throw exceptions, and the messages need to be localized | ||
dotnet_diagnostic.CA1303.severity = none |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.