Skip to content

Commit 3ceda69

Browse files
committed
Clean up analyzer suggestions
1 parent 50de34d commit 3ceda69

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/Common/SarifParser.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ private IEnumerable<DiagnosticConfig> ParseRun(Run run)
9898
yield return new DiagnosticConfig(
9999
id: rule.Id,
100100
title: rule.GetTitle(version),
101-
category: rule.GetPropertyOrDefault("category", string.Empty),
101+
category: rule.GetPropertyOrDefault("category", defaultValue: string.Empty),
102102
defaultSeverity: defaultSeverity,
103103
isEnabledByDefault: defaultConfiguration.Enabled,
104104
effectiveSeverities: effectiveSeverities,
105-
isEverSuppressed: rule.GetPropertyOrDefault("isEverSuppressed", false));
105+
isEverSuppressed: rule.GetPropertyOrDefault("isEverSuppressed", defaultValue: false));
106106
}
107107
}
108108
}

src/Tool/CommandFilterFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace SquiggleCop.Tool;
55

6-
internal class CommandFilterFactory<TCommandFilterAttribute> : IFilterFactory where TCommandFilterAttribute : ICommandFilter
6+
internal sealed class CommandFilterFactory<TCommandFilterAttribute> : IFilterFactory where TCommandFilterAttribute : ICommandFilter
77
{
88
public IFilterMetadata CreateInstance(IServiceProvider serviceProvider)
99
{

src/Tool/DotnetToolApplicationMetadataProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace SquiggleCop.Tool;
66

7-
internal class DotnetToolApplicationMetadataProvider : ICoconaApplicationMetadataProvider
7+
internal sealed class DotnetToolApplicationMetadataProvider : ICoconaApplicationMetadataProvider
88
{
99
public string GetDescription()
1010
{

src/Tool/SpectreErrorHandlerFilterAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace SquiggleCop.Tool;
55

6-
internal class SpectreErrorHandlerFilterAttribute : CommandFilterAttribute
6+
internal sealed class SpectreErrorHandlerFilterAttribute : CommandFilterAttribute
77
{
88
private readonly IAnsiConsole _console;
99

src/Tool/SpectreParameterBindExceptionFilterAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace SquiggleCop.Tool;
88

9-
internal class SpectreParameterBindExceptionFilterAttribute : CommandFilterAttribute
9+
internal sealed class SpectreParameterBindExceptionFilterAttribute : CommandFilterAttribute
1010
{
1111
private readonly IAnsiConsole _console;
1212

0 commit comments

Comments
 (0)