Skip to content

Commit 5d81460

Browse files
committed
(maint) Fix stylecop and compiler warnings
While trying to get the builds to work on AppVeyor and GitHub, noticed that there were a couple of build warnings (both from StyleCop and MSBuild) that were quick wins, so took the opportunity to fix them up.
1 parent 8fe01b8 commit 5d81460

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

src/GitReleaseManager.Core.Tests/GitReleaseManager.Core.Tests.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
</PackageReference>
2020
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
2121
<PackageReference Include="ApprovalTests" Version="5.7.1" />
22-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
23-
<PackageReference Include="ApprovalTests" Version="5.7.1" />
2422
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
2523
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2624
<PrivateAssets>all</PrivateAssets>

src/GitReleaseManager.Core/Configuration/ConfigSerializer.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ private static void SetConfigurationSamples(object config, Type configType, Text
9494
{
9595
property.SetValue(config, null);
9696
}
97+
9798
continue;
9899
}
99100
else if (yamlMemberAttribute.DefaultValuesHandling == DefaultValuesHandling.OmitNull)

src/GitReleaseManager.Core/Exceptions/InvalidIssuesException.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ public InvalidIssuesException(List<string> errors, string message, Exception inn
3333
protected InvalidIssuesException(
3434
System.Runtime.Serialization.SerializationInfo info,
3535
System.Runtime.Serialization.StreamingContext context)
36-
: base(info, context) { }
36+
: base(info, context)
37+
{
38+
}
3739
}
3840
}

src/GitReleaseManager.Core/Extensions/StringExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public static string ReplaceMilestoneTitle(this string source, string milestoneK
1212
{
1313
var dict = new Dictionary<string, object>
1414
{
15-
{ milestoneKey.Trim('{','}'), milestoneTitle },
15+
{ milestoneKey.Trim('{','}'), milestoneTitle }
1616
};
1717

1818
return source.ReplaceTemplate(dict);

src/GitReleaseManager.Tests/GitReleaseManager.Tests.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
</PackageReference>
2020
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
2121
<PackageReference Include="ApprovalTests" Version="5.7.1" />
22-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
23-
<PackageReference Include="ApprovalTests" Version="5.7.1" />
2422
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
2523
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2624
<PrivateAssets>all</PrivateAssets>

0 commit comments

Comments
 (0)