Skip to content

Commit 730b315

Browse files
Enable implicit usings (#3316)
Enable implicit using statements.
1 parent 5826b72 commit 730b315

File tree

232 files changed

+170
-800
lines changed

Some content is hidden

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

232 files changed

+170
-800
lines changed

Directory.Build.props

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@
1212
<EmbedUntrackedSources>true</EmbedUntrackedSources>
1313
<EnablePackageValidation>$(IsPackable)</EnablePackageValidation>
1414
<GenerateDocumentationFile>false</GenerateDocumentationFile>
15-
<!--
16-
TODO Go through the code and tidy up the usings
1715
<ImplicitUsings>enable</ImplicitUsings>
18-
-->
1916
<IncludeSymbols>true</IncludeSymbols>
2017
<LangVersion>latest</LangVersion>
2118
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>

perf/Swashbuckle.AspNetCore.Benchmarks/XmlCommentsBenchmark.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System.Collections.Generic;
2-
using System.IO;
3-
using System.Reflection;
1+
using System.Reflection;
42
using System.Xml;
53
using System.Xml.XPath;
64
using BenchmarkDotNet.Attributes;

src/Swashbuckle.AspNetCore.Annotations/AnnotationsDocumentFilter.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using Microsoft.AspNetCore.Mvc.Controllers;
1+
using Microsoft.AspNetCore.Mvc.Controllers;
52
using Microsoft.OpenApi.Models;
63
using Swashbuckle.AspNetCore.SwaggerGen;
74

src/Swashbuckle.AspNetCore.Annotations/AnnotationsOperationFilter.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using Microsoft.OpenApi.Models;
1+
using Microsoft.OpenApi.Models;
52
using Swashbuckle.AspNetCore.SwaggerGen;
63

74
namespace Swashbuckle.AspNetCore.Annotations

src/Swashbuckle.AspNetCore.Annotations/AnnotationsParameterFilter.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using System.Linq;
2-
using System.Reflection;
1+
using System.Reflection;
32
using Microsoft.OpenApi.Models;
43
using Swashbuckle.AspNetCore.SwaggerGen;
54

src/Swashbuckle.AspNetCore.Annotations/AnnotationsRequestBodyFilter.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using System.Linq;
2-
using System.Reflection;
1+
using System.Reflection;
32
using Microsoft.OpenApi.Models;
43
using Swashbuckle.AspNetCore.SwaggerGen;
54

src/Swashbuckle.AspNetCore.Annotations/AnnotationsSchemaFilter.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Reflection;
1+
using System.Reflection;
52
using Microsoft.Extensions.DependencyInjection;
63
using Microsoft.OpenApi.Models;
74
using Swashbuckle.AspNetCore.SwaggerGen;

src/Swashbuckle.AspNetCore.Annotations/AnnotationsSwaggerGenOptionsExtensions.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text.Json.Serialization;
1+
using System.Text.Json.Serialization;
52
using Swashbuckle.AspNetCore.SwaggerGen;
63
using Swashbuckle.AspNetCore.Annotations;
74

src/Swashbuckle.AspNetCore.Annotations/SwaggerDiscriminatorAttribute.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System;
2-
3-
namespace Swashbuckle.AspNetCore.Annotations
1+
namespace Swashbuckle.AspNetCore.Annotations
42
{
53
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface, AllowMultiple = false)]
64
public class SwaggerDiscriminatorAttribute : Attribute

src/Swashbuckle.AspNetCore.Annotations/SwaggerOperationAttribute.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System;
2-
3-
namespace Swashbuckle.AspNetCore.Annotations
1+
namespace Swashbuckle.AspNetCore.Annotations
42
{
53
/// <summary>
64
/// Enriches Operation metadata for a given action method

0 commit comments

Comments
 (0)