refactor: Remove redundant class bodies in solution

pull/231/head
Robert Dailey 1 year ago
parent 6811706b2f
commit cb0ed50359

@ -14,9 +14,7 @@ public class ConfigListLocalCommand(ILogger log, ConfigListLocalProcessor proces
: AsyncCommand<ConfigListLocalCommand.CliSettings> : AsyncCommand<ConfigListLocalCommand.CliSettings>
{ {
[SuppressMessage("Design", "CA1034:Nested types should not be visible")] [SuppressMessage("Design", "CA1034:Nested types should not be visible")]
public class CliSettings : BaseCommandSettings public class CliSettings : BaseCommandSettings;
{
}
public override async Task<int> ExecuteAsync(CommandContext context, CliSettings settings) public override async Task<int> ExecuteAsync(CommandContext context, CliSettings settings)
{ {

@ -18,9 +18,7 @@ public class MigrateCommand(
{ {
[UsedImplicitly] [UsedImplicitly]
[SuppressMessage("Design", "CA1034:Nested types should not be visible")] [SuppressMessage("Design", "CA1034:Nested types should not be visible")]
public class CliSettings : ServiceCommandSettings public class CliSettings : ServiceCommandSettings;
{
}
public override int Execute(CommandContext context, CliSettings settings) public override int Execute(CommandContext context, CliSettings settings)
{ {

@ -1,5 +1,3 @@
namespace Recyclarr.Config.Parsing.ErrorHandling; namespace Recyclarr.Config.Parsing.ErrorHandling;
public class NoConfigurationFilesException : Exception public class NoConfigurationFilesException : Exception;
{
}

@ -5,9 +5,7 @@ namespace Recyclarr.Config.Parsing.PostProcessing.ConfigMerging;
[SuppressMessage("Design", "CA1040:Avoid empty interfaces", Justification = [SuppressMessage("Design", "CA1040:Avoid empty interfaces", Justification =
"Used for type-discriminating node deserializer")] "Used for type-discriminating node deserializer")]
public interface IYamlInclude public interface IYamlInclude;
{
}
[UsedImplicitly(ImplicitUseTargetFlags.WithMembers)] [UsedImplicitly(ImplicitUseTargetFlags.WithMembers)]
public record ConfigYamlInclude : IYamlInclude public record ConfigYamlInclude : IYamlInclude

@ -3,9 +3,7 @@ using System.Text.Json.Serialization.Metadata;
namespace Recyclarr.Json; namespace Recyclarr.Json;
[AttributeUsage(AttributeTargets.Property)] [AttributeUsage(AttributeTargets.Property)]
public sealed class JsonNoSerializeAttribute : Attribute public sealed class JsonNoSerializeAttribute : Attribute;
{
}
public static class JsonSerializationModifiers public static class JsonSerializationModifiers
{ {

@ -12,9 +12,7 @@ public class ServiceCacheTest
{ {
[SuppressMessage("SonarLint", "S2094", Justification = [SuppressMessage("SonarLint", "S2094", Justification =
"Used for unit test scenario")] "Used for unit test scenario")]
private sealed class ObjectWithoutAttribute private sealed class ObjectWithoutAttribute;
{
}
private const string ValidObjectName = "azAZ_09"; private const string ValidObjectName = "azAZ_09";
@ -25,9 +23,7 @@ public class ServiceCacheTest
} }
[CacheObjectName("invalid+name")] [CacheObjectName("invalid+name")]
private sealed class ObjectWithAttributeInvalidChars private sealed class ObjectWithAttributeInvalidChars;
{
}
[Test, AutoMockData] [Test, AutoMockData]
public void Load_returns_null_when_file_does_not_exist( public void Load_returns_null_when_file_does_not_exist(

@ -6,9 +6,7 @@ namespace Recyclarr.Tests.Common.Extensions;
[Parallelizable(ParallelScope.All)] [Parallelizable(ParallelScope.All)]
public class DictionaryExtensionsTest public class DictionaryExtensionsTest
{ {
private sealed class MySampleValue private sealed class MySampleValue;
{
}
[Test] [Test]
public void Create_item_if_none_exists() public void Create_item_if_none_exists()

Loading…
Cancel
Save