-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trick the build into enabling IDE1006 but still allowing per-rule sev…
…erity configuration
- Loading branch information
Showing
5 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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,12 @@ | ||
# Diagnostics with a default severity of suggestion or lower (including IDE* rules) do not run during command line | ||
# builds unless they have been elevated to warning or greater using the compiler-designated syntax. Since the compiler | ||
# syntax prevents the use of fine-grained severity configuration for rules like IDE1006 (Naming styles), we use this | ||
# configuration file to only force the severity to warning for a single known file in the compilation. | ||
|
||
[CodeAnalysisSource.{cs,vb}] | ||
|
||
# IDE1006: Naming styles | ||
dotnet_diagnostic.IDE1006.severity = warning | ||
|
||
# SA1518: Code should not contain blank lines at the end of the file | ||
dotnet_diagnostic.SA1518.severity = none |
This file contains 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 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 @@ | ||
|
This file contains 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 @@ | ||
|
This file contains 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