Skip to content

Commit f86d896

Browse files
authored
Remove unnecessary usings (#1746)
1 parent 7869b1e commit f86d896

42 files changed

Lines changed: 13 additions & 43 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Directory.Build.props

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
<Nullable>enable</Nullable>
2626

2727
<UseArtifactsOutput>true</UseArtifactsOutput>
28+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
2829

2930
</PropertyGroup>
3031

@@ -33,7 +34,6 @@
3334
<AnalysisLevel>latest-Recommended</AnalysisLevel>
3435
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
3536
<!--
36-
[IDE0005] Using directive is unnecessary
3737
[IDE0008] Use explicit type instead of 'var'
3838
[IDE0019] Use pattern matching
3939
[IDE0021] Use block body for constructor
@@ -64,9 +64,10 @@
6464
[CA1510] Use 'ArgumentNullException.ThrowIfNull' instead of explicitly throwing a new exception instance
6565
[CA1716] rename parameter property so that it no longer conflicts with the reserved language keyword
6666
[CA1720] Identifier 'xxx' contains type name
67+
[CA1870] Use a cached 'SearchValues' instance for improved searching performance
6768
[CA2263] Prefer the generic overload 'System.Enum.GetValues<TEnum>()'
6869
-->
69-
<NoWarn>$(NoWarn);IDE0005;IDE0008;IDE0019;IDE0021;IDE0022;IDE0025;IDE0027;IDE0028;IDE0029;IDE0032;IDE0039;IDE0045;IDE0046;IDE0055;IDE0057;IDE0059;IDE0060;IDE0074;IDE0078;IDE0083;IDE0090;IDE0100;IDE0130;IDE0160;IDE0260;IDE0290;IDE1005;CA1200;CA1510;CA1716;CA1720;CA2263</NoWarn>
70+
<NoWarn>$(NoWarn);IDE0008;IDE0019;IDE0021;IDE0022;IDE0025;IDE0027;IDE0028;IDE0029;IDE0032;IDE0039;IDE0045;IDE0046;IDE0055;IDE0057;IDE0059;IDE0060;IDE0074;IDE0078;IDE0083;IDE0090;IDE0100;IDE0130;IDE0160;IDE0260;IDE0290;IDE1005;CA1200;CA1510;CA1716;CA1720;CA1870;CA2263</NoWarn>
7071
</PropertyGroup>
7172

7273
</Project>

build/Build.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
using Nuke.Common.Tooling;
1212
using Nuke.Common.Tools.DotNet;
1313
using Nuke.Common.Utilities.Collections;
14-
15-
using static Nuke.Common.Logger;
1614
using static Nuke.Common.Tools.DotNet.DotNetTasks;
1715

1816
[ShutdownDotNetAfterServerBuild]

src/NJsonSchema.Benchmark/NJsonSchema.Benchmark.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>net8.0</TargetFramework>
55
<GenerateProgramFile>false</GenerateProgramFile>
6-
<NoWarn>$(NoWarn),xUnit1013</NoWarn>
6+
<NoWarn>$(NoWarn),xUnit1013;CS1591</NoWarn>
77
<SignAssembly>false</SignAssembly>
88
<Nullable>disable</Nullable>
99
<EnableNETAnalyzers>false</EnableNETAnalyzers>

src/NJsonSchema.CodeGeneration.CSharp.Tests/NJsonSchema.CodeGeneration.CSharp.Tests.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<PropertyGroup>
44
<TargetFramework>net8.0</TargetFramework>
55
<IsPackable>false</IsPackable>
6-
<GenerateDocumentationFile>true</GenerateDocumentationFile>
76
<NoWarn>$(NoWarn),1587,1998,1591,618,SYSLIB0012</NoWarn>
87
<Nullable>disable</Nullable>
98
<EnableNETAnalyzers>false</EnableNETAnalyzers>

src/NJsonSchema.CodeGeneration.CSharp/CSharpGenerator.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
using System.Collections.Generic;
1010
using System.Linq;
1111
using NJsonSchema.CodeGeneration.CSharp.Models;
12-
using NJsonSchema.CodeGeneration.Models;
1312

1413
namespace NJsonSchema.CodeGeneration.CSharp
1514
{

src/NJsonSchema.CodeGeneration.CSharp/CSharpJsonSerializerGenerator.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// <author>Rico Suter, mail@rsuter.com</author>
77
//-----------------------------------------------------------------------
88

9-
using System;
109
using System.Collections.Generic;
1110
using System.Linq;
1211

src/NJsonSchema.CodeGeneration.CSharp/CSharpValueGenerator.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// <author>Rico Suter, mail@rsuter.com</author>
77
//-----------------------------------------------------------------------
88

9-
using NJsonSchema.Annotations;
109
using System;
1110
using System.Collections.Generic;
1211
using System.Globalization;

src/NJsonSchema.CodeGeneration.CSharp/Models/EnumTemplateModel.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// <author>Rico Suter, mail@rsuter.com</author>
77
//-----------------------------------------------------------------------
88

9-
using NJsonSchema.Annotations;
109
using System.Collections.Generic;
1110
using System.Globalization;
1211
using System.Linq;

src/NJsonSchema.CodeGeneration.CSharp/Models/PropertyModel.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// <author>Rico Suter, mail@rsuter.com</author>
77
//-----------------------------------------------------------------------
88

9-
using NJsonSchema.Annotations;
109
using System.Globalization;
1110
using NJsonSchema.CodeGeneration.Models;
1211

src/NJsonSchema.CodeGeneration.Tests/LiquidTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Globalization;
4-
using System.Reflection;
54
using Fluid;
65
using NJsonSchema.CodeGeneration.TypeScript;
76
using Xunit;

0 commit comments

Comments
 (0)