|
5 | 5 |
|
6 | 6 | using System.Diagnostics.CodeAnalysis;
|
7 | 7 |
|
8 |
| -// I'd rather not |
9 |
| -[assembly: SuppressMessage("StyleCop.CSharp.ReadabilityRules", "SA1101:Prefix local calls with this", Justification = "Not my style")] |
10 |
| - |
11 |
| -// StyleCop forces bracing that I don't like, and can't be configured |
12 |
| -[assembly: SuppressMessage("StyleCop.CSharp.LayoutRules", "SA1503:Braces should not be omitted", Justification = "Cant be controlled to represent my style")] |
13 |
| -[assembly: SuppressMessage("StyleCop.CSharp.LayoutRules", "SA1520:Use braces consistently", Justification = "can't be controlled to represent my style")] |
14 |
| - |
15 |
| -// multiple newlines at the end of a file are inconsequential |
16 |
| -// the configuration only "allows" a single newline |
17 |
| -[assembly: SuppressMessage("StyleCop.CSharp.LayoutRules", "SA1518:Use line endings correctly at end of file", Justification = "silly")] |
18 |
| - |
19 |
| -// no need for line nannying |
20 |
| -[assembly: SuppressMessage("StyleCop.CSharp.LayoutRules", "SA1508:Closing braces should not be preceded by blank line", Justification = "silly")] |
21 |
| -[assembly: SuppressMessage("StyleCop.CSharp.LayoutRules", "SA1507:Code should not contain multiple blank lines in a row", Justification = "silly")] |
22 |
| - |
23 |
| -// StyleCop fires this warning for []? nullable arrays |
24 |
| -// see https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/2927 |
25 |
| -[assembly: SuppressMessage("StyleCop.CSharp.LayoutRules", "SA1011:Closing square bracket should be followed by a space", Justification = "StyleCop bug")] |
26 |
| - |
27 |
| -// incompatible with TODO and REVIEW comments, which are useful and built-in to Visual Studio |
28 |
| -[assembly: SuppressMessage("StyleCop.CSharp.LayoutRules", "SA1005:Single line comment should begin with a space", Justification = "Not my style")] |
29 |
| - |
30 |
| -// not using file headers |
31 |
| -[assembly: SuppressMessage("StyleCop.CSharp.LayoutRules", "SA1633:The file header XML is invalid", Justification = "not using file headers just yet")] |
32 |
| - |
33 |
| -// I freely use single-line comments |
34 |
| -[assembly: SuppressMessage("StyleCop.CSharp.LayoutRules", "SA1512:Single-line comments should not be followed by blank line", Justification = "Not my style")] |
35 |
| -[assembly: SuppressMessage("StyleCop.CSharp.LayoutRules", "SA1515:Single-line comment should be preceded by blank line", Justification = "Not my style")] |
36 |
| - |
37 |
| -// regions seem nice to me |
38 |
| -[assembly: SuppressMessage("StyleCop.CSharp.ReadabilityRules", "SA1124:Do not use regions", Justification = "You're not the boss of me")] |
| 8 | +// see https://josefpihrt.github.io/docs/roslynator/how-to-suppress-diagnostic |
| 9 | +[assembly: SuppressMessage("Roslynator", |
| 10 | + "RCS1036:Remove unnecessary blank line", |
| 11 | + Justification = "Nobody tells me where to put whitespace", Scope = "namespaceanddescendants", Target = "JankSQL")] |
| 12 | +[assembly: SuppressMessage("Roslynator", |
| 13 | + "RCS1036:Remove unnecessary blank line", |
| 14 | + Justification = "Nobody tells me where to put whitespace", Scope = "namespaceanddescendants", Target = "JankSQL.Expressions")] |
| 15 | +[assembly: SuppressMessage("Roslynator", |
| 16 | + "RCS1036:Remove unnecessary blank line", |
| 17 | + Justification = "Nobody tells me where to put whitespace", Scope = "namespaceanddescendants", Target = "JankSQL.Engines")] |
| 18 | +[assembly: SuppressMessage("Roslynator", |
| 19 | + "RCS1036:Remove unnecessary blank line", |
| 20 | + Justification = "Nobody tells me where to put whitespace", Scope = "namespaceanddescendants", Target = "JankSQL.Contexts")] |
| 21 | +[assembly: SuppressMessage("Roslynator", |
| 22 | + "RCS1036:Remove unnecessary blank line", |
| 23 | + Justification = "Nobody tells me where to put whitespace", Scope = "namespaceanddescendants", Target = "JankSQL.Listeners")] |
| 24 | + |
| 25 | +[assembly: SuppressMessage("Roslynator", |
| 26 | + "RCS1003:Add braces to if-else (when expression spans over multiple lines)", |
| 27 | + Justification = "Mixing brackets is preferred", Scope = "namespaceanddescendants", Target = "JankSQL")] |
0 commit comments