Skip to content

Commit

Permalink
Warnings cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
brutaldev committed May 10, 2021
1 parent 45cd27f commit 7a78571
Show file tree
Hide file tree
Showing 24 changed files with 22 additions and 81 deletions.
4 changes: 1 addition & 3 deletions src/Brutal.Dev.StrongNameSigner.Console/LogLevel.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.ComponentModel;

namespace Brutal.Dev.StrongNameSigner.Console
namespace Brutal.Dev.StrongNameSigner.Console
{
internal enum LogLevel
{
Expand Down
3 changes: 0 additions & 3 deletions src/Brutal.Dev.StrongNameSigner.Console/Options.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using PowerArgs;

namespace Brutal.Dev.StrongNameSigner.Console
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@
</PropertyGroup>
<!-- Import the SHFB build targets -->
<Import Project="$(SHFBROOT)\SandcastleHelpFileBuilder.targets" />
</Project>
</Project>
7 changes: 1 addition & 6 deletions src/Brutal.Dev.StrongNameSigner.TestAssembly.A/A.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Brutal.Dev.StrongNameSigner.TestAssembly.A
namespace Brutal.Dev.StrongNameSigner.TestAssembly.A
{
public class A
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
Expand Down
7 changes: 1 addition & 6 deletions src/Brutal.Dev.StrongNameSigner.TestAssembly.B/B.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Brutal.Dev.StrongNameSigner.TestAssembly.B
namespace Brutal.Dev.StrongNameSigner.TestAssembly.B
{
public class B
{
Expand Down
9 changes: 2 additions & 7 deletions src/Brutal.Dev.StrongNameSigner.TestAssembly.NET20/Form1.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
using Brutal.Dev.StrongNameSigner.TestAssembly.Properties;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System;
using System.Windows.Forms;
using Brutal.Dev.StrongNameSigner.TestAssembly.Properties;

namespace Brutal.Dev.StrongNameSigner.TestAssembly
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Windows.Forms;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
Expand Down
9 changes: 2 additions & 7 deletions src/Brutal.Dev.StrongNameSigner.TestAssembly.NET40/Form1.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
using Brutal.Dev.StrongNameSigner.TestAssembly.Properties;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System;
using System.Windows.Forms;
using Brutal.Dev.StrongNameSigner.TestAssembly.Properties;

namespace Brutal.Dev.StrongNameSigner.TestAssembly
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Windows.Forms;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
Expand Down
11 changes: 2 additions & 9 deletions src/Brutal.Dev.StrongNameSigner.TestAssembly.NET45/Form1.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
using Brutal.Dev.StrongNameSigner.TestAssembly.NET45.Properties;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System;
using System.Windows.Forms;
using Brutal.Dev.StrongNameSigner.TestAssembly.NET45.Properties;

namespace Brutal.Dev.StrongNameSigner.TestAssembly.NET45
{
Expand Down
3 changes: 0 additions & 3 deletions src/Brutal.Dev.StrongNameSigner.TestAssembly.NET45/Program.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Brutal.Dev.StrongNameSigner.TestAssembly.NET45
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\..\packages\Shouldly.4.0.3\build\Shouldly.props" Condition="Exists('..\..\packages\Shouldly.4.0.3\build\Shouldly.props')" />
<Import Project="..\..\packages\NUnit.3.13.1\build\NUnit.props" Condition="Exists('..\..\packages\NUnit.3.13.1\build\NUnit.props')" />
<Import Project="..\..\packages\NUnit3TestAdapter.3.17.0\build\net35\NUnit3TestAdapter.props" Condition="Exists('..\..\packages\NUnit3TestAdapter.3.17.0\build\net35\NUnit3TestAdapter.props')" />
<Import Project="..\..\packages\NUnit.3.12.0\build\NUnit.props" Condition="Exists('..\..\packages\NUnit.3.12.0\build\NUnit.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
Expand Down Expand Up @@ -50,11 +51,9 @@
<Reference Include="Microsoft.Build.Framework" />
<Reference Include="Microsoft.Build.Utilities.v4.0" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="nunit.framework, Version=3.12.0.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
<HintPath>..\..\packages\NUnit.3.12.0\lib\net40\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="Shouldly, Version=3.0.2.0, Culture=neutral, PublicKeyToken=6042cbcb05cbc941, processorArchitecture=MSIL">
<HintPath>..\..\packages\Shouldly.3.0.2\lib\net40\Shouldly.dll</HintPath>
<Reference Include="nunit.framework, Version=3.13.1.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
<HintPath>..\..\packages\NUnit.3.13.1\lib\net40\nunit.framework.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core">
Expand Down Expand Up @@ -198,9 +197,10 @@
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\..\packages\NUnit.3.12.0\build\NUnit.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\NUnit.3.12.0\build\NUnit.props'))" />
<Error Condition="!Exists('..\..\packages\NUnit3TestAdapter.3.17.0\build\net35\NUnit3TestAdapter.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\NUnit3TestAdapter.3.17.0\build\net35\NUnit3TestAdapter.props'))" />
<Error Condition="!Exists('..\..\packages\Shouldly.4.0.0\build\Shouldly.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Shouldly.4.0.0\build\Shouldly.targets'))" />
<Error Condition="!Exists('..\..\packages\NUnit.3.13.1\build\NUnit.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\NUnit.3.13.1\build\NUnit.props'))" />
<Error Condition="!Exists('..\..\packages\Shouldly.4.0.3\build\Shouldly.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Shouldly.4.0.3\build\Shouldly.props'))" />
</Target>
<Import Project="..\..\packages\Shouldly.4.0.0\build\Shouldly.targets" Condition="Exists('..\..\packages\Shouldly.4.0.0\build\Shouldly.targets')" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
Expand Down
4 changes: 2 additions & 2 deletions src/Brutal.Dev.StrongNameSigner.Tests/packages.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="NUnit" version="3.12.0" targetFramework="net40" />
<package id="NUnit" version="3.13.1" targetFramework="net40" />
<package id="NUnit3TestAdapter" version="3.17.0" targetFramework="net40" />
<package id="Shouldly" version="3.0.2" targetFramework="net40" />
<package id="Shouldly" version="4.0.3" targetFramework="net40" />
</packages>
4 changes: 1 addition & 3 deletions src/Brutal.Dev.StrongNameSigner.UI/AssemblyPair.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace Brutal.Dev.StrongNameSigner.UI
namespace Brutal.Dev.StrongNameSigner.UI
{
internal class AssemblyPair
{
Expand Down
9 changes: 1 addition & 8 deletions src/Brutal.Dev.StrongNameSigner.UI/OutputForm.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Windows.Forms;

namespace Brutal.Dev.StrongNameSigner.UI
{
Expand Down
2 changes: 0 additions & 2 deletions src/Brutal.Dev.StrongNameSigner.UI/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace Brutal.Dev.StrongNameSigner.UI
Expand Down
3 changes: 0 additions & 3 deletions src/Brutal.Dev.StrongNameSigner/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Text;

namespace Brutal.Dev.StrongNameSigner
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<RunCodeAnalysis>true</RunCodeAnalysis>
<RunCodeAnalysis>false</RunCodeAnalysis>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
<DocumentationFile>bin\Release\Brutal.Dev.StrongNameSigner.XML</DocumentationFile>
</PropertyGroup>
Expand Down
3 changes: 0 additions & 3 deletions src/Brutal.Dev.StrongNameSigner/OutputFileManager.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;

namespace Brutal.Dev.StrongNameSigner
{
Expand Down

0 comments on commit 7a78571

Please sign in to comment.