diff --git a/src/Recyclarr.Cli/Command/Helpers/CacheStoragePath.cs b/src/Recyclarr.Cli/Command/Helpers/CacheStoragePath.cs index fc9f002b..8873845a 100644 --- a/src/Recyclarr.Cli/Command/Helpers/CacheStoragePath.cs +++ b/src/Recyclarr.Cli/Command/Helpers/CacheStoragePath.cs @@ -1,4 +1,5 @@ using System.Data.HashFunction.FNV; +using System.Globalization; using System.IO.Abstractions; using System.Text; using Recyclarr.TrashLib.Cache; @@ -33,7 +34,7 @@ public class CacheStoragePath : ICacheStoragePath public IFileInfo CalculatePath(string cacheObjectName) { return _paths.CacheDirectory - .SubDirectory(_serviceCommand.Name.ToLower()) + .SubDirectory(_serviceCommand.Name.ToLower(CultureInfo.CurrentCulture)) .SubDirectory(_config.Name ?? BuildServiceGuid()) .File(cacheObjectName + ".json"); } diff --git a/src/Recyclarr.Common.Tests/Extensions/DictionaryExtensionsTest.cs b/src/Recyclarr.Common.Tests/Extensions/DictionaryExtensionsTest.cs index 5ff6d610..eb2dc2ae 100644 --- a/src/Recyclarr.Common.Tests/Extensions/DictionaryExtensionsTest.cs +++ b/src/Recyclarr.Common.Tests/Extensions/DictionaryExtensionsTest.cs @@ -8,7 +8,7 @@ namespace Recyclarr.Common.Tests.Extensions; [Parallelizable(ParallelScope.All)] public class DictionaryExtensionsTest { - private class MySampleValue + private sealed class MySampleValue { } diff --git a/src/Recyclarr.TestLibrary/NSubstitute/Verify.cs b/src/Recyclarr.TestLibrary/NSubstitute/Verify.cs index 200837bf..baea09eb 100644 --- a/src/Recyclarr.TestLibrary/NSubstitute/Verify.cs +++ b/src/Recyclarr.TestLibrary/NSubstitute/Verify.cs @@ -15,7 +15,7 @@ public static class Verify return ArgumentMatcher.Enqueue(new AssertionMatcher(action)); } - private class AssertionMatcher : IArgumentMatcher + private sealed class AssertionMatcher : IArgumentMatcher { private readonly Action _assertion; diff --git a/src/Recyclarr.TrashLib.Tests/Cache/ServiceCacheTest.cs b/src/Recyclarr.TrashLib.Tests/Cache/ServiceCacheTest.cs index 58d1245c..76cd73ba 100644 --- a/src/Recyclarr.TrashLib.Tests/Cache/ServiceCacheTest.cs +++ b/src/Recyclarr.TrashLib.Tests/Cache/ServiceCacheTest.cs @@ -14,20 +14,20 @@ namespace Recyclarr.TrashLib.Tests.Cache; [Parallelizable(ParallelScope.All)] public class ServiceCacheTest { - private class ObjectWithoutAttribute + private sealed class ObjectWithoutAttribute { } private const string ValidObjectName = "azAZ_09"; [CacheObjectName(ValidObjectName)] - private class ObjectWithAttribute + private sealed class ObjectWithAttribute { public string TestValue { get; init; } = ""; } [CacheObjectName("invalid+name")] - private class ObjectWithAttributeInvalidChars + private sealed class ObjectWithAttributeInvalidChars { } diff --git a/src/Recyclarr.TrashLib.Tests/CustomFormat/CachePersisterTest.cs b/src/Recyclarr.TrashLib.Tests/CustomFormat/CachePersisterTest.cs index 0518f71f..74161ee0 100644 --- a/src/Recyclarr.TrashLib.Tests/CustomFormat/CachePersisterTest.cs +++ b/src/Recyclarr.TrashLib.Tests/CustomFormat/CachePersisterTest.cs @@ -16,7 +16,7 @@ namespace Recyclarr.TrashLib.Tests.CustomFormat; [Parallelizable(ParallelScope.All)] public class CachePersisterTest { - private class Context + private sealed class Context { public Context() { diff --git a/src/Recyclarr.TrashLib.Tests/CustomFormat/Processors/GuideProcessorTest.cs b/src/Recyclarr.TrashLib.Tests/CustomFormat/Processors/GuideProcessorTest.cs index abc5e1b8..71c6584e 100644 --- a/src/Recyclarr.TrashLib.Tests/CustomFormat/Processors/GuideProcessorTest.cs +++ b/src/Recyclarr.TrashLib.Tests/CustomFormat/Processors/GuideProcessorTest.cs @@ -19,14 +19,14 @@ namespace Recyclarr.TrashLib.Tests.CustomFormat.Processors; [Parallelizable(ParallelScope.All)] public class GuideProcessorTest { - private class TestGuideProcessorSteps : IGuideProcessorSteps + private sealed class TestGuideProcessorSteps : IGuideProcessorSteps { public ICustomFormatStep CustomFormat { get; } = new CustomFormatStep(); public IConfigStep Config { get; } = new ConfigStep(); public IQualityProfileStep QualityProfile { get; } = new QualityProfileStep(); } - private class Context + private sealed class Context { public Context() { diff --git a/src/Recyclarr.TrashLib.Tests/CustomFormat/Processors/GuideSteps/CustomFormatStepTest.cs b/src/Recyclarr.TrashLib.Tests/CustomFormat/Processors/GuideSteps/CustomFormatStepTest.cs index 0b81b7fe..f29fce0a 100644 --- a/src/Recyclarr.TrashLib.Tests/CustomFormat/Processors/GuideSteps/CustomFormatStepTest.cs +++ b/src/Recyclarr.TrashLib.Tests/CustomFormat/Processors/GuideSteps/CustomFormatStepTest.cs @@ -15,7 +15,7 @@ namespace Recyclarr.TrashLib.Tests.CustomFormat.Processors.GuideSteps; [Parallelizable(ParallelScope.All)] public class CustomFormatStepTest { - private class Context + private sealed class Context { public List TestGuideData { get; } = new() { diff --git a/src/Recyclarr.TrashLib.Tests/Sonarr/SonarrCompatibilityTest.cs b/src/Recyclarr.TrashLib.Tests/Sonarr/SonarrCompatibilityTest.cs index b5b1ffa5..91a8b0fb 100644 --- a/src/Recyclarr.TrashLib.Tests/Sonarr/SonarrCompatibilityTest.cs +++ b/src/Recyclarr.TrashLib.Tests/Sonarr/SonarrCompatibilityTest.cs @@ -25,7 +25,7 @@ namespace Recyclarr.TrashLib.Tests.Sonarr; [Parallelizable(ParallelScope.All)] public class SonarrCompatibilityTest { - private class TestContext : IDisposable + private sealed class TestContext : IDisposable { private readonly JsonSerializerSettings _jsonSettings;