Skip to content

Commit

Permalink
Enforce rule IDE0005 on build
Browse files Browse the repository at this point in the history
(cherry picked from commit 6b1e4ef81938d264a2ddc8b626b0502f799aa640)
  • Loading branch information
mynameisbogdan committed May 28, 2023
1 parent ce43043 commit ea0eb2e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions src/Directory.Build.props
Expand Up @@ -30,6 +30,13 @@
<!-- A test project gets the test sdk packages automatically added -->
<TestProject>false</TestProject>
<TestProject Condition="$(MSBuildProjectName.EndsWith('.Test'))">true</TestProject>

<!-- XML documentation comments are needed to enforce rule IDE0005 on build -->
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<!--
CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member'
-->
<NoWarn>$(NoWarn);CS1591</NoWarn>
</PropertyGroup>

<PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/NzbDrone.Common/OAuth/OAuthRequest.cs
Expand Up @@ -29,7 +29,7 @@ public class OAuthRequest
public virtual string Version { get; set; }
public virtual string SessionHandle { get; set; }

/// <seealso cref="http://oauth.net/core/1.0#request_urls"/>
/// <seealso href="http://oauth.net/core/1.0#request_urls"/>
public virtual string RequestUrl { get; set; }

#if !WINRT
Expand Down
6 changes: 3 additions & 3 deletions src/NzbDrone.Core/Parser/RomanNumerals/RomanNumeral.cs
@@ -1,4 +1,4 @@
using System;
using System;
using System.Text;

namespace NzbDrone.Core.Parser.RomanNumerals
Expand Down Expand Up @@ -209,7 +209,7 @@ private static string ToRomanNumeral(int number)
/// Returns the Roman numeral that was passed in as either an Arabic numeral
/// or a Roman numeral.
/// </summary>
/// <returns>A <see cref="System.string" /> representing a Roman Numeral</returns>
/// <returns>A <see cref="string" /> representing a Roman Numeral</returns>
public string ToRomanNumeral()
{
return ToString();
Expand Down Expand Up @@ -349,7 +349,7 @@ public bool Equals(RomanNumeral other)
/// during creation.
/// </summary>
/// <returns>
/// A <see cref="System.string" /> that represents a Roman Numeral.
/// A <see cref="string" /> that represents a Roman Numeral.
/// </returns>
public override string ToString()
{
Expand Down

0 comments on commit ea0eb2e

Please sign in to comment.