diff --git a/src/Jackett.Common/Indexers/720pier.cs b/src/Jackett.Common/Indexers/720pier.cs index e06525237..689fbc5f6 100644 --- a/src/Jackett.Common/Indexers/720pier.cs +++ b/src/Jackett.Common/Indexers/720pier.cs @@ -1,3 +1,9 @@ +using System; +using System.Collections.Generic; +using System.Collections.Specialized; +using System.Linq; +using System.Text; +using System.Threading.Tasks; using AngleSharp.Html.Parser; using Jackett.Common.Models; using Jackett.Common.Models.IndexerConfig; @@ -6,12 +12,6 @@ using Jackett.Common.Utils; using Jackett.Common.Utils.Clients; using Newtonsoft.Json.Linq; using NLog; -using System; -using System.Collections.Generic; -using System.Collections.Specialized; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace Jackett.Common.Indexers { diff --git a/src/Jackett.Common/Indexers/AlphaRatio.cs b/src/Jackett.Common/Indexers/AlphaRatio.cs index 6945fe3e1..bcfbb43e6 100644 --- a/src/Jackett.Common/Indexers/AlphaRatio.cs +++ b/src/Jackett.Common/Indexers/AlphaRatio.cs @@ -1,7 +1,6 @@ using Jackett.Common.Indexers.Abstract; using Jackett.Common.Models; using Jackett.Common.Services.Interfaces; -using Jackett.Common.Utils.Clients; using NLog; namespace Jackett.Common.Indexers diff --git a/src/Jackett.Common/Indexers/AniDub.cs b/src/Jackett.Common/Indexers/AniDub.cs index abaa25957..6f723d6a8 100644 --- a/src/Jackett.Common/Indexers/AniDub.cs +++ b/src/Jackett.Common/Indexers/AniDub.cs @@ -1,3 +1,10 @@ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Linq; +using System.Text; +using System.Text.RegularExpressions; +using System.Threading.Tasks; using AngleSharp.Dom; using AngleSharp.Html.Parser; using Jackett.Common.Models; @@ -8,13 +15,6 @@ using Jackett.Common.Utils.Clients; using Microsoft.AspNetCore.WebUtilities; using Newtonsoft.Json.Linq; using NLog; -using System; -using System.Collections.Generic; -using System.Globalization; -using System.Linq; -using System.Text; -using System.Text.RegularExpressions; -using System.Threading.Tasks; namespace Jackett.Common.Indexers { diff --git a/src/Jackett.Common/Indexers/Anthelion.cs b/src/Jackett.Common/Indexers/Anthelion.cs index c5df3841c..8ede016ba 100644 --- a/src/Jackett.Common/Indexers/Anthelion.cs +++ b/src/Jackett.Common/Indexers/Anthelion.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using Jackett.Common.Indexers.Abstract; using Jackett.Common.Models; using Jackett.Common.Services.Interfaces; diff --git a/src/Jackett.Common/Indexers/BaseIndexer.cs b/src/Jackett.Common/Indexers/BaseIndexer.cs index ec02b9004..e46fbfeda 100644 --- a/src/Jackett.Common/Indexers/BaseIndexer.cs +++ b/src/Jackett.Common/Indexers/BaseIndexer.cs @@ -1,3 +1,8 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; using AutoMapper; using Jackett.Common.Models; using Jackett.Common.Models.IndexerConfig; @@ -7,11 +12,6 @@ using Jackett.Common.Utils.Clients; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using NLog; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using static Jackett.Common.Models.IndexerConfig.ConfigurationData; namespace Jackett.Common.Indexers diff --git a/src/Jackett.Common/Indexers/CardigannIndexer.cs b/src/Jackett.Common/Indexers/CardigannIndexer.cs index 7503ef4b6..b1e791d9e 100644 --- a/src/Jackett.Common/Indexers/CardigannIndexer.cs +++ b/src/Jackett.Common/Indexers/CardigannIndexer.cs @@ -13,13 +13,13 @@ using AngleSharp.Html.Parser; using Jackett.Common.Helpers; using Jackett.Common.Models; using Jackett.Common.Models.IndexerConfig; -using static Jackett.Common.Models.IndexerConfig.ConfigurationData; using Jackett.Common.Services.Interfaces; using Jackett.Common.Utils; using Jackett.Common.Utils.Clients; using Microsoft.AspNetCore.WebUtilities; using Newtonsoft.Json.Linq; using NLog; +using static Jackett.Common.Models.IndexerConfig.ConfigurationData; namespace Jackett.Common.Indexers { diff --git a/src/Jackett.Common/Indexers/DivxTotal.cs b/src/Jackett.Common/Indexers/DivxTotal.cs index 670d11f5e..12aec66b2 100644 --- a/src/Jackett.Common/Indexers/DivxTotal.cs +++ b/src/Jackett.Common/Indexers/DivxTotal.cs @@ -9,15 +9,14 @@ using System.Text.RegularExpressions; using System.Threading.Tasks; using AngleSharp.Dom; using AngleSharp.Html.Parser; - using Jackett.Common.Models; using Jackett.Common.Models.IndexerConfig; using Jackett.Common.Services.Interfaces; using Jackett.Common.Utils; using Newtonsoft.Json.Linq; using NLog; -using WebClient = Jackett.Common.Utils.Clients.WebClient; using static Jackett.Common.Models.IndexerConfig.ConfigurationData; +using WebClient = Jackett.Common.Utils.Clients.WebClient; namespace Jackett.Common.Indexers { diff --git a/src/Jackett.Common/Indexers/EliteTracker.cs b/src/Jackett.Common/Indexers/EliteTracker.cs index 4d5442431..94ea3274a 100644 --- a/src/Jackett.Common/Indexers/EliteTracker.cs +++ b/src/Jackett.Common/Indexers/EliteTracker.cs @@ -6,9 +6,8 @@ using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using AngleSharp.Html.Parser; -using Jackett.Common.Models.IndexerConfig.Bespoke; using Jackett.Common.Models; -using Jackett.Common.Models.IndexerConfig; +using Jackett.Common.Models.IndexerConfig.Bespoke; using Jackett.Common.Services.Interfaces; using Jackett.Common.Utils; using Jackett.Common.Utils.Clients; diff --git a/src/Jackett.Common/Indexers/HDBitsApi.cs b/src/Jackett.Common/Indexers/HDBitsApi.cs index 4d370cb4e..4d23f2ad2 100644 --- a/src/Jackett.Common/Indexers/HDBitsApi.cs +++ b/src/Jackett.Common/Indexers/HDBitsApi.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Collections.Specialized; using System.Linq; using System.Text; using System.Threading.Tasks; @@ -9,10 +8,8 @@ using Jackett.Common.Models.IndexerConfig; using Jackett.Common.Services.Interfaces; using Jackett.Common.Utils; using Jackett.Common.Utils.Clients; -using Newtonsoft.Json; using Newtonsoft.Json.Linq; using NLog; -using static Jackett.Common.Models.IndexerConfig.ConfigurationData; namespace Jackett.Common.Indexers { diff --git a/src/Jackett.Common/Indexers/HorribleSubs.cs b/src/Jackett.Common/Indexers/HorribleSubs.cs index 02b053617..94ce84b28 100644 --- a/src/Jackett.Common/Indexers/HorribleSubs.cs +++ b/src/Jackett.Common/Indexers/HorribleSubs.cs @@ -4,7 +4,9 @@ using System.Collections.Specialized; using System.Globalization; using System.Linq; using System.Text; +using System.Text.RegularExpressions; using System.Threading.Tasks; +using AngleSharp.Html.Parser; using Jackett.Common.Models; using Jackett.Common.Models.IndexerConfig; using Jackett.Common.Services.Interfaces; @@ -12,8 +14,6 @@ using Jackett.Common.Utils; using Jackett.Common.Utils.Clients; using Newtonsoft.Json.Linq; using NLog; -using System.Text.RegularExpressions; -using AngleSharp.Html.Parser; namespace Jackett.Common.Indexers { diff --git a/src/Jackett.Common/Indexers/InternetArchive.cs b/src/Jackett.Common/Indexers/InternetArchive.cs index 95f9dcc67..f8bedd95e 100644 --- a/src/Jackett.Common/Indexers/InternetArchive.cs +++ b/src/Jackett.Common/Indexers/InternetArchive.cs @@ -13,8 +13,8 @@ using Jackett.Common.Utils.Clients; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using NLog; -using WebClient = Jackett.Common.Utils.Clients.WebClient; using static Jackett.Common.Models.IndexerConfig.ConfigurationData; +using WebClient = Jackett.Common.Utils.Clients.WebClient; namespace Jackett.Common.Indexers { diff --git a/src/Jackett.Common/Indexers/MejorTorrent.cs b/src/Jackett.Common/Indexers/MejorTorrent.cs index eb5e7c1d0..27b4bfdd6 100644 --- a/src/Jackett.Common/Indexers/MejorTorrent.cs +++ b/src/Jackett.Common/Indexers/MejorTorrent.cs @@ -8,15 +8,14 @@ using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using AngleSharp.Html.Parser; - using Jackett.Common.Models; using Jackett.Common.Models.IndexerConfig; using Jackett.Common.Services.Interfaces; using Jackett.Common.Utils; using Newtonsoft.Json.Linq; using NLog; -using WebClient = Jackett.Common.Utils.Clients.WebClient; using static Jackett.Common.Models.IndexerConfig.ConfigurationData; +using WebClient = Jackett.Common.Utils.Clients.WebClient; namespace Jackett.Common.Indexers { diff --git a/src/Jackett.Common/Indexers/Newpct.cs b/src/Jackett.Common/Indexers/Newpct.cs index fe13d8192..822c2b5f4 100644 --- a/src/Jackett.Common/Indexers/Newpct.cs +++ b/src/Jackett.Common/Indexers/Newpct.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Collections.Specialized; using System.Globalization; using System.Linq; using System.Text; @@ -12,7 +11,6 @@ using Jackett.Common.Models.IndexerConfig; using Jackett.Common.Services.Interfaces; using Jackett.Common.Utils; using Jackett.Common.Utils.Clients; -using Newtonsoft.Json; using Newtonsoft.Json.Linq; using NLog; using static Jackett.Common.Models.IndexerConfig.ConfigurationData; diff --git a/src/Jackett.Common/Indexers/Nordicbits.cs b/src/Jackett.Common/Indexers/Nordicbits.cs index 604a4f364..4eb307779 100644 --- a/src/Jackett.Common/Indexers/Nordicbits.cs +++ b/src/Jackett.Common/Indexers/Nordicbits.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; -using System.Globalization; using System.IO; using System.Linq; using System.Reflection; diff --git a/src/Jackett.Common/Indexers/Partis.cs b/src/Jackett.Common/Indexers/Partis.cs index 1c4932770..bf7e8ead2 100644 --- a/src/Jackett.Common/Indexers/Partis.cs +++ b/src/Jackett.Common/Indexers/Partis.cs @@ -1,3 +1,9 @@ +using System; +using System.Collections.Generic; +using System.Collections.Specialized; +using System.Globalization; +using System.Text; +using System.Threading.Tasks; using AngleSharp.Html.Parser; using CsQuery; using Jackett.Common.Models; @@ -7,12 +13,6 @@ using Jackett.Common.Utils; using Jackett.Common.Utils.Clients; using Newtonsoft.Json.Linq; using NLog; -using System; -using System.Collections.Generic; -using System.Collections.Specialized; -using System.Globalization; -using System.Text; -using System.Threading.Tasks; namespace Jackett.Common.Indexers { diff --git a/src/Jackett.Common/Indexers/Psytorrents.cs b/src/Jackett.Common/Indexers/Psytorrents.cs index 5056766c5..837d33268 100644 --- a/src/Jackett.Common/Indexers/Psytorrents.cs +++ b/src/Jackett.Common/Indexers/Psytorrents.cs @@ -1,9 +1,9 @@ +using System; using Jackett.Common.Indexers.Abstract; using Jackett.Common.Models; using Jackett.Common.Services.Interfaces; using Jackett.Common.Utils.Clients; using NLog; -using System; namespace Jackett.Common.Indexers { diff --git a/src/Jackett.Common/Indexers/Torrentscsv.cs b/src/Jackett.Common/Indexers/Torrentscsv.cs index 9c4e23be5..0527a32f7 100644 --- a/src/Jackett.Common/Indexers/Torrentscsv.cs +++ b/src/Jackett.Common/Indexers/Torrentscsv.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; -using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; diff --git a/src/Jackett.Common/Indexers/XSpeeds.cs b/src/Jackett.Common/Indexers/XSpeeds.cs index 8c3ba3a12..8d87f12a1 100644 --- a/src/Jackett.Common/Indexers/XSpeeds.cs +++ b/src/Jackett.Common/Indexers/XSpeeds.cs @@ -14,7 +14,6 @@ using Jackett.Common.Utils.Clients; using Newtonsoft.Json.Linq; using NLog; using static Jackett.Common.Models.IndexerConfig.ConfigurationData; -using static Jackett.Common.Utils.ParseUtil; namespace Jackett.Common.Indexers { diff --git a/src/Jackett.Common/Indexers/toloka.cs b/src/Jackett.Common/Indexers/toloka.cs index b4bf1ddd4..d486e9470 100644 --- a/src/Jackett.Common/Indexers/toloka.cs +++ b/src/Jackett.Common/Indexers/toloka.cs @@ -6,7 +6,6 @@ using System.Text.RegularExpressions; using System.Threading.Tasks; using AngleSharp.Html.Parser; using Jackett.Common.Models; -using Jackett.Common.Models.IndexerConfig; using Jackett.Common.Models.IndexerConfig.Bespoke; using Jackett.Common.Services.Interfaces; using Jackett.Common.Utils; diff --git a/src/Jackett.Common/Models/Config/ConsoleOptions.cs b/src/Jackett.Common/Models/Config/ConsoleOptions.cs index 0332ef84f..02269ff4c 100644 --- a/src/Jackett.Common/Models/Config/ConsoleOptions.cs +++ b/src/Jackett.Common/Models/Config/ConsoleOptions.cs @@ -1,5 +1,5 @@ -using CommandLine; using System; +using CommandLine; namespace Jackett.Common.Models.Config { diff --git a/src/Jackett.Common/Plumbing/JackettModule.cs b/src/Jackett.Common/Plumbing/JackettModule.cs index 773b10b8b..e83c41897 100644 --- a/src/Jackett.Common/Plumbing/JackettModule.cs +++ b/src/Jackett.Common/Plumbing/JackettModule.cs @@ -1,14 +1,11 @@ -using Autofac; using System; using System.Reflection; -using System.IO; -using Newtonsoft.Json.Linq; +using Autofac; using Jackett.Common.Indexers; using Jackett.Common.Indexers.Meta; using Jackett.Common.Models.Config; using Jackett.Common.Services; using Jackett.Common.Services.Interfaces; -using Jackett.Common.Utils; using Jackett.Common.Utils.Clients; namespace Jackett.Common.Plumbing diff --git a/src/Jackett.Common/Services/Interfaces/IConfigurationService.cs b/src/Jackett.Common/Services/Interfaces/IConfigurationService.cs index e3153f555..0be3523c8 100644 --- a/src/Jackett.Common/Services/Interfaces/IConfigurationService.cs +++ b/src/Jackett.Common/Services/Interfaces/IConfigurationService.cs @@ -1,5 +1,5 @@ -using Jackett.Common.Models.Config; using System.Collections.Generic; +using Jackett.Common.Models.Config; namespace Jackett.Common.Services.Interfaces { diff --git a/src/Jackett.Common/Services/WindowsServiceConfigService.cs b/src/Jackett.Common/Services/WindowsServiceConfigService.cs index 89aeca717..02f791954 100644 --- a/src/Jackett.Common/Services/WindowsServiceConfigService.cs +++ b/src/Jackett.Common/Services/WindowsServiceConfigService.cs @@ -1,11 +1,11 @@ -using Jackett.Common.Services.Interfaces; -using NLog; using System; using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; using System.ServiceProcess; +using Jackett.Common.Services.Interfaces; +using NLog; namespace Jackett.Common.Services { diff --git a/src/Jackett.Common/Utils/Clients/HttpWebClient.cs b/src/Jackett.Common/Utils/Clients/HttpWebClient.cs index 951638763..9c71ba743 100644 --- a/src/Jackett.Common/Utils/Clients/HttpWebClient.cs +++ b/src/Jackett.Common/Utils/Clients/HttpWebClient.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics; using System.Linq; using System.Net; using System.Net.Http; @@ -7,14 +8,13 @@ using System.Net.Security; using System.Security.Cryptography.X509Certificates; using System.Text; using System.Threading.Tasks; +using CloudflareSolverRe; using com.LandonKey.SocksWebProxy; using com.LandonKey.SocksWebProxy.Proxy; -using CloudflareSolverRe; +using Jackett.Common.Helpers; using Jackett.Common.Models.Config; using Jackett.Common.Services.Interfaces; using NLog; -using Jackett.Common.Helpers; -using System.Diagnostics; namespace Jackett.Common.Utils.Clients { diff --git a/src/Jackett.Common/Utils/Clients/HttpWebClient2.cs b/src/Jackett.Common/Utils/Clients/HttpWebClient2.cs index 90da560eb..4c84382a5 100644 --- a/src/Jackett.Common/Utils/Clients/HttpWebClient2.cs +++ b/src/Jackett.Common/Utils/Clients/HttpWebClient2.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics; using System.Linq; using System.Net; using System.Net.Http; @@ -7,14 +8,13 @@ using System.Net.Security; using System.Security.Cryptography.X509Certificates; using System.Text; using System.Threading.Tasks; +using CloudflareSolverRe; using com.LandonKey.SocksWebProxy; using com.LandonKey.SocksWebProxy.Proxy; -using CloudflareSolverRe; +using Jackett.Common.Helpers; using Jackett.Common.Models.Config; using Jackett.Common.Services.Interfaces; using NLog; -using Jackett.Common.Helpers; -using System.Diagnostics; namespace Jackett.Common.Utils.Clients { diff --git a/src/Jackett.Common/Utils/Clients/HttpWebClient2NetCore.cs b/src/Jackett.Common/Utils/Clients/HttpWebClient2NetCore.cs index cc1d5b733..d2908fc6f 100644 --- a/src/Jackett.Common/Utils/Clients/HttpWebClient2NetCore.cs +++ b/src/Jackett.Common/Utils/Clients/HttpWebClient2NetCore.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics; using System.Linq; using System.Net; using System.Net.Http; @@ -7,14 +8,13 @@ using System.Net.Security; using System.Security.Cryptography.X509Certificates; using System.Text; using System.Threading.Tasks; +using CloudflareSolverRe; using com.LandonKey.SocksWebProxy; using com.LandonKey.SocksWebProxy.Proxy; -using CloudflareSolverRe; +using Jackett.Common.Helpers; using Jackett.Common.Models.Config; using Jackett.Common.Services.Interfaces; using NLog; -using Jackett.Common.Helpers; -using System.Diagnostics; namespace Jackett.Common.Utils.Clients { diff --git a/src/Jackett.Common/Utils/Clients/HttpWebClientNetCore.cs b/src/Jackett.Common/Utils/Clients/HttpWebClientNetCore.cs index c7ab25fd3..d8097ee42 100644 --- a/src/Jackett.Common/Utils/Clients/HttpWebClientNetCore.cs +++ b/src/Jackett.Common/Utils/Clients/HttpWebClientNetCore.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics; using System.Linq; using System.Net; using System.Net.Http; @@ -7,14 +8,13 @@ using System.Net.Security; using System.Security.Cryptography.X509Certificates; using System.Text; using System.Threading.Tasks; +using CloudflareSolverRe; using com.LandonKey.SocksWebProxy; using com.LandonKey.SocksWebProxy.Proxy; -using CloudflareSolverRe; +using Jackett.Common.Helpers; using Jackett.Common.Models.Config; using Jackett.Common.Services.Interfaces; using NLog; -using Jackett.Common.Helpers; -using System.Diagnostics; namespace Jackett.Common.Utils.Clients { diff --git a/src/Jackett.Common/Utils/EnvironmentUtil.cs b/src/Jackett.Common/Utils/EnvironmentUtil.cs index 2da0c85a5..a63a80073 100644 --- a/src/Jackett.Common/Utils/EnvironmentUtil.cs +++ b/src/Jackett.Common/Utils/EnvironmentUtil.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.Linq; using System.Reflection; namespace Jackett.Common.Utils diff --git a/src/Jackett.Common/Utils/LoggingSetup.cs b/src/Jackett.Common/Utils/LoggingSetup.cs index 0505fb152..a99c91147 100644 --- a/src/Jackett.Common/Utils/LoggingSetup.cs +++ b/src/Jackett.Common/Utils/LoggingSetup.cs @@ -1,12 +1,12 @@ +using System; +using System.IO; +using System.Text; using Jackett.Common.Models.Config; using Jackett.Common.Services; using NLog; using NLog.Config; using NLog.LayoutRenderers; using NLog.Targets; -using System; -using System.IO; -using System.Text; namespace Jackett.Common.Utils { diff --git a/src/Jackett.Common/Utils/StringUtil.cs b/src/Jackett.Common/Utils/StringUtil.cs index 5c5df9df1..0259728cb 100644 --- a/src/Jackett.Common/Utils/StringUtil.cs +++ b/src/Jackett.Common/Utils/StringUtil.cs @@ -4,7 +4,6 @@ using System.Collections.Specialized; using System.Globalization; using System.IO; using System.Linq; -using System.Net.Http; using System.Security.Cryptography; using System.Text; using System.Text.RegularExpressions; diff --git a/src/Jackett.IntegrationTests/WebDriverFactory.cs b/src/Jackett.IntegrationTests/WebDriverFactory.cs index 424d4e9cb..b3f2287f4 100644 --- a/src/Jackett.IntegrationTests/WebDriverFactory.cs +++ b/src/Jackett.IntegrationTests/WebDriverFactory.cs @@ -1,9 +1,9 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +using System; using OpenQA.Selenium; using OpenQA.Selenium.Chrome; -using System; namespace Jackett.IntegrationTests { diff --git a/src/Jackett.Server/Controllers/BlackholeController.cs b/src/Jackett.Server/Controllers/BlackholeController.cs index 7f58d481a..4e243f5c8 100644 --- a/src/Jackett.Server/Controllers/BlackholeController.cs +++ b/src/Jackett.Server/Controllers/BlackholeController.cs @@ -1,4 +1,8 @@ -using Jackett.Common.Models.Config; +using System; +using System.IO; +using System.Text; +using System.Threading.Tasks; +using Jackett.Common.Models.Config; using Jackett.Common.Services.Interfaces; using Jackett.Common.Utils; using Microsoft.AspNetCore.Authorization; @@ -6,10 +10,6 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.WebUtilities; using Newtonsoft.Json.Linq; using NLog; -using System; -using System.IO; -using System.Text; -using System.Threading.Tasks; namespace Jackett.Server.Controllers { diff --git a/src/Jackett.Server/Controllers/DownloadController.cs b/src/Jackett.Server/Controllers/DownloadController.cs index 00294c811..97ed3d140 100644 --- a/src/Jackett.Server/Controllers/DownloadController.cs +++ b/src/Jackett.Server/Controllers/DownloadController.cs @@ -1,16 +1,16 @@ -using BencodeNET.Objects; +using System; +using System.Text; +using System.Threading.Tasks; +using BencodeNET.Objects; using BencodeNET.Parsing; using Jackett.Common.Models.Config; using Jackett.Common.Services.Interfaces; using Jackett.Common.Utils; +using Jackett.Server.ActionFilters; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.WebUtilities; using NLog; -using System; -using System.Text; -using System.Threading.Tasks; -using Jackett.Server.ActionFilters; namespace Jackett.Server.Controllers { diff --git a/src/Jackett.Server/Controllers/IndexerApiController.cs b/src/Jackett.Server/Controllers/IndexerApiController.cs index 404c8d70a..cee58c577 100644 --- a/src/Jackett.Server/Controllers/IndexerApiController.cs +++ b/src/Jackett.Server/Controllers/IndexerApiController.cs @@ -1,4 +1,8 @@ -using Jackett.Common.Indexers; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Jackett.Common.Indexers; using Jackett.Common.Models; using Jackett.Common.Services.Interfaces; using Jackett.Common.Utils; @@ -7,10 +11,6 @@ using Microsoft.AspNetCore.Mvc.Filters; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using NLog; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; namespace Jackett.Server.Controllers { diff --git a/src/Jackett.Server/Controllers/ResultsController.cs b/src/Jackett.Server/Controllers/ResultsController.cs index eadc821f3..612314c74 100644 --- a/src/Jackett.Server/Controllers/ResultsController.cs +++ b/src/Jackett.Server/Controllers/ResultsController.cs @@ -1,4 +1,12 @@ -using Jackett.Common; +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Net; +using System.Text; +using System.Threading.Tasks; +using System.Xml.Linq; +using Jackett.Common; using Jackett.Common.Indexers; using Jackett.Common.Indexers.Meta; using Jackett.Common.Models; @@ -10,14 +18,6 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.AspNetCore.Routing; using NLog; -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Linq; -using System.Net; -using System.Text; -using System.Threading.Tasks; -using System.Xml.Linq; namespace Jackett.Server.Controllers { diff --git a/src/Jackett.Server/Controllers/ServerConfigurationController.cs b/src/Jackett.Server/Controllers/ServerConfigurationController.cs index 81a4e2a5f..212b17094 100644 --- a/src/Jackett.Server/Controllers/ServerConfigurationController.cs +++ b/src/Jackett.Server/Controllers/ServerConfigurationController.cs @@ -1,14 +1,14 @@ -using Jackett.Common.Models; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using Jackett.Common.Models; using Jackett.Common.Models.Config; using Jackett.Common.Services.Interfaces; using Jackett.Common.Utils; using Microsoft.AspNetCore.Mvc; using NLog; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading; namespace Jackett.Server.Controllers { diff --git a/src/Jackett.Server/Controllers/UIController.cs b/src/Jackett.Server/Controllers/UIController.cs index 0f296bbc1..8bd8575ad 100644 --- a/src/Jackett.Server/Controllers/UIController.cs +++ b/src/Jackett.Server/Controllers/UIController.cs @@ -1,15 +1,15 @@ -using Jackett.Common.Models.Config; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Security.Claims; +using System.Threading.Tasks; +using Jackett.Common.Models.Config; using Jackett.Common.Services.Interfaces; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using NLog; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Security.Claims; -using System.Threading.Tasks; namespace Jackett.Server.Controllers { diff --git a/src/Jackett.Server/Helper.cs b/src/Jackett.Server/Helper.cs index 6cc75bbca..1b2798b05 100644 --- a/src/Jackett.Server/Helper.cs +++ b/src/Jackett.Server/Helper.cs @@ -1,4 +1,6 @@ -using Autofac; +using System.Linq; +using System.Text; +using Autofac; using AutoMapper; using Jackett.Common.Models; using Jackett.Common.Models.Config; @@ -6,8 +8,6 @@ using Jackett.Common.Services.Interfaces; using Jackett.Common.Utils.Clients; using Microsoft.AspNetCore.Hosting; using NLog; -using System.Linq; -using System.Text; #if !NET461 using Microsoft.Extensions.Hosting; #endif diff --git a/src/Jackett.Server/Initialisation.cs b/src/Jackett.Server/Initialisation.cs index ae6ea185e..fc0a4b10b 100644 --- a/src/Jackett.Server/Initialisation.cs +++ b/src/Jackett.Server/Initialisation.cs @@ -1,9 +1,9 @@ -using Jackett.Common.Models.Config; +using System; +using Jackett.Common.Models.Config; using Jackett.Common.Services.Interfaces; using Jackett.Common.Utils; using Jackett.Server.Services; using NLog; -using System; namespace Jackett.Server { diff --git a/src/Jackett.Server/Middleware/CustomExceptionHandler.cs b/src/Jackett.Server/Middleware/CustomExceptionHandler.cs index 1081985a1..f6a5fbb16 100644 --- a/src/Jackett.Server/Middleware/CustomExceptionHandler.cs +++ b/src/Jackett.Server/Middleware/CustomExceptionHandler.cs @@ -1,11 +1,8 @@ using System; -using System.Collections.Generic; -using System.Linq; using System.Threading.Tasks; using Jackett.Common; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; -using Newtonsoft.Json; using Newtonsoft.Json.Linq; using NLog; diff --git a/src/Jackett.Server/Middleware/RedirectRules.cs b/src/Jackett.Server/Middleware/RedirectRules.cs index 9cd94d609..198f04b92 100644 --- a/src/Jackett.Server/Middleware/RedirectRules.cs +++ b/src/Jackett.Server/Middleware/RedirectRules.cs @@ -1,7 +1,7 @@ -using Microsoft.AspNetCore.Http; +using System; +using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Rewrite; using Microsoft.Net.Http.Headers; -using System; namespace Jackett.Server.Middleware { diff --git a/src/Jackett.Server/Program.cs b/src/Jackett.Server/Program.cs index 79cd8b585..678f9f5be 100644 --- a/src/Jackett.Server/Program.cs +++ b/src/Jackett.Server/Program.cs @@ -1,4 +1,9 @@ -using CommandLine; +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.IO; +using System.Linq; +using CommandLine; using CommandLine.Text; using Jackett.Common.Models.Config; using Jackett.Common.Services; @@ -10,12 +15,6 @@ using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; using NLog; using NLog.Web; -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.IO; -using System.Linq; -using System.Runtime.InteropServices; namespace Jackett.Server { diff --git a/src/Jackett.Server/Services/FilePermissionService.cs b/src/Jackett.Server/Services/FilePermissionService.cs index 7cf9884fc..56f78f1ca 100644 --- a/src/Jackett.Server/Services/FilePermissionService.cs +++ b/src/Jackett.Server/Services/FilePermissionService.cs @@ -1,6 +1,6 @@ -using Jackett.Common.Services.Interfaces; +using System; +using Jackett.Common.Services.Interfaces; using NLog; -using System; #if !NET461 using Mono.Unix; #endif diff --git a/src/Jackett.Server/Services/ServerService.cs b/src/Jackett.Server/Services/ServerService.cs index d74ecf6f8..0085dcbcb 100644 --- a/src/Jackett.Server/Services/ServerService.cs +++ b/src/Jackett.Server/Services/ServerService.cs @@ -1,10 +1,4 @@ -using Jackett.Common.Models.Config; -using Jackett.Common.Services.Interfaces; -using Jackett.Common.Utils; -using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.WebUtilities; -using NLog; -using System; +using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; @@ -17,6 +11,12 @@ using System.Runtime.InteropServices; using System.Text; using System.Text.RegularExpressions; using System.Threading; +using Jackett.Common.Models.Config; +using Jackett.Common.Services.Interfaces; +using Jackett.Common.Utils; +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.WebUtilities; +using NLog; namespace Jackett.Server.Services { diff --git a/src/Jackett.Server/Services/ServiceConfigService.cs b/src/Jackett.Server/Services/ServiceConfigService.cs index 75e65369e..2d8e9c7f0 100644 --- a/src/Jackett.Server/Services/ServiceConfigService.cs +++ b/src/Jackett.Server/Services/ServiceConfigService.cs @@ -1,12 +1,12 @@ -using NLog; -using System; +using System; using System.Diagnostics; using System.IO; using System.Linq; -using System.ServiceProcess; -using Jackett.Common.Services.Interfaces; using System.Reflection; +using System.ServiceProcess; using Jackett.Common.Services; +using Jackett.Common.Services.Interfaces; +using NLog; namespace Jackett.Server.Services { diff --git a/src/Jackett.Server/Startup.cs b/src/Jackett.Server/Startup.cs index a85292a81..2ed49de21 100644 --- a/src/Jackett.Server/Startup.cs +++ b/src/Jackett.Server/Startup.cs @@ -1,4 +1,7 @@ -using Autofac; +using System; +using System.IO; +using System.Text; +using Autofac; using Autofac.Extensions.DependencyInjection; using Jackett.Common.Models.Config; using Jackett.Common.Plumbing; @@ -12,15 +15,11 @@ using Microsoft.AspNetCore.DataProtection; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.HttpOverrides; -using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Authorization; using Microsoft.AspNetCore.Rewrite; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Newtonsoft.Json.Serialization; -using System; -using System.IO; -using System.Text; #if !NET461 using Microsoft.Extensions.Hosting; #endif diff --git a/src/Jackett.Service/Service.cs b/src/Jackett.Service/Service.cs index 7fdd7fd22..6c27c6e97 100644 --- a/src/Jackett.Service/Service.cs +++ b/src/Jackett.Service/Service.cs @@ -1,13 +1,13 @@ -using Jackett.Common.Models.Config; -using Jackett.Common.Services; -using Jackett.Common.Services.Interfaces; -using Jackett.Common.Utils; -using NLog; -using System; +using System; using System.Diagnostics; using System.IO; using System.Reflection; using System.ServiceProcess; +using Jackett.Common.Models.Config; +using Jackett.Common.Services; +using Jackett.Common.Services.Interfaces; +using Jackett.Common.Utils; +using NLog; namespace Jackett.Service { diff --git a/src/Jackett.Test/Services/ProtectionServiceTests.cs b/src/Jackett.Test/Services/ProtectionServiceTests.cs index 6b75ca799..877af4b48 100644 --- a/src/Jackett.Test/Services/ProtectionServiceTests.cs +++ b/src/Jackett.Test/Services/ProtectionServiceTests.cs @@ -1,7 +1,7 @@ -using NUnit.Framework; -using Autofac; +using Autofac; using Jackett.Common.Models.Config; using Jackett.Common.Services.Interfaces; +using NUnit.Framework; namespace Jackett.Test.Services { diff --git a/src/Jackett.Test/TestUtil.cs b/src/Jackett.Test/TestUtil.cs index 56a30f840..0050810d1 100644 --- a/src/Jackett.Test/TestUtil.cs +++ b/src/Jackett.Test/TestUtil.cs @@ -1,13 +1,13 @@ -using Autofac; -using NLog; -using System; +using System; using System.IO; using System.Reflection; -using Jackett.Common.Plumbing; +using Autofac; using Jackett.Common.Models.Config; +using Jackett.Common.Plumbing; using Jackett.Common.Services.Interfaces; using Jackett.Common.Utils.Clients; using Microsoft.AspNetCore.DataProtection; +using NLog; namespace Jackett.Test { diff --git a/src/Jackett.Test/TestWebClient.cs b/src/Jackett.Test/TestWebClient.cs index 432e5c84d..7b41d07d4 100644 --- a/src/Jackett.Test/TestWebClient.cs +++ b/src/Jackett.Test/TestWebClient.cs @@ -1,11 +1,11 @@ -using Jackett.Common.Models.Config; -using Jackett.Common.Services.Interfaces; -using Jackett.Common.Utils.Clients; -using NLog; -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; +using Jackett.Common.Models.Config; +using Jackett.Common.Services.Interfaces; +using Jackett.Common.Utils.Clients; +using NLog; namespace Jackett.Test { diff --git a/src/Jackett.Test/WebUtilityHelpersTests.cs b/src/Jackett.Test/WebUtilityHelpersTests.cs index d967109fd..d9b299bad 100644 --- a/src/Jackett.Test/WebUtilityHelpersTests.cs +++ b/src/Jackett.Test/WebUtilityHelpersTests.cs @@ -1,5 +1,4 @@ -using System; -using System.Text; +using System.Text; using System.Web; using Jackett.Common.Helpers; using Microsoft.VisualStudio.TestTools.UnitTesting; diff --git a/src/Jackett.Tray/Main.cs b/src/Jackett.Tray/Main.cs index abdc98927..90addf7fc 100644 --- a/src/Jackett.Tray/Main.cs +++ b/src/Jackett.Tray/Main.cs @@ -1,8 +1,3 @@ -using Jackett.Common.Models.Config; -using Jackett.Common.Services; -using Jackett.Common.Services.Interfaces; -using Jackett.Common.Utils; -using NLog; using System; using System.ComponentModel; using System.Diagnostics; @@ -10,6 +5,11 @@ using System.IO; using System.Reflection; using System.Threading.Tasks; using System.Windows.Forms; +using Jackett.Common.Models.Config; +using Jackett.Common.Services; +using Jackett.Common.Services.Interfaces; +using Jackett.Common.Utils; +using NLog; namespace Jackett.Tray { diff --git a/src/Jackett.Tray/Program.cs b/src/Jackett.Tray/Program.cs index f2d67e145..ece4358c7 100644 --- a/src/Jackett.Tray/Program.cs +++ b/src/Jackett.Tray/Program.cs @@ -1,8 +1,8 @@ -using CommandLine; -using System; +using System; using System.Diagnostics; using System.Linq; using System.Windows.Forms; +using CommandLine; namespace Jackett.Tray { diff --git a/src/Jackett.Updater/Program.cs b/src/Jackett.Updater/Program.cs index 42ceb71f8..49189e5b6 100644 --- a/src/Jackett.Updater/Program.cs +++ b/src/Jackett.Updater/Program.cs @@ -1,17 +1,16 @@ -using CommandLine; +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.IO; +using System.Linq; +using System.Reflection; +using CommandLine; using CommandLine.Text; using Jackett.Common.Models.Config; using Jackett.Common.Services; using Jackett.Common.Services.Interfaces; using Jackett.Common.Utils; using NLog; -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.IO; -using System.Linq; -using System.Net; -using System.Reflection; namespace Jackett.Updater {