From 52c64080f25c05b3a3fbc2bffced48ad72640f36 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sun, 28 May 2023 02:53:49 +0300 Subject: [PATCH] Enforce rule IDE0005 on build (cherry picked from commit 6b1e4ef81938d264a2ddc8b626b0502f799aa640) --- src/Directory.Build.props | 7 +++++++ src/NzbDrone.Common/OAuth/OAuthRequest.cs | 2 +- .../Indexers/TorrentRss/TorrentRssSettingsDetector.cs | 8 ++++---- src/NzbDrone.Core/Parser/RomanNumerals/RomanNumeral.cs | 4 ++-- 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 93347e644e..49ac70fce8 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -30,6 +30,13 @@ false true + + + true + + $(NoWarn);CS1591 diff --git a/src/NzbDrone.Common/OAuth/OAuthRequest.cs b/src/NzbDrone.Common/OAuth/OAuthRequest.cs index cdf7d9e1f7..ceb9b91173 100644 --- a/src/NzbDrone.Common/OAuth/OAuthRequest.cs +++ b/src/NzbDrone.Common/OAuth/OAuthRequest.cs @@ -29,7 +29,7 @@ namespace NzbDrone.Common.OAuth public virtual string Version { get; set; } public virtual string SessionHandle { get; set; } - /// + /// public virtual string RequestUrl { get; set; } #if !WINRT diff --git a/src/NzbDrone.Core/Indexers/TorrentRss/TorrentRssSettingsDetector.cs b/src/NzbDrone.Core/Indexers/TorrentRss/TorrentRssSettingsDetector.cs index 4947fabcc3..0e13aec355 100644 --- a/src/NzbDrone.Core/Indexers/TorrentRss/TorrentRssSettingsDetector.cs +++ b/src/NzbDrone.Core/Indexers/TorrentRss/TorrentRssSettingsDetector.cs @@ -35,11 +35,11 @@ namespace NzbDrone.Core.Indexers.TorrentRss /// /// Indexer Settings to use for Parser /// Parsed Settings or null - public TorrentRssIndexerParserSettings Detect(TorrentRssIndexerSettings indexerSettings) + public TorrentRssIndexerParserSettings Detect(TorrentRssIndexerSettings settings) { - _logger.Debug("Evaluating TorrentRss feed '{0}'", indexerSettings.BaseUrl); + _logger.Debug("Evaluating TorrentRss feed '{0}'", settings.BaseUrl); - var requestGenerator = new TorrentRssIndexerRequestGenerator { Settings = indexerSettings }; + var requestGenerator = new TorrentRssIndexerRequestGenerator { Settings = settings }; var request = requestGenerator.GetRecentRequests().GetAllTiers().First().First(); HttpResponse httpResponse = null; @@ -54,7 +54,7 @@ namespace NzbDrone.Core.Indexers.TorrentRss } var indexerResponse = new IndexerResponse(request, httpResponse); - return GetParserSettings(indexerResponse, indexerSettings); + return GetParserSettings(indexerResponse, settings); } private TorrentRssIndexerParserSettings GetParserSettings(IndexerResponse response, TorrentRssIndexerSettings indexerSettings) diff --git a/src/NzbDrone.Core/Parser/RomanNumerals/RomanNumeral.cs b/src/NzbDrone.Core/Parser/RomanNumerals/RomanNumeral.cs index bec6cb7dc8..47564643a2 100644 --- a/src/NzbDrone.Core/Parser/RomanNumerals/RomanNumeral.cs +++ b/src/NzbDrone.Core/Parser/RomanNumerals/RomanNumeral.cs @@ -209,7 +209,7 @@ namespace NzbDrone.Core.Parser.RomanNumerals /// Returns the Roman numeral that was passed in as either an Arabic numeral /// or a Roman numeral. /// - /// A representing a Roman Numeral + /// A representing a Roman Numeral public string ToRomanNumeral() { return ToString(); @@ -349,7 +349,7 @@ namespace NzbDrone.Core.Parser.RomanNumerals /// during creation. /// /// - /// A that represents a Roman Numeral. + /// A that represents a Roman Numeral. /// public override string ToString() {