Skip to content

Commit c3e3d7c

Browse files
Gary Ewan Parkgep13
authored andcommitted
(GH-5) Boom! FxCop re-enabled on all projects
- Turns out, naming the output GitHubReleaseNotes.dll and GitHubReleaseNotes.exe, causes bad things to happen to FxCop. - Renamed output artifacts, and fixed remaining FxCop erros
1 parent 47800c2 commit c3e3d7c

File tree

5 files changed

+20
-18
lines changed

5 files changed

+20
-18
lines changed

Source/CustomDictionary.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<Word />
55
</Unrecognized>
66
<Recognized>
7+
<Word>Cli</Word>
78
<Word>commitish</Word>
89
<Word>Git</Word>
910
<Word>Octokit</Word>

Source/GitHubReleaseManager.Cli/GitHubReleaseManager.Cli.csproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<OutputType>Exe</OutputType>
99
<AppDesignerFolder>Properties</AppDesignerFolder>
1010
<RootNamespace>GitHubReleaseManager.Cli</RootNamespace>
11-
<AssemblyName>GitHubReleaseManager</AssemblyName>
11+
<AssemblyName>GitHubReleaseManager.Cli</AssemblyName>
1212
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
1313
<FileAlignment>512</FileAlignment>
1414
<NuGetPackageImportStamp>7ec2b379</NuGetPackageImportStamp>
@@ -53,7 +53,7 @@
5353
<DefineConstants>TRACE;CODE_ANALYSIS;</DefineConstants>
5454
<ErrorReport>prompt</ErrorReport>
5555
<WarningLevel>4</WarningLevel>
56-
<RunCodeAnalysis>false</RunCodeAnalysis>
56+
<RunCodeAnalysis>true</RunCodeAnalysis>
5757
<CodeAnalysisRuleSet>..\GitHubReleaseManager.ruleset</CodeAnalysisRuleSet>
5858
<CodeAnalysisTreatWarningsAsErrors>True</CodeAnalysisTreatWarningsAsErrors>
5959
</PropertyGroup>
@@ -87,12 +87,6 @@
8787
<SubType>Designer</SubType>
8888
</None>
8989
</ItemGroup>
90-
<ItemGroup>
91-
<ProjectReference Include="..\GitHubReleaseManager\GitHubReleaseManager.csproj">
92-
<Project>{b02a026e-ca3a-48f4-bba9-eb337b0a2035}</Project>
93-
<Name>GitHubReleaseManager</Name>
94-
</ProjectReference>
95-
</ItemGroup>
9690
<ItemGroup>
9791
<CodeAnalysisDictionary Include="..\CustomDictionary.xml">
9892
<Link>CustomDictionary.xml</Link>
@@ -118,6 +112,12 @@
118112
<ItemGroup>
119113
<Content Include="FodyWeavers.xml" />
120114
</ItemGroup>
115+
<ItemGroup>
116+
<ProjectReference Include="..\GitHubReleaseManager\GitHubReleaseManager.csproj">
117+
<Project>{b02a026e-ca3a-48f4-bba9-eb337b0a2035}</Project>
118+
<Name>GitHubReleaseManager</Name>
119+
</ProjectReference>
120+
</ItemGroup>
121121
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
122122
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
123123
<PropertyGroup>

Source/GitHubReleaseManager.Cli/Program.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,18 @@ namespace GitHubReleaseManager.Cli
1414
using Octokit;
1515
using FileMode = System.IO.FileMode;
1616

17-
public class Program
17+
public static class Program
1818
{
19+
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope", Justification = "Not required")]
1920
private static int Main(string[] args)
2021
{
2122
var options = new Options();
2223

2324
var result = 1;
2425

2526
if (!Parser.Default.ParseArgumentsStrict(
26-
args,
27-
options,
27+
args,
28+
options,
2829
(verb, subOptions) =>
2930
{
3031
if (verb == "create")

Source/GitHubReleaseManager.Tests/GitHubReleaseManager.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
</ItemGroup>
7474
<ItemGroup>
7575
<ProjectReference Include="..\GitHubReleaseManager\GitHubReleaseManager.csproj">
76-
<Project>{B02A026E-CA3A-48F4-BBA9-EB337B0A2035}</Project>
76+
<Project>{b02a026e-ca3a-48f4-bba9-eb337b0a2035}</Project>
7777
<Name>GitHubReleaseManager</Name>
7878
</ProjectReference>
7979
</ItemGroup>

Source/GitHubReleaseManager.sln

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,18 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "AppVeyor", "AppVeyor", "{EF
2222
..\appveyor.yml = ..\appveyor.yml
2323
EndProjectSection
2424
EndProject
25-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitHubReleaseManager", "GitHubReleaseManager\GitHubReleaseManager.csproj", "{B02A026E-CA3A-48F4-BBA9-EB337B0A2035}"
26-
EndProject
2725
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitHubReleaseManager.Tests", "GitHubReleaseManager.Tests\GitHubReleaseManager.Tests.csproj", "{FAD045A3-CF63-48CA-BA49-8F4D79E3EF4F}"
2826
EndProject
2927
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitHubReleaseManager.Cli", "GitHubReleaseManager.Cli\GitHubReleaseManager.Cli.csproj", "{F1163F09-3D4E-4F95-AF46-24C15AB297FB}"
3028
EndProject
29+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitHubReleaseManager", "GitHubReleaseManager\GitHubReleaseManager.csproj", "{B02A026E-CA3A-48F4-BBA9-EB337B0A2035}"
30+
EndProject
3131
Global
3232
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3333
Debug|Any CPU = Debug|Any CPU
3434
Release|Any CPU = Release|Any CPU
3535
EndGlobalSection
3636
GlobalSection(ProjectConfigurationPlatforms) = postSolution
37-
{B02A026E-CA3A-48F4-BBA9-EB337B0A2035}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
38-
{B02A026E-CA3A-48F4-BBA9-EB337B0A2035}.Debug|Any CPU.Build.0 = Debug|Any CPU
39-
{B02A026E-CA3A-48F4-BBA9-EB337B0A2035}.Release|Any CPU.ActiveCfg = Release|Any CPU
40-
{B02A026E-CA3A-48F4-BBA9-EB337B0A2035}.Release|Any CPU.Build.0 = Release|Any CPU
4137
{FAD045A3-CF63-48CA-BA49-8F4D79E3EF4F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
4238
{FAD045A3-CF63-48CA-BA49-8F4D79E3EF4F}.Debug|Any CPU.Build.0 = Debug|Any CPU
4339
{FAD045A3-CF63-48CA-BA49-8F4D79E3EF4F}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -46,6 +42,10 @@ Global
4642
{F1163F09-3D4E-4F95-AF46-24C15AB297FB}.Debug|Any CPU.Build.0 = Debug|Any CPU
4743
{F1163F09-3D4E-4F95-AF46-24C15AB297FB}.Release|Any CPU.ActiveCfg = Release|Any CPU
4844
{F1163F09-3D4E-4F95-AF46-24C15AB297FB}.Release|Any CPU.Build.0 = Release|Any CPU
45+
{B02A026E-CA3A-48F4-BBA9-EB337B0A2035}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
46+
{B02A026E-CA3A-48F4-BBA9-EB337B0A2035}.Debug|Any CPU.Build.0 = Debug|Any CPU
47+
{B02A026E-CA3A-48F4-BBA9-EB337B0A2035}.Release|Any CPU.ActiveCfg = Release|Any CPU
48+
{B02A026E-CA3A-48F4-BBA9-EB337B0A2035}.Release|Any CPU.Build.0 = Release|Any CPU
4949
EndGlobalSection
5050
GlobalSection(SolutionProperties) = preSolution
5151
HideSolutionNode = FALSE

0 commit comments

Comments
 (0)