Skip to content

Commit

Permalink
Optimize usings
Browse files Browse the repository at this point in the history
  • Loading branch information
christianhelle committed Sep 19, 2024
1 parent 616896f commit c32a338
Show file tree
Hide file tree
Showing 57 changed files with 10 additions and 145 deletions.
2 changes: 0 additions & 2 deletions src/Refitter.Core/ApizrRegistrationGenerator.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System.Globalization;
using System.Text;
using System.Text.RegularExpressions;

using Refitter.Core.Settings;

namespace Refitter.Core;
Expand Down
1 change: 0 additions & 1 deletion src/Refitter.Core/CSharpClientGeneratorFactory.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System.Reflection;
using NJsonSchema.CodeGeneration;
using NJsonSchema.CodeGeneration.CSharp;

using NSwag;
using NSwag.CodeGeneration.CSharp;

Expand Down
1 change: 0 additions & 1 deletion src/Refitter.Core/CustomCSharpPropertyNameGenerator.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Diagnostics.CodeAnalysis;

using NJsonSchema;
using NJsonSchema.CodeGeneration;

Expand Down
3 changes: 0 additions & 3 deletions src/Refitter.Core/OpenApiDocumentFactory.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
using System.Net;

using Microsoft.OpenApi.Extensions;
using Microsoft.OpenApi.Readers;

using NSwag;

using OpenApiDocument = NSwag.OpenApiDocument;

namespace Refitter.Core;
Expand Down
6 changes: 2 additions & 4 deletions src/Refitter.Core/OperationNameGenerator.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using NSwag;
using System.Diagnostics.CodeAnalysis;
using NSwag;
using NSwag.CodeGeneration.OperationNameGenerators;

using System.Diagnostics.CodeAnalysis;

using GeneratorType = Refitter.Core.OperationNameGeneratorTypes;

namespace Refitter.Core;
Expand Down
6 changes: 0 additions & 6 deletions src/Refitter.Core/ParameterExtractor.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
using System.Linq;
using System.Text.RegularExpressions;
using System.Text;
using System.Xml.Linq;

using NSwag;
using NSwag.CodeGeneration.CSharp.Models;
using NSwag.CodeGeneration.Models;

using YamlDotNet.Serialization;

namespace Refitter.Core;

internal static class ParameterExtractor
Expand Down
5 changes: 2 additions & 3 deletions src/Refitter.Core/RefitGenerator.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using NSwag;

using System.Text;
using System.Text;
using System.Text.RegularExpressions;
using NSwag;

namespace Refitter.Core;

Expand Down
1 change: 0 additions & 1 deletion src/Refitter.Core/RefitInterfaceGenerator.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System.Text;
using System.Text.RegularExpressions;

using NSwag;
using NSwag.CodeGeneration.CSharp.Models;

Expand Down
1 change: 0 additions & 1 deletion src/Refitter.Core/RefitInterfaceImports.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Text.RegularExpressions;

Expand Down
5 changes: 1 addition & 4 deletions src/Refitter.Core/RefitMultipleInterfaceByTagGenerator.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System.Reflection;
using System.Text;
using System.Xml.Linq;

using System.Text;
using NSwag;

namespace Refitter.Core;
Expand Down
2 changes: 0 additions & 2 deletions src/Refitter.Core/RefitMultipleInterfaceGenerator.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Text;
using System.Xml.Linq;

using NSwag;

namespace Refitter.Core;
Expand Down
2 changes: 0 additions & 2 deletions src/Refitter.Core/SchemaCleaner.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System.Text.RegularExpressions;

using NJsonSchema;

using NSwag;

namespace Refitter.Core;
Expand Down
1 change: 0 additions & 1 deletion src/Refitter.Core/Serializer.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Text.Json;

using JsonSerializerOptions = System.Text.Json.JsonSerializerOptions;

namespace Refitter.Core;
Expand Down
5 changes: 1 addition & 4 deletions src/Refitter.Core/Settings/ApizrPackages.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.ComponentModel;

namespace Refitter.Core.Settings
{
Expand Down
5 changes: 1 addition & 4 deletions src/Refitter.Core/Settings/ApizrSettings.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.Json.Serialization;
using System.Text.Json.Serialization;

namespace Refitter.Core
{
Expand Down
1 change: 0 additions & 1 deletion src/Refitter.Core/XmlDocumentationGenerator.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Text;

using NSwag;
using NSwag.CodeGeneration.CSharp.Models;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
using FluentAssertions;

using Refit;

using Refitter.Tests.CustomGenerated;

using Xunit;

namespace Refitter.SourceGenerators.Tests;
Expand Down
3 changes: 0 additions & 3 deletions src/Refitter.SourceGenerator.Tests/DelegatingHandlers.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
namespace Refitter.Tests.AdditionalFiles.SingeInterface
{
using System;
using Microsoft.Extensions.DependencyInjection;

public class EmptyMessageHandler : DelegatingHandler
{
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
using FluentAssertions;

using Refit;

using Refitter.Tests.AdditionalFiles.ByTag;

using Xunit;

namespace Refitter.SourceGenerators.Tests;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
using FluentAssertions;

using Refit;

using Refitter.Tests.AdditionalFiles.ByEndpoint;

using Xunit;

namespace Refitter.SourceGenerators.Tests;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
using FluentAssertions;

using Refit;

using Refitter.Tests.AdditionalFiles.OptionalParameters;

using Xunit;

namespace Refitter.SourceGenerators.Tests;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
using FluentAssertions;

using Refit;

using Refitter.Tests.AdditionalFiles.SingeInterface;

using Xunit;

namespace Refitter.SourceGenerators.Tests;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using FluentAssertions;

using Refitter.Tests.UseJsonInheritanceConverter;
using Xunit;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System.Text.Json.Serialization;
using FluentAssertions;

using Refitter.Tests.UsePolymorphicSerialization;

using Xunit;

namespace Refitter.SourceGenerators.Tests;
Expand Down
2 changes: 0 additions & 2 deletions src/Refitter.SourceGenerator/RefitterSourceGenerator.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;

using Microsoft.CodeAnalysis;

using Refitter.Core;

namespace Refitter.SourceGenerator;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using FluentAssertions;

using Refitter.Core;

using Xunit;

namespace Refitter.Tests;
Expand Down
2 changes: 0 additions & 2 deletions src/Refitter.Tests/ApizrGeneratorWithPollyTests.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using FluentAssertions;

using Refitter.Core;

using Xunit;

namespace Refitter.Tests;
Expand Down
8 changes: 0 additions & 8 deletions src/Refitter.Tests/CustomCSharpGeneratorSettingsTests.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
using System.Dynamic;
using System.Text.Json;

using Atc.Test;

using FluentAssertions;

using NJsonSchema.CodeGeneration.CSharp;

using Refitter.Core;
using Refitter.Tests.Resources;

using Xunit;

namespace Refitter.Tests;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using FluentAssertions;

using Refitter.Core;

using Xunit;

namespace Refitter.Tests;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using FluentAssertions;

using Refitter.Core;

using Xunit;

namespace Refitter.Tests;
Expand Down
2 changes: 0 additions & 2 deletions src/Refitter.Tests/Examples/ApizrTests.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using FluentAssertions;

using Refitter.Core;
using Refitter.Tests.Build;

using Xunit;

namespace Refitter.Tests.Examples;
Expand Down
2 changes: 0 additions & 2 deletions src/Refitter.Tests/Examples/CaseSensitiveParametersTests.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using FluentAssertions;

using Refitter.Core;
using Refitter.Tests.Build;

using Xunit;

namespace Refitter.Tests.Examples;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using FluentAssertions;

using Refitter.Core;
using Refitter.Tests.Build;

using Xunit;

namespace Refitter.Tests.Examples;
Expand Down
2 changes: 0 additions & 2 deletions src/Refitter.Tests/Examples/DeprecatedEndpointTests.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using FluentAssertions;

using Refitter.Core;
using Refitter.Tests.Build;

using Xunit;

namespace Refitter.Tests.Examples;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using FluentAssertions;

using Refitter.Core;
using Refitter.Tests.Build;

using Xunit;

namespace Refitter.Tests.Examples;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using FluentAssertions;

using Refitter.Core;
using Refitter.Tests.Build;

using Xunit;

namespace Refitter.Tests.Examples;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using FluentAssertions;

using Refitter.Core;
using Refitter.Tests.Build;

using Xunit;

namespace Refitter.Tests.Examples;
Expand Down
2 changes: 0 additions & 2 deletions src/Refitter.Tests/Examples/FilterByPathTests.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using FluentAssertions;

using Refitter.Core;
using Refitter.Tests.Build;

using Xunit;

namespace Refitter.Tests.Examples;
Expand Down
2 changes: 0 additions & 2 deletions src/Refitter.Tests/Examples/FilterByTagsTests.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using FluentAssertions;

using Refitter.Core;
using Refitter.Tests.Build;

using Xunit;

namespace Refitter.Tests.Examples;
Expand Down
2 changes: 0 additions & 2 deletions src/Refitter.Tests/Examples/KeepSchemaPatternsTests.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using FluentAssertions;

using Refitter.Core;
using Refitter.Tests.Build;

using Xunit;

namespace Refitter.Tests.Examples;
Expand Down
2 changes: 0 additions & 2 deletions src/Refitter.Tests/Examples/MultiPartFormDataTests.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using FluentAssertions;

using Refitter.Core;
using Refitter.Tests.Build;

using Xunit;

namespace Refitter.Tests.Examples;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using FluentAssertions;

using Refitter.Core;
using Refitter.Tests.Build;

using Xunit;

namespace Refitter.Tests.Examples;
Expand Down
2 changes: 0 additions & 2 deletions src/Refitter.Tests/Examples/TrimUnusedSchemaTests.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using FluentAssertions;

using Refitter.Core;
using Refitter.Tests.Build;

using Xunit;

namespace Refitter.Tests.Examples;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using FluentAssertions;

using Refitter.Core;
using Refitter.Tests.Build;

using Xunit;

namespace Refitter.Tests.Examples;
Expand Down
Loading

0 comments on commit c32a338

Please sign in to comment.