diff --git a/src/Jackett.Common/Indexers/720pier.cs b/src/Jackett.Common/Indexers/720pier.cs index b75c4d869..2c99a2e62 100644 --- a/src/Jackett.Common/Indexers/720pier.cs +++ b/src/Jackett.Common/Indexers/720pier.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; @@ -15,6 +16,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class Pier720 : BaseWebIndexer { public Pier720(IIndexerConfigurationService configService, WebClient wc, Logger l, IProtectionService ps) : diff --git a/src/Jackett.Common/Indexers/Abnormal.cs b/src/Jackett.Common/Indexers/Abnormal.cs index e4911adcc..879bb2d88 100644 --- a/src/Jackett.Common/Indexers/Abnormal.cs +++ b/src/Jackett.Common/Indexers/Abnormal.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.IO; using System.Linq; @@ -27,6 +28,7 @@ namespace Jackett.Common.Indexers /// Provider for Abnormal Private French Tracker /// gazelle based but the ajax.php API seems to be broken (always returning failure) /// + [ExcludeFromCodeCoverage] public class Abnormal : BaseCachingWebIndexer { private string LoginUrl => SiteLink + "login.php"; diff --git a/src/Jackett.Common/Indexers/Abstract/AvistazTracker.cs b/src/Jackett.Common/Indexers/Abstract/AvistazTracker.cs index 7fc6618df..888eee18c 100644 --- a/src/Jackett.Common/Indexers/Abstract/AvistazTracker.cs +++ b/src/Jackett.Common/Indexers/Abstract/AvistazTracker.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using System.Text.RegularExpressions; @@ -17,6 +18,7 @@ using NLog; namespace Jackett.Common.Indexers.Abstract { + [ExcludeFromCodeCoverage] public abstract class AvistazTracker : BaseWebIndexer { private string LoginUrl => SiteLink + "auth/login"; diff --git a/src/Jackett.Common/Indexers/Abstract/CouchPotatoTracker.cs b/src/Jackett.Common/Indexers/Abstract/CouchPotatoTracker.cs index 9e201e112..3b056e1f9 100644 --- a/src/Jackett.Common/Indexers/Abstract/CouchPotatoTracker.cs +++ b/src/Jackett.Common/Indexers/Abstract/CouchPotatoTracker.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; using Jackett.Common.Models; using Jackett.Common.Models.IndexerConfig; @@ -12,6 +13,7 @@ using NLog; namespace Jackett.Common.Indexers.Abstract { + [ExcludeFromCodeCoverage] public abstract class CouchPotatoTracker : BaseWebIndexer { protected string endpoint; diff --git a/src/Jackett.Common/Indexers/Abstract/GazelleTracker.cs b/src/Jackett.Common/Indexers/Abstract/GazelleTracker.cs index 3025df2e0..9424323fb 100644 --- a/src/Jackett.Common/Indexers/Abstract/GazelleTracker.cs +++ b/src/Jackett.Common/Indexers/Abstract/GazelleTracker.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Net; @@ -17,6 +18,7 @@ using WebClient = Jackett.Common.Utils.Clients.WebClient; namespace Jackett.Common.Indexers.Abstract { + [ExcludeFromCodeCoverage] public abstract class GazelleTracker : BaseWebIndexer { protected string LoginUrl => SiteLink + "login.php"; diff --git a/src/Jackett.Common/Indexers/AlphaRatio.cs b/src/Jackett.Common/Indexers/AlphaRatio.cs index 38e4d911c..2dc3d582e 100644 --- a/src/Jackett.Common/Indexers/AlphaRatio.cs +++ b/src/Jackett.Common/Indexers/AlphaRatio.cs @@ -1,3 +1,4 @@ +using System.Diagnostics.CodeAnalysis; using Jackett.Common.Indexers.Abstract; using Jackett.Common.Models; using Jackett.Common.Services.Interfaces; @@ -6,6 +7,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class AlphaRatio : GazelleTracker { public AlphaRatio(IIndexerConfigurationService configService, WebClient wc, Logger l, IProtectionService ps) diff --git a/src/Jackett.Common/Indexers/AniDub.cs b/src/Jackett.Common/Indexers/AniDub.cs index 715875259..40b1b3835 100644 --- a/src/Jackett.Common/Indexers/AniDub.cs +++ b/src/Jackett.Common/Indexers/AniDub.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Text; @@ -18,6 +19,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] internal class AniDub : BaseWebIndexer { private static readonly Regex EpisodeInfoRegex = new Regex(@"\[(.*?)(?: \(.*?\))? из (.*?)\]$", RegexOptions.Compiled | RegexOptions.IgnoreCase); diff --git a/src/Jackett.Common/Indexers/Anidex.cs b/src/Jackett.Common/Indexers/Anidex.cs index 685317b23..dc4486152 100644 --- a/src/Jackett.Common/Indexers/Anidex.cs +++ b/src/Jackett.Common/Indexers/Anidex.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.IO; using System.Linq; @@ -19,6 +20,7 @@ using static Jackett.Common.Models.IndexerConfig.ConfigurationData; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class Anidex : BaseWebIndexer { public Anidex(IIndexerConfigurationService configService, Utils.Clients.WebClient wc, Logger l, IProtectionService ps) diff --git a/src/Jackett.Common/Indexers/AnimeBytes.cs b/src/Jackett.Common/Indexers/AnimeBytes.cs index 39d11806f..af8f29e6e 100644 --- a/src/Jackett.Common/Indexers/AnimeBytes.cs +++ b/src/Jackett.Common/Indexers/AnimeBytes.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Net; @@ -17,6 +18,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class AnimeBytes : BaseCachingWebIndexer { private string ScrapeUrl => SiteLink + "scrape.php"; diff --git a/src/Jackett.Common/Indexers/AnimeTorrents.cs b/src/Jackett.Common/Indexers/AnimeTorrents.cs index e274403a5..ef125db2c 100644 --- a/src/Jackett.Common/Indexers/AnimeTorrents.cs +++ b/src/Jackett.Common/Indexers/AnimeTorrents.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Text; @@ -18,6 +19,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class AnimeTorrents : BaseWebIndexer { private string LoginUrl => SiteLink + "login.php"; diff --git a/src/Jackett.Common/Indexers/Anthelion.cs b/src/Jackett.Common/Indexers/Anthelion.cs index 4e43f67cd..17bf3f42d 100644 --- a/src/Jackett.Common/Indexers/Anthelion.cs +++ b/src/Jackett.Common/Indexers/Anthelion.cs @@ -1,3 +1,4 @@ +using System.Diagnostics.CodeAnalysis; using Jackett.Common.Indexers.Abstract; using Jackett.Common.Models; using Jackett.Common.Services.Interfaces; @@ -6,6 +7,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class TehConnectionMe : GazelleTracker { public override string[] LegacySiteLinks { get; protected set; } = new string[] { diff --git a/src/Jackett.Common/Indexers/Avistaz.cs b/src/Jackett.Common/Indexers/Avistaz.cs index 865121e06..1fc187bdd 100644 --- a/src/Jackett.Common/Indexers/Avistaz.cs +++ b/src/Jackett.Common/Indexers/Avistaz.cs @@ -1,3 +1,4 @@ +using System.Diagnostics.CodeAnalysis; using Jackett.Common.Indexers.Abstract; using Jackett.Common.Models; using Jackett.Common.Services.Interfaces; @@ -6,6 +7,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class Avistaz : AvistazTracker { public Avistaz(IIndexerConfigurationService configService, WebClient wc, Logger l, IProtectionService ps) diff --git a/src/Jackett.Common/Indexers/AwesomeHD.cs b/src/Jackett.Common/Indexers/AwesomeHD.cs index b4f196b41..e625869b5 100644 --- a/src/Jackett.Common/Indexers/AwesomeHD.cs +++ b/src/Jackett.Common/Indexers/AwesomeHD.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using System.Text.RegularExpressions; @@ -15,6 +16,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class AwesomeHD : BaseWebIndexer { private string SearchUrl => SiteLink + "searchapi.php"; diff --git a/src/Jackett.Common/Indexers/BB.cs b/src/Jackett.Common/Indexers/BB.cs index ec6ced0d1..c25b628bc 100644 --- a/src/Jackett.Common/Indexers/BB.cs +++ b/src/Jackett.Common/Indexers/BB.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using System.Text.RegularExpressions; @@ -18,7 +19,7 @@ using NLog; namespace Jackett.Common.Indexers { // To comply with the rules for this tracker, only the acronym is used and no publicly displayed URLs to the site. - + [ExcludeFromCodeCoverage] public class BB : BaseWebIndexer { private string BaseUrl => StringUtil.FromBase64("aHR0cHM6Ly9iYWNvbmJpdHMub3JnLw=="); diff --git a/src/Jackett.Common/Indexers/BJShare.cs b/src/Jackett.Common/Indexers/BJShare.cs index 49c546f65..e2e7baa30 100644 --- a/src/Jackett.Common/Indexers/BJShare.cs +++ b/src/Jackett.Common/Indexers/BJShare.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Text; @@ -18,6 +19,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class BJShare : BaseWebIndexer { private string LoginUrl => SiteLink + "login.php"; diff --git a/src/Jackett.Common/Indexers/BakaBT.cs b/src/Jackett.Common/Indexers/BakaBT.cs index b8bb516dd..435feb2a8 100644 --- a/src/Jackett.Common/Indexers/BakaBT.cs +++ b/src/Jackett.Common/Indexers/BakaBT.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Net; @@ -16,6 +17,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class BakaBT : BaseWebIndexer { private string SearchUrl => SiteLink + "browse.php?only=0&hentai=1&incomplete=1&lossless=1&hd=1&multiaudio=1&bonus=1&reorder=1&q="; diff --git a/src/Jackett.Common/Indexers/BitCityReloaded.cs b/src/Jackett.Common/Indexers/BitCityReloaded.cs index a2291f42c..90dbdf449 100644 --- a/src/Jackett.Common/Indexers/BitCityReloaded.cs +++ b/src/Jackett.Common/Indexers/BitCityReloaded.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Text; using System.Threading.Tasks; @@ -16,6 +17,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class BitCityReloaded : BaseWebIndexer { private string LoginUrl => SiteLink + "login/index.php"; diff --git a/src/Jackett.Common/Indexers/BitHdtv.cs b/src/Jackett.Common/Indexers/BitHdtv.cs index b1ab86db3..f56b4cec2 100644 --- a/src/Jackett.Common/Indexers/BitHdtv.cs +++ b/src/Jackett.Common/Indexers/BitHdtv.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Text; @@ -17,6 +18,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class BitHdtv : BaseWebIndexer { private string LoginUrl => SiteLink + "login.php"; diff --git a/src/Jackett.Common/Indexers/BroadcastTheNet.cs b/src/Jackett.Common/Indexers/BroadcastTheNet.cs index b1fb78c41..b488cdd02 100644 --- a/src/Jackett.Common/Indexers/BroadcastTheNet.cs +++ b/src/Jackett.Common/Indexers/BroadcastTheNet.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using System.Text.RegularExpressions; @@ -15,6 +16,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class BroadcastTheNet : BaseWebIndexer { // Docs at http://apidocs.broadcasthe.net/docs.php diff --git a/src/Jackett.Common/Indexers/BrokenStones.cs b/src/Jackett.Common/Indexers/BrokenStones.cs index 92196689c..86fca129c 100644 --- a/src/Jackett.Common/Indexers/BrokenStones.cs +++ b/src/Jackett.Common/Indexers/BrokenStones.cs @@ -1,3 +1,4 @@ +using System.Diagnostics.CodeAnalysis; using Jackett.Common.Indexers.Abstract; using Jackett.Common.Models; using Jackett.Common.Services.Interfaces; @@ -6,6 +7,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class BrokenStones : GazelleTracker { public BrokenStones(IIndexerConfigurationService configService, WebClient wc, Logger l, IProtectionService ps) diff --git a/src/Jackett.Common/Indexers/Cinecalidad.cs b/src/Jackett.Common/Indexers/Cinecalidad.cs index f1607e6a4..7f69d8eed 100644 --- a/src/Jackett.Common/Indexers/Cinecalidad.cs +++ b/src/Jackett.Common/Indexers/Cinecalidad.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using System.Text.RegularExpressions; @@ -17,6 +18,7 @@ using WebClient = Jackett.Common.Utils.Clients.WebClient; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class Cinecalidad : BaseWebIndexer { private const int MaxItemsPerPage = 15; diff --git a/src/Jackett.Common/Indexers/CinemaZ.cs b/src/Jackett.Common/Indexers/CinemaZ.cs index b315b4239..ce7fcb89f 100644 --- a/src/Jackett.Common/Indexers/CinemaZ.cs +++ b/src/Jackett.Common/Indexers/CinemaZ.cs @@ -1,3 +1,4 @@ +using System.Diagnostics.CodeAnalysis; using Jackett.Common.Indexers.Abstract; using Jackett.Common.Models; using Jackett.Common.Services.Interfaces; @@ -6,6 +7,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class CinemaZ : AvistazTracker { public CinemaZ(IIndexerConfigurationService configService, WebClient wc, Logger l, IProtectionService ps) diff --git a/src/Jackett.Common/Indexers/Corsarored.cs b/src/Jackett.Common/Indexers/Corsarored.cs index 1fc5a4c39..69e074eb0 100644 --- a/src/Jackett.Common/Indexers/Corsarored.cs +++ b/src/Jackett.Common/Indexers/Corsarored.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using System.Threading.Tasks; @@ -13,6 +14,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class Corsarored : BaseWebIndexer { private const int MaxSearchPageLimit = 4; diff --git a/src/Jackett.Common/Indexers/DanishBits.cs b/src/Jackett.Common/Indexers/DanishBits.cs index b49d42336..9378fce01 100644 --- a/src/Jackett.Common/Indexers/DanishBits.cs +++ b/src/Jackett.Common/Indexers/DanishBits.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; @@ -11,6 +12,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class DanishBits : CouchPotatoTracker { public override string[] LegacySiteLinks { get; protected set; } = new string[] { diff --git a/src/Jackett.Common/Indexers/DigitalHive.cs b/src/Jackett.Common/Indexers/DigitalHive.cs index 8969453bf..4e1ec1541 100644 --- a/src/Jackett.Common/Indexers/DigitalHive.cs +++ b/src/Jackett.Common/Indexers/DigitalHive.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using System.Threading.Tasks; @@ -16,6 +17,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class DigitalHive : BaseWebIndexer { private string SearchUrl => SiteLink + "browse.php"; diff --git a/src/Jackett.Common/Indexers/DivxTotal.cs b/src/Jackett.Common/Indexers/DivxTotal.cs index 5babde8b8..147cc4b31 100644 --- a/src/Jackett.Common/Indexers/DivxTotal.cs +++ b/src/Jackett.Common/Indexers/DivxTotal.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Net; @@ -20,7 +21,7 @@ using WebClient = Jackett.Common.Utils.Clients.WebClient; namespace Jackett.Common.Indexers { - // ReSharper disable once UnusedType.Global + [ExcludeFromCodeCoverage] public class DivxTotal : BaseWebIndexer { private const int MaxResultsPerPage = 15; diff --git a/src/Jackett.Common/Indexers/EliteTracker.cs b/src/Jackett.Common/Indexers/EliteTracker.cs index 3f42b6d9a..6e40ae308 100644 --- a/src/Jackett.Common/Indexers/EliteTracker.cs +++ b/src/Jackett.Common/Indexers/EliteTracker.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Text; @@ -16,7 +17,7 @@ using NLog; namespace Jackett.Common.Indexers { - // ReSharper disable once UnusedType.Global + [ExcludeFromCodeCoverage] internal class EliteTracker : BaseWebIndexer { private string LoginUrl => SiteLink + "takelogin.php"; diff --git a/src/Jackett.Common/Indexers/EpubLibre.cs b/src/Jackett.Common/Indexers/EpubLibre.cs index debafbc1b..7a0d8567c 100644 --- a/src/Jackett.Common/Indexers/EpubLibre.cs +++ b/src/Jackett.Common/Indexers/EpubLibre.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using System.Text.RegularExpressions; @@ -15,8 +16,7 @@ using WebClient = Jackett.Common.Utils.Clients.WebClient; namespace Jackett.Common.Indexers { - // ReSharper disable once UnusedType.Global - // ReSharper disable once UnusedMember.Global + [ExcludeFromCodeCoverage] public class EpubLibre : BaseWebIndexer { private string SearchUrl => SiteLink + "catalogo/index/{0}/nuevo/todos/sin/todos/{1}/ajax"; diff --git a/src/Jackett.Common/Indexers/Feeds/AnimeTosho.cs b/src/Jackett.Common/Indexers/Feeds/AnimeTosho.cs index e4d4e0c38..de437bc66 100644 --- a/src/Jackett.Common/Indexers/Feeds/AnimeTosho.cs +++ b/src/Jackett.Common/Indexers/Feeds/AnimeTosho.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using System.Threading.Tasks; @@ -12,6 +13,7 @@ using NLog; namespace Jackett.Common.Indexers.Feeds { + [ExcludeFromCodeCoverage] public class AnimeTosho : BaseNewznabIndexer { public AnimeTosho(IIndexerConfigurationService configService, WebClient client, Logger logger, IProtectionService p) diff --git a/src/Jackett.Common/Indexers/Feeds/BaseFeedIndexer.cs b/src/Jackett.Common/Indexers/Feeds/BaseFeedIndexer.cs index 743c799c4..81cf40cb1 100644 --- a/src/Jackett.Common/Indexers/Feeds/BaseFeedIndexer.cs +++ b/src/Jackett.Common/Indexers/Feeds/BaseFeedIndexer.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; using Jackett.Common.Models; using Jackett.Common.Models.IndexerConfig; @@ -10,6 +11,7 @@ using NLog; namespace Jackett.Common.Indexers.Feeds { + [ExcludeFromCodeCoverage] public abstract class BaseFeedIndexer : BaseWebIndexer { protected abstract Uri FeedUri { get; } diff --git a/src/Jackett.Common/Indexers/Feeds/BaseNewznabIndexer.cs b/src/Jackett.Common/Indexers/Feeds/BaseNewznabIndexer.cs index fd572edbb..96553656e 100644 --- a/src/Jackett.Common/Indexers/Feeds/BaseNewznabIndexer.cs +++ b/src/Jackett.Common/Indexers/Feeds/BaseNewznabIndexer.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Xml.Linq; using Jackett.Common.Models; @@ -11,6 +12,7 @@ using NLog; namespace Jackett.Common.Indexers.Feeds { + [ExcludeFromCodeCoverage] public abstract class BaseNewznabIndexer : BaseFeedIndexer { protected BaseNewznabIndexer(string name, string link, string description, IIndexerConfigurationService configService, WebClient client, Logger logger, ConfigurationData configData, IProtectionService p, TorznabCapabilities caps = null, string downloadBase = null) : base(name, link, description, configService, client, logger, configData, p, caps, downloadBase) diff --git a/src/Jackett.Common/Indexers/FileList.cs b/src/Jackett.Common/Indexers/FileList.cs index 4b48c3f84..b86b007ce 100644 --- a/src/Jackett.Common/Indexers/FileList.cs +++ b/src/Jackett.Common/Indexers/FileList.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Text; using System.Threading.Tasks; using Jackett.Common.Models; @@ -13,6 +14,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class FileList : BaseWebIndexer { public override string[] LegacySiteLinks { get; protected set; } = diff --git a/src/Jackett.Common/Indexers/FunFile.cs b/src/Jackett.Common/Indexers/FunFile.cs index 1ae584738..10bcda85c 100644 --- a/src/Jackett.Common/Indexers/FunFile.cs +++ b/src/Jackett.Common/Indexers/FunFile.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Text; using System.Threading.Tasks; using AngleSharp.Html.Parser; @@ -14,6 +15,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class FunFile : BaseWebIndexer { private string LoginUrl => SiteLink + "takelogin.php"; diff --git a/src/Jackett.Common/Indexers/Fuzer.cs b/src/Jackett.Common/Indexers/Fuzer.cs index 3e821ba24..e0d2a7a97 100644 --- a/src/Jackett.Common/Indexers/Fuzer.cs +++ b/src/Jackett.Common/Indexers/Fuzer.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Text; @@ -17,6 +18,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class Fuzer : BaseWebIndexer { public override string[] LegacySiteLinks { get; protected set; } = diff --git a/src/Jackett.Common/Indexers/GazelleGames.cs b/src/Jackett.Common/Indexers/GazelleGames.cs index b0c874261..a555f8507 100644 --- a/src/Jackett.Common/Indexers/GazelleGames.cs +++ b/src/Jackett.Common/Indexers/GazelleGames.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Text; @@ -16,6 +17,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class GazelleGames : BaseWebIndexer { private string LoginUrl => SiteLink + "login.php"; diff --git a/src/Jackett.Common/Indexers/GimmePeers.cs b/src/Jackett.Common/Indexers/GimmePeers.cs index a53e0375e..36a414646 100644 --- a/src/Jackett.Common/Indexers/GimmePeers.cs +++ b/src/Jackett.Common/Indexers/GimmePeers.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Text; @@ -16,7 +17,7 @@ using NLog; namespace Jackett.Common.Indexers { - // ReSharper disable once InconsistentNaming + [ExcludeFromCodeCoverage] public class GimmePeers : BaseWebIndexer { private string BrowseUrl => SiteLink + "browse.php"; diff --git a/src/Jackett.Common/Indexers/HDBitsApi.cs b/src/Jackett.Common/Indexers/HDBitsApi.cs index 865815f55..7faf5b679 100644 --- a/src/Jackett.Common/Indexers/HDBitsApi.cs +++ b/src/Jackett.Common/Indexers/HDBitsApi.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using System.Threading.Tasks; @@ -13,6 +14,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class HDBitsApi : BaseWebIndexer { private string APIUrl => SiteLink + "api/"; diff --git a/src/Jackett.Common/Indexers/HDOlimpo.cs b/src/Jackett.Common/Indexers/HDOlimpo.cs index 2db047c16..c5bd82889 100644 --- a/src/Jackett.Common/Indexers/HDOlimpo.cs +++ b/src/Jackett.Common/Indexers/HDOlimpo.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; @@ -16,6 +17,7 @@ using static Jackett.Common.Models.IndexerConfig.ConfigurationData; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class HDOlimpo : BaseWebIndexer { private string LoginUrl => SiteLink + "login"; diff --git a/src/Jackett.Common/Indexers/HDOnly.cs b/src/Jackett.Common/Indexers/HDOnly.cs index c5670c20a..fd115bd99 100644 --- a/src/Jackett.Common/Indexers/HDOnly.cs +++ b/src/Jackett.Common/Indexers/HDOnly.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using Jackett.Common.Indexers.Abstract; using Jackett.Common.Models; using Jackett.Common.Services.Interfaces; @@ -8,6 +9,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class HDOnly : GazelleTracker { public HDOnly(IIndexerConfigurationService configService, WebClient wc, Logger l, IProtectionService ps) diff --git a/src/Jackett.Common/Indexers/HDSpace.cs b/src/Jackett.Common/Indexers/HDSpace.cs index 338f04601..8c9e13845 100644 --- a/src/Jackett.Common/Indexers/HDSpace.cs +++ b/src/Jackett.Common/Indexers/HDSpace.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using System.Text.RegularExpressions; @@ -16,6 +17,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class HDSpace : BaseWebIndexer { private string LoginUrl => SiteLink + "index.php?page=login"; diff --git a/src/Jackett.Common/Indexers/HDTorrents.cs b/src/Jackett.Common/Indexers/HDTorrents.cs index 528a0a275..e8c9282e2 100644 --- a/src/Jackett.Common/Indexers/HDTorrents.cs +++ b/src/Jackett.Common/Indexers/HDTorrents.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Text; @@ -17,6 +18,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class HDTorrents : BaseWebIndexer { private string SearchUrl => SiteLink + "torrents.php?"; diff --git a/src/Jackett.Common/Indexers/Hebits.cs b/src/Jackett.Common/Indexers/Hebits.cs index a8abafbae..82398afb4 100644 --- a/src/Jackett.Common/Indexers/Hebits.cs +++ b/src/Jackett.Common/Indexers/Hebits.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Text; @@ -16,6 +17,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class Hebits : BaseWebIndexer { private string LoginPostUrl => SiteLink + "takeloginAjax.php"; diff --git a/src/Jackett.Common/Indexers/HorribleSubs.cs b/src/Jackett.Common/Indexers/HorribleSubs.cs index e6804950c..6bfcd9079 100644 --- a/src/Jackett.Common/Indexers/HorribleSubs.cs +++ b/src/Jackett.Common/Indexers/HorribleSubs.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Text; @@ -17,6 +18,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] internal class HorribleSubs : BaseWebIndexer { private string ApiEndpoint => SiteLink + "api.php"; diff --git a/src/Jackett.Common/Indexers/IPTorrents.cs b/src/Jackett.Common/Indexers/IPTorrents.cs index 53616cd30..dd09dea50 100644 --- a/src/Jackett.Common/Indexers/IPTorrents.cs +++ b/src/Jackett.Common/Indexers/IPTorrents.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using System.Threading.Tasks; @@ -14,6 +15,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class IPTorrents : BaseWebIndexer { private string SearchUrl => SiteLink + "t"; diff --git a/src/Jackett.Common/Indexers/ImmortalSeed.cs b/src/Jackett.Common/Indexers/ImmortalSeed.cs index c60ef81c3..ff028195e 100644 --- a/src/Jackett.Common/Indexers/ImmortalSeed.cs +++ b/src/Jackett.Common/Indexers/ImmortalSeed.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Net; @@ -15,6 +16,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class ImmortalSeed : BaseWebIndexer { private string BrowsePage => SiteLink + "browse.php"; diff --git a/src/Jackett.Common/Indexers/InternetArchive.cs b/src/Jackett.Common/Indexers/InternetArchive.cs index 1a195ea74..72327d7c3 100644 --- a/src/Jackett.Common/Indexers/InternetArchive.cs +++ b/src/Jackett.Common/Indexers/InternetArchive.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Net; using System.Text; @@ -18,7 +19,7 @@ using WebClient = Jackett.Common.Utils.Clients.WebClient; namespace Jackett.Common.Indexers { - // ReSharper disable once UnusedType.Global + [ExcludeFromCodeCoverage] public class InternetArchive : BaseWebIndexer { private string SearchUrl => SiteLink + "advancedsearch.php"; diff --git a/src/Jackett.Common/Indexers/LostFilm.cs b/src/Jackett.Common/Indexers/LostFilm.cs index 1d2d12a9d..2245604c1 100644 --- a/src/Jackett.Common/Indexers/LostFilm.cs +++ b/src/Jackett.Common/Indexers/LostFilm.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Text; @@ -18,6 +19,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] internal class LostFilm : BaseWebIndexer { private static readonly Regex parsePlayEpisodeRegex = new Regex("PlayEpisode\\('(?\\d{1,3})(?\\d{3})(?\\d{3})'\\)", RegexOptions.Compiled | RegexOptions.IgnoreCase); diff --git a/src/Jackett.Common/Indexers/MejorTorrent.cs b/src/Jackett.Common/Indexers/MejorTorrent.cs index 0db3eea95..734971c0b 100644 --- a/src/Jackett.Common/Indexers/MejorTorrent.cs +++ b/src/Jackett.Common/Indexers/MejorTorrent.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Net; @@ -19,7 +20,7 @@ using WebClient = Jackett.Common.Utils.Clients.WebClient; namespace Jackett.Common.Indexers { - // ReSharper disable once UnusedType.Global + [ExcludeFromCodeCoverage] public class MejorTorrent : BaseWebIndexer { private static class MejorTorrentCatType diff --git a/src/Jackett.Common/Indexers/Milkie.cs b/src/Jackett.Common/Indexers/Milkie.cs index 607d03e03..a6751c1d7 100644 --- a/src/Jackett.Common/Indexers/Milkie.cs +++ b/src/Jackett.Common/Indexers/Milkie.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using System.Threading.Tasks; @@ -15,6 +16,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class Milkie : BaseWebIndexer { private string TorrentsEndpoint => SiteLink + "api/v1/torrents"; diff --git a/src/Jackett.Common/Indexers/MoreThanTV.cs b/src/Jackett.Common/Indexers/MoreThanTV.cs index 9936f88a7..b91581e57 100644 --- a/src/Jackett.Common/Indexers/MoreThanTV.cs +++ b/src/Jackett.Common/Indexers/MoreThanTV.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Text; @@ -17,6 +18,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class MoreThanTV : BaseWebIndexer { private string LoginUrl => SiteLink + "login.php"; diff --git a/src/Jackett.Common/Indexers/MyAnonamouse.cs b/src/Jackett.Common/Indexers/MyAnonamouse.cs index 94c769bc9..18d521718 100644 --- a/src/Jackett.Common/Indexers/MyAnonamouse.cs +++ b/src/Jackett.Common/Indexers/MyAnonamouse.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Text; @@ -16,6 +17,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class Myanonamouse : BaseWebIndexer { private string LoginUrl => SiteLink + "takelogin.php"; diff --git a/src/Jackett.Common/Indexers/NCore.cs b/src/Jackett.Common/Indexers/NCore.cs index 407719706..608813e4a 100644 --- a/src/Jackett.Common/Indexers/NCore.cs +++ b/src/Jackett.Common/Indexers/NCore.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Text; @@ -18,6 +19,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class NCore : BaseWebIndexer { private string LoginUrl => SiteLink + "login.php"; diff --git a/src/Jackett.Common/Indexers/NewRealWorld.cs b/src/Jackett.Common/Indexers/NewRealWorld.cs index 5c1a78657..28f3ebd06 100644 --- a/src/Jackett.Common/Indexers/NewRealWorld.cs +++ b/src/Jackett.Common/Indexers/NewRealWorld.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Text; using System.Threading.Tasks; @@ -16,6 +17,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class NewRealWorld : BaseWebIndexer { private string LoginUrl => SiteLink + "login.php"; diff --git a/src/Jackett.Common/Indexers/Newpct.cs b/src/Jackett.Common/Indexers/Newpct.cs index d470a68fe..a6ed32569 100644 --- a/src/Jackett.Common/Indexers/Newpct.cs +++ b/src/Jackett.Common/Indexers/Newpct.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Text; @@ -16,6 +17,7 @@ using static Jackett.Common.Models.IndexerConfig.ConfigurationData; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class Newpct : BaseCachingWebIndexer { private enum ReleaseType diff --git a/src/Jackett.Common/Indexers/Norbits.cs b/src/Jackett.Common/Indexers/Norbits.cs index 00b08cc47..063a00270 100644 --- a/src/Jackett.Common/Indexers/Norbits.cs +++ b/src/Jackett.Common/Indexers/Norbits.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.IO; using System.Linq; @@ -23,9 +24,7 @@ using NLog; namespace Jackett.Common.Indexers { - /// s - /// Provider for Norbits Private Tracker - /// + [ExcludeFromCodeCoverage] public class Norbits : BaseCachingWebIndexer { private string LoginUrl => SiteLink + "login.php"; diff --git a/src/Jackett.Common/Indexers/Nordicbits.cs b/src/Jackett.Common/Indexers/Nordicbits.cs index 49b061ea0..12bfc5c0d 100644 --- a/src/Jackett.Common/Indexers/Nordicbits.cs +++ b/src/Jackett.Common/Indexers/Nordicbits.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.IO; using System.Linq; using System.Reflection; @@ -22,9 +23,7 @@ using NLog; namespace Jackett.Common.Indexers { - /// s - /// Provider for Nordicbits Private Tracker - /// + [ExcludeFromCodeCoverage] public class Nordicbits : BaseCachingWebIndexer { private string LoginUrl => SiteLink + "login.php"; diff --git a/src/Jackett.Common/Indexers/Orpheus.cs b/src/Jackett.Common/Indexers/Orpheus.cs index 4e9a3babd..bad4daa62 100644 --- a/src/Jackett.Common/Indexers/Orpheus.cs +++ b/src/Jackett.Common/Indexers/Orpheus.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using Jackett.Common.Indexers.Abstract; using Jackett.Common.Models; using Jackett.Common.Services.Interfaces; @@ -7,6 +8,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class Orpheus : GazelleTracker { public Orpheus(IIndexerConfigurationService configService, WebClient wc, Logger l, IProtectionService ps) diff --git a/src/Jackett.Common/Indexers/Partis.cs b/src/Jackett.Common/Indexers/Partis.cs index 2566443d7..62997747f 100644 --- a/src/Jackett.Common/Indexers/Partis.cs +++ b/src/Jackett.Common/Indexers/Partis.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Text; using System.Threading.Tasks; @@ -15,6 +16,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class Partis : BaseWebIndexer { private string LoginUrl => SiteLink + "user/login/"; diff --git a/src/Jackett.Common/Indexers/PassThePopcorn.cs b/src/Jackett.Common/Indexers/PassThePopcorn.cs index 6cf4efc61..e36384702 100644 --- a/src/Jackett.Common/Indexers/PassThePopcorn.cs +++ b/src/Jackett.Common/Indexers/PassThePopcorn.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Net; @@ -15,6 +16,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class PassThePopcorn : BaseWebIndexer { private static string SearchUrl => "https://passthepopcorn.me/torrents.php"; diff --git a/src/Jackett.Common/Indexers/PiXELHD.cs b/src/Jackett.Common/Indexers/PiXELHD.cs index 13bcc672e..123142f5a 100644 --- a/src/Jackett.Common/Indexers/PiXELHD.cs +++ b/src/Jackett.Common/Indexers/PiXELHD.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; @@ -15,6 +16,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class PiXELHD : BaseWebIndexer { private string LoginUrl => SiteLink + "login.php"; diff --git a/src/Jackett.Common/Indexers/PirateTheNet.cs b/src/Jackett.Common/Indexers/PirateTheNet.cs index 1b92ac546..05b4d8142 100644 --- a/src/Jackett.Common/Indexers/PirateTheNet.cs +++ b/src/Jackett.Common/Indexers/PirateTheNet.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Text; @@ -17,6 +18,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class PirateTheNet : BaseWebIndexer { private string SearchUrl => SiteLink + "torrentsutils.php"; diff --git a/src/Jackett.Common/Indexers/PolishTracker.cs b/src/Jackett.Common/Indexers/PolishTracker.cs index 07ee2506a..674813209 100644 --- a/src/Jackett.Common/Indexers/PolishTracker.cs +++ b/src/Jackett.Common/Indexers/PolishTracker.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using System.Threading.Tasks; @@ -14,6 +15,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class PolishTracker : BaseWebIndexer { private string LoginUrl => SiteLink + "login"; diff --git a/src/Jackett.Common/Indexers/Pretome.cs b/src/Jackett.Common/Indexers/Pretome.cs index dcd43c14f..6470cc334 100644 --- a/src/Jackett.Common/Indexers/Pretome.cs +++ b/src/Jackett.Common/Indexers/Pretome.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using System.Text.RegularExpressions; @@ -15,6 +16,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class Pretome : BaseWebIndexer { private string LoginUrl => SiteLink + "takelogin.php"; diff --git a/src/Jackett.Common/Indexers/PrivateHD.cs b/src/Jackett.Common/Indexers/PrivateHD.cs index c1e9998b3..acc52f8f7 100644 --- a/src/Jackett.Common/Indexers/PrivateHD.cs +++ b/src/Jackett.Common/Indexers/PrivateHD.cs @@ -1,3 +1,4 @@ +using System.Diagnostics.CodeAnalysis; using Jackett.Common.Indexers.Abstract; using Jackett.Common.Models; using Jackett.Common.Services.Interfaces; @@ -6,6 +7,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class PrivateHD : AvistazTracker { public PrivateHD(IIndexerConfigurationService configService, WebClient wc, Logger l, IProtectionService ps) diff --git a/src/Jackett.Common/Indexers/Psytorrents.cs b/src/Jackett.Common/Indexers/Psytorrents.cs index b92befedb..51e0185fa 100644 --- a/src/Jackett.Common/Indexers/Psytorrents.cs +++ b/src/Jackett.Common/Indexers/Psytorrents.cs @@ -1,4 +1,5 @@ using System; +using System.Diagnostics.CodeAnalysis; using Jackett.Common.Indexers.Abstract; using Jackett.Common.Models; using Jackett.Common.Services.Interfaces; @@ -7,6 +8,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class Psytorrents : GazelleTracker { public Psytorrents(IIndexerConfigurationService configService, WebClient wc, Logger l, IProtectionService ps) diff --git a/src/Jackett.Common/Indexers/Rarbg.cs b/src/Jackett.Common/Indexers/Rarbg.cs index 059f25076..d6407c6e8 100644 --- a/src/Jackett.Common/Indexers/Rarbg.cs +++ b/src/Jackett.Common/Indexers/Rarbg.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Net; @@ -17,6 +18,7 @@ using static Jackett.Common.Models.IndexerConfig.ConfigurationData; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class Rarbg : BaseWebIndexer { // API doc: https://torrentapi.org/apidocs_v2.txt?app_id=Jackett diff --git a/src/Jackett.Common/Indexers/Redacted.cs b/src/Jackett.Common/Indexers/Redacted.cs index 0d14f3c22..9d6d928be 100644 --- a/src/Jackett.Common/Indexers/Redacted.cs +++ b/src/Jackett.Common/Indexers/Redacted.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using Jackett.Common.Indexers.Abstract; using Jackett.Common.Models; using Jackett.Common.Services.Interfaces; @@ -7,6 +8,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class PassTheHeadphones : GazelleTracker { public PassTheHeadphones(IIndexerConfigurationService configService, WebClient wc, Logger l, IProtectionService ps) diff --git a/src/Jackett.Common/Indexers/RevolutionTT.cs b/src/Jackett.Common/Indexers/RevolutionTT.cs index 55577835f..5c95b6b63 100644 --- a/src/Jackett.Common/Indexers/RevolutionTT.cs +++ b/src/Jackett.Common/Indexers/RevolutionTT.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Net; @@ -17,6 +18,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class RevolutionTT : BaseWebIndexer { private string LandingPageURL => SiteLink + "login.php"; diff --git a/src/Jackett.Common/Indexers/SceneHD.cs b/src/Jackett.Common/Indexers/SceneHD.cs index 9c9474240..a95e26ec9 100644 --- a/src/Jackett.Common/Indexers/SceneHD.cs +++ b/src/Jackett.Common/Indexers/SceneHD.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Text; @@ -15,6 +16,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class SceneHD : BaseWebIndexer { private string SearchUrl => SiteLink + "browse.php"; diff --git a/src/Jackett.Common/Indexers/SceneTime.cs b/src/Jackett.Common/Indexers/SceneTime.cs index bb73c397f..442aed653 100644 --- a/src/Jackett.Common/Indexers/SceneTime.cs +++ b/src/Jackett.Common/Indexers/SceneTime.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using System.Text.RegularExpressions; @@ -17,6 +18,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class SceneTime : BaseWebIndexer { private string StartPageUrl => SiteLink + "login.php"; diff --git a/src/Jackett.Common/Indexers/SecretCinema.cs b/src/Jackett.Common/Indexers/SecretCinema.cs index ab597580b..4deaaca0f 100644 --- a/src/Jackett.Common/Indexers/SecretCinema.cs +++ b/src/Jackett.Common/Indexers/SecretCinema.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using Jackett.Common.Indexers.Abstract; using Jackett.Common.Models; using Jackett.Common.Services.Interfaces; @@ -8,6 +9,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class SecretCinema : GazelleTracker { public SecretCinema(IIndexerConfigurationService configService, WebClient wc, Logger l, IProtectionService ps) diff --git a/src/Jackett.Common/Indexers/Shazbat.cs b/src/Jackett.Common/Indexers/Shazbat.cs index aa2760937..85d47956b 100644 --- a/src/Jackett.Common/Indexers/Shazbat.cs +++ b/src/Jackett.Common/Indexers/Shazbat.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using System.Text.RegularExpressions; @@ -15,6 +16,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class Shazbat : BaseWebIndexer { private string LoginUrl => SiteLink + "login"; diff --git a/src/Jackett.Common/Indexers/ShowRSS.cs b/src/Jackett.Common/Indexers/ShowRSS.cs index e2445328c..aff5d73fa 100644 --- a/src/Jackett.Common/Indexers/ShowRSS.cs +++ b/src/Jackett.Common/Indexers/ShowRSS.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Text; @@ -15,6 +16,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class ShowRSS : BaseWebIndexer { private string SearchAllUrl => SiteLink + "other/all.rss"; diff --git a/src/Jackett.Common/Indexers/SolidTorrents.cs b/src/Jackett.Common/Indexers/SolidTorrents.cs index 94216946d..c6b6094ee 100644 --- a/src/Jackett.Common/Indexers/SolidTorrents.cs +++ b/src/Jackett.Common/Indexers/SolidTorrents.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using System.Threading.Tasks; @@ -15,6 +16,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class SolidTorrents : BaseWebIndexer { private string SearchUrl => SiteLink + "api/v1/search"; diff --git a/src/Jackett.Common/Indexers/SpeedCD.cs b/src/Jackett.Common/Indexers/SpeedCD.cs index 0ac88b8ad..2b28bc73f 100644 --- a/src/Jackett.Common/Indexers/SpeedCD.cs +++ b/src/Jackett.Common/Indexers/SpeedCD.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Text; @@ -17,6 +18,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class SpeedCD : BaseWebIndexer { private string LoginUrl1 => SiteLink + "checkpoint/API"; diff --git a/src/Jackett.Common/Indexers/Superbits.cs b/src/Jackett.Common/Indexers/Superbits.cs index 8357491df..2a15f2c16 100644 --- a/src/Jackett.Common/Indexers/Superbits.cs +++ b/src/Jackett.Common/Indexers/Superbits.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Text; @@ -16,6 +17,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class Superbits : BaseWebIndexer { private string SearchUrl => SiteLink + "api/v1/torrents"; diff --git a/src/Jackett.Common/Indexers/TVVault.cs b/src/Jackett.Common/Indexers/TVVault.cs index a7c93f2e6..4e0741458 100644 --- a/src/Jackett.Common/Indexers/TVVault.cs +++ b/src/Jackett.Common/Indexers/TVVault.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; @@ -15,6 +16,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class TVVault : BaseWebIndexer { private string LoginUrl => SiteLink + "login.php"; diff --git a/src/Jackett.Common/Indexers/TVstore.cs b/src/Jackett.Common/Indexers/TVstore.cs index 3f37c71b9..12df73a94 100644 --- a/src/Jackett.Common/Indexers/TVstore.cs +++ b/src/Jackett.Common/Indexers/TVstore.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Text; @@ -16,6 +17,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class TVstore : BaseWebIndexer { private readonly Dictionary _imdbLookup = new Dictionary(); // _imdbLookup[internalId] = imdbId diff --git a/src/Jackett.Common/Indexers/TorrentBytes.cs b/src/Jackett.Common/Indexers/TorrentBytes.cs index df1d053b7..0a83dfd53 100644 --- a/src/Jackett.Common/Indexers/TorrentBytes.cs +++ b/src/Jackett.Common/Indexers/TorrentBytes.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Text; using System.Threading.Tasks; @@ -15,6 +16,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class TorrentBytes : BaseWebIndexer { private string LoginUrl => SiteLink + "takelogin.php"; diff --git a/src/Jackett.Common/Indexers/TorrentDay.cs b/src/Jackett.Common/Indexers/TorrentDay.cs index a60361966..87889f379 100644 --- a/src/Jackett.Common/Indexers/TorrentDay.cs +++ b/src/Jackett.Common/Indexers/TorrentDay.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using System.Threading.Tasks; @@ -16,6 +17,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class TorrentDay : BaseWebIndexer { private string StartPageUrl => SiteLink + "login.php"; diff --git a/src/Jackett.Common/Indexers/TorrentHeaven.cs b/src/Jackett.Common/Indexers/TorrentHeaven.cs index e633f8a0e..4e37de88d 100644 --- a/src/Jackett.Common/Indexers/TorrentHeaven.cs +++ b/src/Jackett.Common/Indexers/TorrentHeaven.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.IO; using System.Linq; using System.Text; @@ -17,6 +18,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class TorrentHeaven : BaseWebIndexer { public TorrentHeaven(IIndexerConfigurationService configService, WebClient wc, Logger l, IProtectionService ps) : diff --git a/src/Jackett.Common/Indexers/TorrentLeech.cs b/src/Jackett.Common/Indexers/TorrentLeech.cs index eee8f9d03..30a30cd11 100644 --- a/src/Jackett.Common/Indexers/TorrentLeech.cs +++ b/src/Jackett.Common/Indexers/TorrentLeech.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Net; @@ -17,6 +18,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class TorrentLeech : BaseWebIndexer { private string LoginUrl => SiteLink + "user/account/login/"; diff --git a/src/Jackett.Common/Indexers/TorrentNetwork.cs b/src/Jackett.Common/Indexers/TorrentNetwork.cs index c154af26b..a55800003 100644 --- a/src/Jackett.Common/Indexers/TorrentNetwork.cs +++ b/src/Jackett.Common/Indexers/TorrentNetwork.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Text; using System.Threading.Tasks; using Jackett.Common.Models; @@ -15,6 +16,7 @@ using static Jackett.Common.Models.IndexerConfig.ConfigurationData; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class TorrentNetwork : BaseWebIndexer { private string APIUrl => SiteLink + "api/"; diff --git a/src/Jackett.Common/Indexers/TorrentSyndikat.cs b/src/Jackett.Common/Indexers/TorrentSyndikat.cs index adda3d531..f7f97a415 100644 --- a/src/Jackett.Common/Indexers/TorrentSyndikat.cs +++ b/src/Jackett.Common/Indexers/TorrentSyndikat.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using System.Text.RegularExpressions; @@ -16,6 +17,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class TorrentSyndikat : BaseWebIndexer { private string SearchUrl => SiteLink + "browse.php"; diff --git a/src/Jackett.Common/Indexers/Torrentech.cs b/src/Jackett.Common/Indexers/Torrentech.cs index 6330e0ffd..1c8eb9a46 100644 --- a/src/Jackett.Common/Indexers/Torrentech.cs +++ b/src/Jackett.Common/Indexers/Torrentech.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Net; using System.Text; @@ -18,6 +19,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class Torrentech : BaseWebIndexer { private string LoginUrl => SiteLink + "index.php?act=Login&CODE=01&CookieDate=1"; diff --git a/src/Jackett.Common/Indexers/Torrentscsv.cs b/src/Jackett.Common/Indexers/Torrentscsv.cs index 1c00e57ac..0f97a08b9 100644 --- a/src/Jackett.Common/Indexers/Torrentscsv.cs +++ b/src/Jackett.Common/Indexers/Torrentscsv.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using System.Threading.Tasks; @@ -14,6 +15,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class Torrentscsv : BaseWebIndexer { diff --git a/src/Jackett.Common/Indexers/Torrentseeds.cs b/src/Jackett.Common/Indexers/Torrentseeds.cs index 0a07a0f1e..14ec232bc 100644 --- a/src/Jackett.Common/Indexers/Torrentseeds.cs +++ b/src/Jackett.Common/Indexers/Torrentseeds.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Net; using System.Text; @@ -16,6 +17,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class TorrentSeeds : BaseWebIndexer { private string LoginUrl => SiteLink + "takelogin.php"; diff --git a/src/Jackett.Common/Indexers/TransmitheNet.cs b/src/Jackett.Common/Indexers/TransmitheNet.cs index 64538523c..a33e1267a 100644 --- a/src/Jackett.Common/Indexers/TransmitheNet.cs +++ b/src/Jackett.Common/Indexers/TransmitheNet.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Net; using System.Text; @@ -15,6 +16,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class TransmitheNet : BaseWebIndexer { private string LoginUrl => SiteLink + "login.php"; diff --git a/src/Jackett.Common/Indexers/XSpeeds.cs b/src/Jackett.Common/Indexers/XSpeeds.cs index b9f48aeef..da9d8a4f5 100644 --- a/src/Jackett.Common/Indexers/XSpeeds.cs +++ b/src/Jackett.Common/Indexers/XSpeeds.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Text; @@ -17,6 +18,7 @@ using static Jackett.Common.Models.IndexerConfig.ConfigurationData; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class XSpeeds : BaseWebIndexer { private string LandingUrl => SiteLink + "login.php"; diff --git a/src/Jackett.Common/Indexers/Xthor.cs b/src/Jackett.Common/Indexers/Xthor.cs index 77707a321..ff872009b 100644 --- a/src/Jackett.Common/Indexers/Xthor.cs +++ b/src/Jackett.Common/Indexers/Xthor.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.IO; using System.Linq; using System.Net; @@ -19,9 +20,7 @@ using NLog; namespace Jackett.Common.Indexers { - /// - /// Provider for Xthor Private French Tracker - /// + [ExcludeFromCodeCoverage] public class Xthor : BaseCachingWebIndexer { private static string ApiEndpoint => "https://api.xthor.tk/"; diff --git a/src/Jackett.Common/Indexers/cgpeers.cs b/src/Jackett.Common/Indexers/cgpeers.cs index 8b48f63e7..30b70c8ca 100644 --- a/src/Jackett.Common/Indexers/cgpeers.cs +++ b/src/Jackett.Common/Indexers/cgpeers.cs @@ -1,3 +1,4 @@ +using System.Diagnostics.CodeAnalysis; using Jackett.Common.Indexers.Abstract; using Jackett.Common.Models; using Jackett.Common.Services.Interfaces; @@ -6,6 +7,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class CGPeers : GazelleTracker { public override string[] LegacySiteLinks { get; protected set; } = new string[] { diff --git a/src/Jackett.Common/Indexers/digitalcore.cs b/src/Jackett.Common/Indexers/digitalcore.cs index 35b27a2b3..4061e9f7c 100644 --- a/src/Jackett.Common/Indexers/digitalcore.cs +++ b/src/Jackett.Common/Indexers/digitalcore.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Text; @@ -16,6 +17,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class Digitalcore : BaseWebIndexer { private string SearchUrl => SiteLink + "api/v1/torrents"; diff --git a/src/Jackett.Common/Indexers/myAmity.cs b/src/Jackett.Common/Indexers/myAmity.cs index 9f0f76950..366156a4a 100644 --- a/src/Jackett.Common/Indexers/myAmity.cs +++ b/src/Jackett.Common/Indexers/myAmity.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Text; using System.Threading.Tasks; @@ -15,6 +16,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class myAmity : BaseWebIndexer { private string LoginUrl => SiteLink + "account-login.php"; diff --git a/src/Jackett.Common/Indexers/notwhatcd.cs b/src/Jackett.Common/Indexers/notwhatcd.cs index 5ab26934e..80f01023c 100644 --- a/src/Jackett.Common/Indexers/notwhatcd.cs +++ b/src/Jackett.Common/Indexers/notwhatcd.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using Jackett.Common.Indexers.Abstract; using Jackett.Common.Models; using Jackett.Common.Services.Interfaces; @@ -7,6 +8,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class notwhatcd : GazelleTracker { public notwhatcd(IIndexerConfigurationService configService, WebClient wc, Logger l, IProtectionService ps) diff --git a/src/Jackett.Common/Indexers/pornolab.cs b/src/Jackett.Common/Indexers/pornolab.cs index 222aaa46b..d539cca5f 100644 --- a/src/Jackett.Common/Indexers/pornolab.cs +++ b/src/Jackett.Common/Indexers/pornolab.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; @@ -16,6 +17,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class Pornolab : BaseWebIndexer { private string LoginUrl => SiteLink + "forum/login.php"; diff --git a/src/Jackett.Common/Indexers/rutracker.cs b/src/Jackett.Common/Indexers/rutracker.cs index c1806be8c..9c4fe690a 100644 --- a/src/Jackett.Common/Indexers/rutracker.cs +++ b/src/Jackett.Common/Indexers/rutracker.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using System.Text.RegularExpressions; @@ -17,6 +18,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class RuTracker : BaseWebIndexer { private string LoginUrl => SiteLink + "forum/login.php"; diff --git a/src/Jackett.Common/Indexers/toloka.cs b/src/Jackett.Common/Indexers/toloka.cs index bce0eaa49..83ca24742 100644 --- a/src/Jackett.Common/Indexers/toloka.cs +++ b/src/Jackett.Common/Indexers/toloka.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; @@ -15,6 +16,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class Toloka : BaseWebIndexer { private string LoginUrl => SiteLink + "/login.php"; diff --git a/src/Jackett.Common/Indexers/yts.cs b/src/Jackett.Common/Indexers/yts.cs index 1933cd86e..484a21b14 100644 --- a/src/Jackett.Common/Indexers/yts.cs +++ b/src/Jackett.Common/Indexers/yts.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Text; @@ -15,6 +16,7 @@ using NLog; namespace Jackett.Common.Indexers { + [ExcludeFromCodeCoverage] public class Yts : BaseWebIndexer { public override string[] LegacySiteLinks { get; protected set; } = new string[] {