chore: Code cleanup

pull/136/head
Robert Dailey 2 years ago
parent 7a25f79fa8
commit 87843b4ee1

@ -1,5 +1,6 @@
// [CA1506] '<Main>$' is coupled with '54' different types from '34' different namespaces. Rewrite or refactor the code
// to decrease its class coupling below '41'.
#pragma warning disable CA1506
using System.IO.Abstractions;

@ -35,7 +35,7 @@ log_janitor:
max_files: {maxFiles}
"));
for (var i = 0; i < maxFiles+20; ++i)
for (var i = 0; i < maxFiles + 20; ++i)
{
Fs.AddFile(paths.LogDirectory.File($"logfile-{i}.log").FullName, new MockFileData(""));
}
@ -54,7 +54,7 @@ log_janitor:
var settingsProvider = Resolve<ISettingsProvider>();
var maxFiles = settingsProvider.Settings.LogJanitor.MaxFiles;
for (var i = 0; i < maxFiles+20; ++i)
for (var i = 0; i < maxFiles + 20; ++i)
{
Fs.AddFile(paths.LogDirectory.File($"logfile-{i}.log").FullName, new MockFileData(""));
}

@ -209,7 +209,8 @@ public class ReleaseProfileUpdater : IReleaseProfileUpdater
switch (capabilities.SupportsCustomFormats)
{
case true when config.ReleaseProfiles.Any():
throw new VersionException("Sonarr v4 does not support Release Profiles. Please use Sonarr v3 instead.");
throw new VersionException(
"Sonarr v4 does not support Release Profiles. Please use Sonarr v3 instead.");
case false when config.CustomFormats.Any():
throw new VersionException("Sonarr v3 does not support Custom Formats. Please use Sonarr v4 instead.");

Loading…
Cancel
Save