Skip to content

Commit b56aec4

Browse files
authored
Disable really noisy analyzers, part 1 (#6837)
* Disable really noisy analyzers, part 1 These are super annoying and add basically zero value.
1 parent fe1cc44 commit b56aec4

File tree

228 files changed

+55
-721
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

228 files changed

+55
-721
lines changed

bench/.editorconfig

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -481,11 +481,6 @@ dotnet_diagnostic.CA1507.severity = warning
481481
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1508
482482
dotnet_diagnostic.CA1508.severity = warning
483483

484-
# Title : Avoid dead conditional code
485-
# Category : Maintainability
486-
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1508
487-
dotnet_diagnostic.CA1508.severity = warning
488-
489484
# Title : Invalid entry in code metrics rule specification file
490485
# Category : Maintainability
491486
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1509

eng/Tools/.editorconfig

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -479,11 +479,6 @@ dotnet_diagnostic.CA1507.severity = warning
479479
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1508
480480
dotnet_diagnostic.CA1508.severity = warning
481481

482-
# Title : Avoid dead conditional code
483-
# Category : Maintainability
484-
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1508
485-
dotnet_diagnostic.CA1508.severity = warning
486-
487482
# Title : Invalid entry in code metrics rule specification file
488483
# Category : Maintainability
489484
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1509

src/Analyzers/.editorconfig

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -482,11 +482,6 @@ dotnet_diagnostic.CA1507.severity = warning
482482
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1508
483483
dotnet_diagnostic.CA1508.severity = warning
484484

485-
# Title : Avoid dead conditional code
486-
# Category : Maintainability
487-
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1508
488-
dotnet_diagnostic.CA1508.severity = warning
489-
490485
# Title : Invalid entry in code metrics rule specification file
491486
# Category : Maintainability
492487
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1509

src/Analyzers/Microsoft.Analyzers.Local/ApiLifecycle/ApiLifecycleAnalyzer.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System;
5-
using System.Collections.Generic;
64
using System.Collections.Immutable;
75
using System.Linq;
86
using Microsoft.CodeAnalysis;

src/Analyzers/Microsoft.Analyzers.Local/ApiLifecycle/Json/JsonObjectExtensions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
using System;
5-
using Microsoft.Extensions.LocalAnalyzers.Json;
65

76
namespace Microsoft.Extensions.LocalAnalyzers.Json;
87

src/Analyzers/Microsoft.Analyzers.Local/DiagDescriptors.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System;
54
using Microsoft.CodeAnalysis;
65

76
[assembly: System.Resources.NeutralResourcesLanguage("en-us")]

src/Generators/.editorconfig

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -482,11 +482,6 @@ dotnet_diagnostic.CA1507.severity = warning
482482
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1508
483483
dotnet_diagnostic.CA1508.severity = warning
484484

485-
# Title : Avoid dead conditional code
486-
# Category : Maintainability
487-
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1508
488-
dotnet_diagnostic.CA1508.severity = warning
489-
490485
# Title : Invalid entry in code metrics rule specification file
491486
# Category : Maintainability
492487
# Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1509

src/Generators/Microsoft.Gen.Logging/Emission/Emitter.Method.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using System;
55
using System.Collections.Generic;
66
using System.Linq;
7-
using System.Text;
87
using Microsoft.Gen.Logging.Model;
98
using Microsoft.Gen.Shared;
109

src/Generators/Microsoft.Gen.Logging/Model/LoggingMethodParameter.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System;
54
using System.Collections.Generic;
65
using System.Diagnostics;
76

src/Generators/Microsoft.Gen.Logging/Parsing/AttributeProcessors.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System;
54
using Microsoft.CodeAnalysis;
65

76
namespace Microsoft.Gen.Logging.Parsing;

0 commit comments

Comments
 (0)