refactor: Make JetBrains.Annotation a global using

Explicit using statements removed in whole solution.
pull/311/head
Robert Dailey 3 months ago
parent 11f7c7ed02
commit 4ab0e67a7e

@ -12,6 +12,10 @@
<!--<DisableGitVersionTask>true</DisableGitVersionTask>-->
</PropertyGroup>
<ItemGroup>
<Using Include="JetBrains.Annotations" />
</ItemGroup>
<!--
To prevent System.Reactive.xml (and other XML docs) from being in the publish dir.
See: https://github.com/dotnet/reactive/issues/1066#issuecomment-548941146

@ -1,5 +1,4 @@
using System.Text.Json.Serialization;
using JetBrains.Annotations;
namespace Recyclarr.Cache;

@ -1,5 +1,4 @@
using System.ComponentModel;
using JetBrains.Annotations;
using Spectre.Console.Cli;
namespace Recyclarr.Cli.Console.Commands;

@ -1,6 +1,5 @@
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using JetBrains.Annotations;
using Recyclarr.Cli.Console.Settings;
using Recyclarr.Cli.Processors.Config;
using Recyclarr.Repo;

@ -1,6 +1,5 @@
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using JetBrains.Annotations;
using Recyclarr.Cli.Processors.Config;
using Recyclarr.Config.Parsing.ErrorHandling;
using Recyclarr.Repo;

@ -1,6 +1,5 @@
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using JetBrains.Annotations;
using Recyclarr.Cli.Processors.Config;
using Recyclarr.Config.Parsing.ErrorHandling;
using Recyclarr.Repo;

@ -1,6 +1,5 @@
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using JetBrains.Annotations;
using Recyclarr.Cli.Console.Settings;
using Recyclarr.Cli.Processors;
using Recyclarr.Cli.Processors.Delete;

@ -1,6 +1,5 @@
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using JetBrains.Annotations;
using Recyclarr.Cli.Console.Helpers;
using Recyclarr.Cli.Console.Settings;
using Recyclarr.Cli.Pipelines.CustomFormat;

@ -1,6 +1,5 @@
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using JetBrains.Annotations;
using Recyclarr.Cli.Console.Helpers;
using Recyclarr.Cli.Pipelines.MediaNaming;
using Recyclarr.Repo;

@ -1,6 +1,5 @@
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using JetBrains.Annotations;
using Recyclarr.Cli.Console.Helpers;
using Recyclarr.Cli.Pipelines.QualitySize;
using Recyclarr.Repo;

@ -1,7 +1,6 @@
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Text;
using JetBrains.Annotations;
using Recyclarr.Cli.Migration;
using Spectre.Console;
using Spectre.Console.Cli;

@ -1,6 +1,5 @@
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using JetBrains.Annotations;
using Recyclarr.Cli.Console.Helpers;
using Recyclarr.Cli.Console.Settings;
using Recyclarr.Cli.Migration;

@ -1,5 +1,3 @@
using JetBrains.Annotations;
namespace Recyclarr.Cli.Console.Setup;
[UsedImplicitly]

@ -1,5 +1,4 @@
using System.IO.Abstractions;
using JetBrains.Annotations;
using Recyclarr.Common.Extensions;
using Recyclarr.Platform;
using Spectre.Console;

@ -1,5 +1,4 @@
using System.IO.Abstractions;
using JetBrains.Annotations;
using Recyclarr.Platform;
using Spectre.Console;

@ -1,5 +1,3 @@
using JetBrains.Annotations;
namespace Recyclarr.Cli.Pipelines.Generic;
[UsedImplicitly(ImplicitUseKindFlags.Assign, ImplicitUseTargetFlags.Members)]

@ -1,6 +1,5 @@
using System.Diagnostics.CodeAnalysis;
using Autofac;
using JetBrains.Annotations;
using Recyclarr.Cli.Console;
using Recyclarr.Cli.Console.Settings;
using Recyclarr.Config;

@ -1,7 +1,6 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
using System.Text.Json;
using JetBrains.Annotations;
using Recyclarr.Json;
namespace Recyclarr.Cli.Processors.ErrorHandling;

@ -1,5 +1,4 @@
using Autofac;
using JetBrains.Annotations;
using Recyclarr.Config.Models;
namespace Recyclarr.Config;

@ -1,4 +1,3 @@
using JetBrains.Annotations;
using Recyclarr.Platform;
using Recyclarr.Yaml;
using YamlDotNet.Serialization;

@ -1,4 +1,3 @@
using JetBrains.Annotations;
using Recyclarr.TrashGuide;
namespace Recyclarr.Config.Models;

@ -1,5 +1,4 @@
using System.IO.Abstractions;
using JetBrains.Annotations;
using Recyclarr.Config.Parsing.ErrorHandling;
using Recyclarr.Settings;
using Recyclarr.Yaml;

@ -1,4 +1,3 @@
using JetBrains.Annotations;
using Recyclarr.Common.FluentValidation;
namespace Recyclarr.Config.Parsing;

@ -1,5 +1,3 @@
using JetBrains.Annotations;
namespace Recyclarr.Config.Parsing;
[UsedImplicitly(ImplicitUseTargetFlags.WithMembers)]

@ -1,5 +1,3 @@
using JetBrains.Annotations;
namespace Recyclarr.Config.Parsing;
[UsedImplicitly(ImplicitUseTargetFlags.WithMembers)]

@ -1,5 +1,4 @@
using System.Diagnostics.CodeAnalysis;
using JetBrains.Annotations;
using Recyclarr.Config.Models;
using Recyclarr.Config.Parsing.PostProcessing.ConfigMerging;
using YamlDotNet.Serialization;

@ -1,5 +1,4 @@
using AutoMapper;
using JetBrains.Annotations;
using Recyclarr.Config.Models;
namespace Recyclarr.Config.Parsing;

@ -1,4 +1,3 @@
using JetBrains.Annotations;
using Recyclarr.Common.Extensions;
using Recyclarr.Yaml;
using YamlDotNet.Serialization;

@ -1,5 +1,4 @@
using System.Diagnostics.CodeAnalysis;
using JetBrains.Annotations;
namespace Recyclarr.Config.Parsing.PostProcessing.ConfigMerging;

@ -1,4 +1,3 @@
using JetBrains.Annotations;
using Recyclarr.Yaml;
using YamlDotNet.Serialization;

@ -1,5 +1,4 @@
using Flurl.Http;
using JetBrains.Annotations;
using Serilog;
namespace Recyclarr.Http;

@ -1,5 +1,4 @@
using System.Text.Json.Serialization;
using JetBrains.Annotations;
namespace Recyclarr.ServarrApi.MediaNaming;

@ -1,5 +1,4 @@
using System.Text.Json.Serialization;
using JetBrains.Annotations;
namespace Recyclarr.ServarrApi.MediaNaming;

@ -1,5 +1,3 @@
using JetBrains.Annotations;
namespace Recyclarr.ServarrApi.QualityDefinition;
[UsedImplicitly(ImplicitUseTargetFlags.WithMembers)]

@ -1,5 +1,4 @@
using System.Text.Json.Serialization;
using JetBrains.Annotations;
namespace Recyclarr.ServarrApi.QualityProfile;

@ -1,5 +1,3 @@
using JetBrains.Annotations;
namespace Recyclarr.Settings;
public record TrashRepository : IRepositorySettings

@ -1,6 +1,5 @@
using System.IO.Abstractions;
using System.Text.Json;
using JetBrains.Annotations;
using Recyclarr.Json;
using Recyclarr.Repo;

@ -1,4 +1,3 @@
using JetBrains.Annotations;
using Serilog.Core;
using Serilog.Events;

@ -1,4 +1,3 @@
using JetBrains.Annotations;
using Recyclarr.Cache;
namespace Recyclarr.Tests.Cache;

Loading…
Cancel
Save