Skip to content

Commit 436e12f

Browse files
authored
Merge pull request #22 from messerli-informatik-ag/gardening
Gardening
2 parents dc07074 + 44242b6 commit 436e12f

File tree

10 files changed

+11
-23
lines changed

10 files changed

+11
-23
lines changed

.editorconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ indent_style = space
88
indent_size = 4
99
trim_trailing_whitespace = true
1010

11-
[.gitmodules]
12-
indent_style = tab
13-
1411
[*.{props,sln,targets}]
1512
indent_style = tab
1613

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ jobs:
2121
- name: Restore dependencies
2222
run: dotnet restore -property:AutofacVersion=${{matrix.autofac}}
2323
- name: Build
24-
run: dotnet build --no-restore
24+
run: dotnet build --no-restore /p:TreatWarningsAsErrors=true
2525
- name: Run Tests
26-
run: dotnet test --no-restore --verbosity normal
26+
run: dotnet test --no-build

CompositionRoot.Test/CompositionRoot.Test.csproj

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,9 @@
66
</PropertyGroup>
77
<PropertyGroup>
88
<IsPackable>false</IsPackable>
9-
<TargetFramework>netcoreapp3.1</TargetFramework>
10-
<LangVersion>8.0</LangVersion>
9+
<TargetFramework>net5.0</TargetFramework>
10+
<LangVersion>9.0</LangVersion>
1111
<Nullable>enable</Nullable>
12-
<NullableContextOptions>enable</NullableContextOptions>
13-
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
14-
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1512
</PropertyGroup>
1613
<ItemGroup>
1714
<ProjectReference Include="..\CompositionRoot\CompositionRoot.csproj" />

CompositionRoot.Test/Stubs/Bar.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using Messerli.CompositionRoot.Test.Stubs;
2-
31
namespace Messerli.CompositionRoot.Test.Stubs
42
{
53
internal sealed class Bar : IBar

CompositionRoot.Test/Stubs/BarModule.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using Autofac;
2-
using Messerli.CompositionRoot.Test.Stubs;
32

43
namespace Messerli.CompositionRoot.Test.Stubs
54
{

CompositionRoot/CompositionRoot.csproj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@
77
</PropertyGroup>
88
<PropertyGroup>
99
<TargetFrameworks>netcoreapp3.1;netstandard2.1;netstandard2.0</TargetFrameworks>
10-
<LangVersion>8.0</LangVersion>
10+
<LangVersion>9.0</LangVersion>
1111
<Nullable>enable</Nullable>
12-
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
13-
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1412
</PropertyGroup>
1513
<PropertyGroup>
1614
<PackageId>Messerli.CompositionRoot</PackageId>

CompositionRoot/CompositionRootBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace Messerli.CompositionRoot
55
{
66
public sealed class CompositionRootBuilder
77
{
8-
private readonly ContainerBuilder _builder = new ContainerBuilder();
8+
private readonly ContainerBuilder _builder = new();
99

1010
public CompositionRootBuilder RegisterModule<T>()
1111
where T : IModule, new()

CompositionRoot/ModuleBuilder.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ public ModuleBuilder Register(Register registrationFunction)
3838
public IModule Build()
3939
=> new ModuleRegistrar(_registrations);
4040

41-
private static ModuleBuilder ShallowClone(ImmutableList<Register> registrations)
42-
=> new ModuleBuilder(registrations);
41+
private static ModuleBuilder ShallowClone(ImmutableList<Register> registrations) => new(registrations);
4342
}
4443
}

Packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<PackageReference Update="System.Collections.Immutable" Version="1.6" />
77
</ItemGroup>
88
<ItemGroup Label="Build Dependencies">
9-
<PackageReference Update="Messerli.CodeStyle" Version="[1.2.1, 2)" />
9+
<PackageReference Update="Messerli.CodeStyle" Version="2.1.1" />
1010
</ItemGroup>
1111
<ItemGroup Label="Test Dependencies">
1212
<PackageReference Update="Microsoft.NET.Test.Sdk" Version="[15.9.2, 16)" />

global.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"sdk": {
3-
"version": "3.1.402",
4-
"rollForward": "latestPatch"
3+
"version": "5.0.402",
4+
"rollForward": "latestFeature"
55
},
66
"msbuild-sdks": {
7-
"Microsoft.Build.CentralPackageVersions": "2.0.52"
7+
"Microsoft.Build.CentralPackageVersions": "2.0.79"
88
}
99
}

0 commit comments

Comments
 (0)