|
1 | | -# Top level entry required to mark this as a global AnalyzerConfig file |
| 1 | +# Top level entry required to mark this as a global AnalyzerConfig file |
2 | 2 | # NOTE: Do not create section headers for configuration entries |
3 | 3 | is_global = true |
4 | 4 |
|
@@ -226,6 +226,18 @@ dotnet_diagnostic.CA2007.severity = warning |
226 | 226 | ; Exceptions can be configured in stylecop.json |
227 | 227 | dotnet_diagnostic.SA1412.severity = warning |
228 | 228 |
|
| 229 | +# S3242: Method parameters should be declared with base types |
| 230 | +; False positive with IEnumerable<T> that could lead to multiple enumerations. This should be only applied on Developers discretion. |
| 231 | +dotnet_diagnostic.S3242.severity = suggestion |
| 232 | + |
| 233 | +# S3257: Declarations and initializations should be as concise as possible |
| 234 | +; In some cases developers may prefer the verbosity of a unused parameter over the easier readability of a discard. |
| 235 | +dotnet_diagnostic.S3257.severity = suggestion |
| 236 | + |
| 237 | +# S3267: Loops should be simplified with "LINQ" expressions |
| 238 | +; This can be an annoying rule in cases where it does not really improve readability or even worsens it. |
| 239 | +dotnet_diagnostic.S3267.severity = suggestion |
| 240 | + |
229 | 241 | # S107: Methods should not have too many parameters |
230 | 242 | dotnet_diagnostic.S107.severity = warning |
231 | 243 |
|
@@ -403,18 +415,12 @@ dotnet_diagnostic.S3234.severity = error |
403 | 415 | # S3240: The simplest possible condition syntax should be used |
404 | 416 | dotnet_diagnostic.S3240.severity = warning |
405 | 417 |
|
406 | | -# S3242: Method parameters should be declared with base types |
407 | | -dotnet_diagnostic.S3242.severity = warning |
408 | | - |
409 | 418 | # S3253: Constructor and destructor declarations should not be redundant |
410 | 419 | dotnet_diagnostic.S3253.severity = warning |
411 | 420 |
|
412 | 421 | # S3254: Default parameter values should not be passed as arguments |
413 | 422 | dotnet_diagnostic.S3254.severity = warning |
414 | 423 |
|
415 | | -# S3257: Declarations and initializations should be as concise as possible |
416 | | -dotnet_diagnostic.S3257.severity = warning |
417 | | - |
418 | 424 | # S3353: Unchanged local variables should be "const" |
419 | 425 | dotnet_diagnostic.S3353.severity = warning |
420 | 426 |
|
|
0 commit comments