Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

House keeping - Update dependencies and optimize usings #483

Merged
merged 4 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
8 changes: 1 addition & 7 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 Expand Up @@ -53,7 +47,7 @@ public static IEnumerable<string> GetParameters(
? string.Empty
: $"[{GetAliasAsAttribute(p)}]";

return $"{generatedAliasAsAttribute} StreamPart {p.VariableName}";
return $"{generatedAliasAsAttribute}StreamPart {p.VariableName}";
})
.ToList();

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
2 changes: 1 addition & 1 deletion src/Refitter.Tests/Build/ProjectFileContents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public static class ProjectFileContents
<PackageReference Include=""System.Runtime.Serialization.Primitives"" Version=""4.3.0"" />
<PackageReference Include=""Microsoft.Extensions.DependencyInjection"" Version=""8.0.0"" />
<PackageReference Include=""Microsoft.Extensions.Http.Polly"" Version=""8.0.7"" />
<PackageReference Include=""Microsoft.Extensions.Http.Resilience"" Version=""8.7.0"" />
<PackageReference Include=""Microsoft.Extensions.Http.Resilience"" Version=""8.9.1"" />
<PackageReference Include=""Microsoft.Extensions.Options.ConfigurationExtensions"" Version=""8.0.0"" />
<PackageReference Include=""Polly.Contrib.WaitAndRetry"" Version=""1.1.1"" />
<PackageReference Include=""System.Reactive"" Version=""6.0.1"" />
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
Loading
Loading