Skip to content

Commit 1dd8aaf

Browse files
committed
style: upgrade and applied charpier 1.0.1
1 parent bd58fc4 commit 1dd8aaf

File tree

43 files changed

+361
-447
lines changed

Some content is hidden

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

43 files changed

+361
-447
lines changed

.config/dotnet-tools.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
"isRoot": true,
44
"tools": {
55
"csharpier": {
6-
"version": "0.30.6",
6+
"version": "1.0.1",
77
"commands": [
8-
"dotnet-csharpier"
8+
"csharpier"
99
],
1010
"rollForward": false
1111
}
1212
}
13-
}
13+
}
Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
3-
<PropertyGroup>
4-
<RootNamespace>ScriptBee.Analysis.Instance.Docker</RootNamespace>
5-
</PropertyGroup>
6-
7-
<ItemGroup>
8-
<ProjectReference Include="..\..\..\Application\Ports\Driven\Ports.Instance\Ports.Instance.csproj" />
9-
</ItemGroup>
10-
11-
<ItemGroup>
12-
<PackageReference Include="Docker.DotNet" />
13-
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" />
14-
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" />
15-
</ItemGroup>
2+
<PropertyGroup>
3+
<RootNamespace>ScriptBee.Analysis.Instance.Docker</RootNamespace>
4+
</PropertyGroup>
5+
<ItemGroup>
6+
<ProjectReference Include="..\..\..\Application\Ports\Driven\Ports.Instance\Ports.Instance.csproj" />
7+
</ItemGroup>
8+
<ItemGroup>
9+
<PackageReference Include="Docker.DotNet" />
10+
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" />
11+
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" />
12+
</ItemGroup>
1613
</Project>
Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
3-
<PropertyGroup>
4-
<RootNamespace>ScriptBee.Marketplace.Client</RootNamespace>
5-
</PropertyGroup>
6-
7-
<ItemGroup>
8-
<PackageReference Include="DxWorks.Hub.Sdk" />
9-
<PackageReference Include="Microsoft.Extensions.DependencyInjection"/>
10-
<PackageReference Include="Microsoft.Extensions.Http"/>
11-
</ItemGroup>
12-
13-
<ItemGroup>
14-
<ProjectReference Include="..\..\..\Application\Domain\Model\Model.csproj" />
15-
<ProjectReference Include="..\..\..\Application\Ports\Driven\Ports.Plugins\Ports.Plugins.csproj" />
16-
</ItemGroup>
2+
<PropertyGroup>
3+
<RootNamespace>ScriptBee.Marketplace.Client</RootNamespace>
4+
</PropertyGroup>
5+
<ItemGroup>
6+
<PackageReference Include="DxWorks.Hub.Sdk" />
7+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" />
8+
<PackageReference Include="Microsoft.Extensions.Http" />
9+
</ItemGroup>
10+
<ItemGroup>
11+
<ProjectReference Include="..\..\..\Application\Domain\Model\Model.csproj" />
12+
<ProjectReference Include="..\..\..\Application\Ports\Driven\Ports.Plugins\Ports.Plugins.csproj" />
13+
</ItemGroup>
1714
</Project>
Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
3-
<PropertyGroup>
4-
<RootNamespace>ScriptBee.Persistence.File</RootNamespace>
5-
</PropertyGroup>
6-
7-
<ItemGroup>
8-
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions"/>
9-
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions"/>
10-
<PackageReference Include="YamlDotNet" />
11-
</ItemGroup>
12-
13-
<ItemGroup>
14-
<ProjectReference Include="..\..\..\Application\Ports\Driven\Ports.Files\Ports.Files.csproj"/>
15-
<ProjectReference Include="..\..\..\Application\Ports\Driven\Ports.Plugins\Ports.Plugins.csproj"/>
16-
<ProjectReference Include="..\..\..\Application\Ports\Driven\Ports.Project\Ports.Project.csproj"/>
17-
<ProjectReference Include="..\..\..\Application\Ports\Driven\Ports.Analysis\Ports.Analysis.csproj"/>
18-
</ItemGroup>
2+
<PropertyGroup>
3+
<RootNamespace>ScriptBee.Persistence.File</RootNamespace>
4+
</PropertyGroup>
5+
<ItemGroup>
6+
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" />
7+
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" />
8+
<PackageReference Include="YamlDotNet" />
9+
</ItemGroup>
10+
<ItemGroup>
11+
<ProjectReference Include="..\..\..\Application\Ports\Driven\Ports.Files\Ports.Files.csproj" />
12+
<ProjectReference Include="..\..\..\Application\Ports\Driven\Ports.Plugins\Ports.Plugins.csproj" />
13+
<ProjectReference Include="..\..\..\Application\Ports\Driven\Ports.Project\Ports.Project.csproj" />
14+
<ProjectReference Include="..\..\..\Application\Ports\Driven\Ports.Analysis\Ports.Analysis.csproj" />
15+
</ItemGroup>
1916
</Project>
Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
<PropertyGroup>
3-
<RootNamespace>ScriptBee.Persistence.InMemory</RootNamespace>
4-
</PropertyGroup>
5-
6-
<ItemGroup>
7-
<ProjectReference Include="..\..\..\Application\Ports\Driven\Ports.Plugins\Ports.Plugins.csproj" />
8-
</ItemGroup>
9-
10-
<ItemGroup>
11-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" />
12-
</ItemGroup>
2+
<PropertyGroup>
3+
<RootNamespace>ScriptBee.Persistence.InMemory</RootNamespace>
4+
</PropertyGroup>
5+
<ItemGroup>
6+
<ProjectReference Include="..\..\..\Application\Ports\Driven\Ports.Plugins\Ports.Plugins.csproj" />
7+
</ItemGroup>
8+
<ItemGroup>
9+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" />
10+
</ItemGroup>
1311
</Project>
Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
3-
<PropertyGroup>
4-
<RootNamespace>ScriptBee.Persistence.Mongodb</RootNamespace>
5-
</PropertyGroup>
6-
7-
<ItemGroup>
8-
<ProjectReference Include="..\..\..\Application\Ports\Driven\Ports.Files\Ports.Files.csproj"/>
9-
<ProjectReference Include="..\..\..\Application\Ports\Driven\Ports.Instance\Ports.Instance.csproj"/>
10-
<ProjectReference Include="..\..\..\Application\Ports\Driven\Ports.Project\Ports.Project.csproj"/>
11-
<ProjectReference Include="..\..\..\Application\Ports\Driven\Ports.Analysis\Ports.Analysis.csproj"/>
12-
</ItemGroup>
13-
14-
<ItemGroup>
15-
<PackageReference Include="MongoDB.Bson"/>
16-
<PackageReference Include="MongoDB.Driver"/>
17-
<PackageReference Include="Microsoft.Extensions.DependencyInjection"/>
18-
</ItemGroup>
19-
2+
<PropertyGroup>
3+
<RootNamespace>ScriptBee.Persistence.Mongodb</RootNamespace>
4+
</PropertyGroup>
5+
<ItemGroup>
6+
<ProjectReference Include="..\..\..\Application\Ports\Driven\Ports.Files\Ports.Files.csproj" />
7+
<ProjectReference Include="..\..\..\Application\Ports\Driven\Ports.Instance\Ports.Instance.csproj" />
8+
<ProjectReference Include="..\..\..\Application\Ports\Driven\Ports.Project\Ports.Project.csproj" />
9+
<ProjectReference Include="..\..\..\Application\Ports\Driven\Ports.Analysis\Ports.Analysis.csproj" />
10+
</ItemGroup>
11+
<ItemGroup>
12+
<PackageReference Include="MongoDB.Bson" />
13+
<PackageReference Include="MongoDB.Driver" />
14+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" />
15+
</ItemGroup>
2016
</Project>
Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
3-
<PropertyGroup>
4-
<RootNamespace>ScriptBee.Rest</RootNamespace>
5-
</PropertyGroup>
6-
7-
<ItemGroup>
8-
<ProjectReference Include="..\..\..\Application\Ports\Driven\Ports.Instance\Ports.Instance.csproj" />
9-
<ProjectReference Include="..\..\..\Application\Ports\Driven\Ports.Plugins\Ports.Plugins.csproj" />
10-
</ItemGroup>
11-
12-
<ItemGroup>
13-
<PackageReference Include="Microsoft.Extensions.Http" />
14-
<PackageReference Include="Refit" />
15-
</ItemGroup>
16-
17-
<ItemGroup>
18-
<Folder Include="bin\" />
19-
</ItemGroup>
2+
<PropertyGroup>
3+
<RootNamespace>ScriptBee.Rest</RootNamespace>
4+
</PropertyGroup>
5+
<ItemGroup>
6+
<ProjectReference Include="..\..\..\Application\Ports\Driven\Ports.Instance\Ports.Instance.csproj" />
7+
<ProjectReference Include="..\..\..\Application\Ports\Driven\Ports.Plugins\Ports.Plugins.csproj" />
8+
</ItemGroup>
9+
<ItemGroup>
10+
<PackageReference Include="Microsoft.Extensions.Http" />
11+
<PackageReference Include="Refit" />
12+
</ItemGroup>
13+
<ItemGroup>
14+
<Folder Include="bin\" />
15+
</ItemGroup>
2016
</Project>
Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
2-
<PropertyGroup>
3-
<RootNamespace>ScriptBee.Analysis.Web</RootNamespace>
4-
</PropertyGroup>
5-
6-
<ItemGroup>
7-
<PackageReference Include="FluentValidation"/>
8-
<PackageReference Include="FluentValidation.DependencyInjectionExtensions"/>
9-
</ItemGroup>
10-
11-
<ItemGroup>
12-
<ProjectReference Include="..\..\..\Common\Common.csproj" />
13-
<ProjectReference Include="..\..\Driven\Persistence.InMemory\Persistence.InMemory.csproj" />
14-
<ProjectReference Include="..\Common.Web\Common.Web.csproj"/>
15-
<ProjectReference Include="..\..\..\Application\Domain\Service.Analysis\Service.Analysis.csproj" />
16-
<ProjectReference Include="..\..\..\Application\Domain\Service.Plugin\Service.Plugin.csproj" />
17-
<ProjectReference Include="..\..\..\Application\Ports\Driving\UseCases.Analysis\UseCases.Analysis.csproj"/>
18-
<ProjectReference Include="..\..\Driven\Persistence.File\Persistence.File.csproj" />
19-
<ProjectReference Include="..\..\Driven\Persistence.Mongodb\Persistence.Mongodb.csproj" />
20-
</ItemGroup>
2+
<PropertyGroup>
3+
<RootNamespace>ScriptBee.Analysis.Web</RootNamespace>
4+
</PropertyGroup>
5+
<ItemGroup>
6+
<PackageReference Include="FluentValidation" />
7+
<PackageReference Include="FluentValidation.DependencyInjectionExtensions" />
8+
</ItemGroup>
9+
<ItemGroup>
10+
<ProjectReference Include="..\..\..\Common\Common.csproj" />
11+
<ProjectReference Include="..\..\Driven\Persistence.InMemory\Persistence.InMemory.csproj" />
12+
<ProjectReference Include="..\Common.Web\Common.Web.csproj" />
13+
<ProjectReference Include="..\..\..\Application\Domain\Service.Analysis\Service.Analysis.csproj" />
14+
<ProjectReference Include="..\..\..\Application\Domain\Service.Plugin\Service.Plugin.csproj" />
15+
<ProjectReference Include="..\..\..\Application\Ports\Driving\UseCases.Analysis\UseCases.Analysis.csproj" />
16+
<ProjectReference Include="..\..\Driven\Persistence.File\Persistence.File.csproj" />
17+
<ProjectReference Include="..\..\Driven\Persistence.Mongodb\Persistence.Mongodb.csproj" />
18+
</ItemGroup>
2119
</Project>
Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
3-
<PropertyGroup>
4-
<RootNamespace>ScriptBee.Common.Web</RootNamespace>
5-
</PropertyGroup>
6-
7-
<ItemGroup>
8-
<PackageReference Include="AspNetCore.HealthChecks.MongoDb" />
9-
<PackageReference Include="AspNetCore.HealthChecks.UI.Client" />
10-
<PackageReference Include="FluentValidation"/>
11-
<PackageReference Include="Microsoft.AspNetCore.OpenApi"/>
12-
<PackageReference Include="Polly"/>
13-
<PackageReference Include="Serilog.AspNetCore"/>
14-
<PackageReference Include="Serilog.Expressions"/>
15-
<PackageReference Include="Serilog.Settings.Configuration"/>
16-
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerUI"/>
17-
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks" />
18-
</ItemGroup>
19-
20-
<ItemGroup>
21-
<ProjectReference Include="..\..\..\Application\Domain\Model\Model.csproj"/>
22-
</ItemGroup>
2+
<PropertyGroup>
3+
<RootNamespace>ScriptBee.Common.Web</RootNamespace>
4+
</PropertyGroup>
5+
<ItemGroup>
6+
<PackageReference Include="AspNetCore.HealthChecks.MongoDb" />
7+
<PackageReference Include="AspNetCore.HealthChecks.UI.Client" />
8+
<PackageReference Include="FluentValidation" />
9+
<PackageReference Include="Microsoft.AspNetCore.OpenApi" />
10+
<PackageReference Include="Polly" />
11+
<PackageReference Include="Serilog.AspNetCore" />
12+
<PackageReference Include="Serilog.Expressions" />
13+
<PackageReference Include="Serilog.Settings.Configuration" />
14+
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerUI" />
15+
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks" />
16+
</ItemGroup>
17+
<ItemGroup>
18+
<ProjectReference Include="..\..\..\Application\Domain\Model\Model.csproj" />
19+
</ItemGroup>
2320
</Project>

src/Adapters/Driving/Web/EndpointDefinitions/ProjectStructure/UpdateProjectScriptsEndpoint.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ public void DefineEndpoints(IEndpointRouteBuilder app)
2020
private static async Task<Ok<WebScriptData>> UpdateProjectScript(
2121
[FromRoute] string projectId,
2222
// TODO FIXIT: add validation
23-
[FromBody]
24-
WebUpdateScriptCommand command
23+
[FromBody] WebUpdateScriptCommand command
2524
)
2625
{
2726
await Task.CompletedTask;

0 commit comments

Comments
 (0)