Skip to content

Commit 42eca30

Browse files
authored
Automatically linting code
1 parent 1286677 commit 42eca30

23 files changed

Lines changed: 62 additions & 100 deletions

.build/Build.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using Nuke.Common.Tools.DotNet;
77
using Nuke.Common.Tools.GitVersion;
88
using Nuke.Common.Tools.MSBuild;
9+
910
using Rocket.Surgery.Nuke.DotNetCore;
1011

1112
[PublicAPI]

.build/Pipeline.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
using System.Diagnostics;
2+
23
using Nuke.Common.CI.GitHubActions;
4+
35
using Rocket.Surgery.Nuke.ContinuousIntegration;
46
using Rocket.Surgery.Nuke.GithubActions;
57
using Rocket.Surgery.Nuke.Jobs;

.github/workflows/lint.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,6 @@ jobs:
6363
uses: actions/setup-dotnet@v5
6464
with:
6565
dotnet-version: '8.0.x'
66-
- name: 🔨 Use .NET Core 9.0 SDK
67-
uses: actions/setup-dotnet@v5
68-
with:
69-
dotnet-version: '9.0.x'
7066
- name: 🔨 Use .NET Core 10.0 SDK
7167
uses: actions/setup-dotnet@v5
7268
with:

Directory.Build.props

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@
3939
PackagePath="/images/"
4040
Visible="false"
4141
/>
42-
<None Include="$(MSBuildThisFileDirectory)/LICENSE" Pack="true" PackagePath="/"
43-
Visible="false" />
42+
<None Include="$(MSBuildThisFileDirectory)/LICENSE" Pack="true" PackagePath="/" Visible="false" />
4443
</ItemGroup>
4544
<ItemGroup>
4645
<ProjectCapability Include="DynamicDependentFile" />

Directory.Build.targets

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8" ?>
22
<Project>
33
<ItemGroup>
4-
<PackageReference Include="JetBrains.Annotations.Sources" PrivateAssets="all"
5-
Condition="'$(MSBuildProjectName)'!='.build'" />
6-
<PackageReference Include="JetBrains.ExternalAnnotations" PrivateAssets="all" />
4+
<PackageReference Include="JetBrains.Annotations.Sources" PrivateAssets="all" Condition="'$(MSBuildProjectName)'!='.build'" />
5+
76
</ItemGroup>
8-
</Project>
7+
</Project>

Directory.Packages.props

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8" ?>
22
<Project>
33
<PropertyGroup>
44
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
55
</PropertyGroup>
66
<ItemGroup>
77
<GlobalPackageReference Include="Rocket.Surgery.MSBuild.CI" Version="1.3.0-beta.2" />
8-
<GlobalPackageReference Include="Rocket.Surgery.MSBuild.GlobalAnalyzerConfig"
9-
Version="1.3.0-beta.2" />
8+
<GlobalPackageReference Include="Rocket.Surgery.MSBuild.GlobalAnalyzerConfig" Version="1.3.0-beta.2" />
109
<GlobalPackageReference Include="Rocket.Surgery.MSBuild.GitVersion" Version="1.3.0-beta.2" />
1110
<GlobalPackageReference Include="Rocket.Surgery.MSBuild.SourceLink" Version="1.3.0-beta.2" />
1211
<GlobalPackageReference Include="Rocket.Surgery.MyAssembly" Version="1.3.0-beta.2" />
13-
<GlobalPackageReference Include="Microsoft.CodeAnalysis.Analyzers"
14-
Version="5.0.0-1.25277.114" />
15-
<GlobalPackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers"
16-
Version="5.0.0-1.25277.114" />
12+
<GlobalPackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="5.0.0-1.25277.114" />
13+
<GlobalPackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" Version="5.0.0-1.25277.114" />
1714
<GlobalPackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
1815
<GlobalPackageReference Include="Roslynator.Analyzers" Version="4.14.0" />
1916
<GlobalPackageReference Include="Roslynator.Formatting.Analyzers" Version="4.14.0" />
@@ -47,10 +44,8 @@
4744
<PackageVersion Include="Microsoft.CodeAnalysis.Features" Version="4.14.0" />
4845
<PackageVersion Include="Microsoft.CodeAnalysis.Workspaces.Common" Version="4.14.0" />
4946
<PackageVersion Include="Microsoft.Extensions.Configuration" Version="10.0.0-rc.1.25451.107" />
50-
<PackageVersion Include="Microsoft.Extensions.Configuration.Binder"
51-
Version="10.0.0-rc.1.25451.107" />
52-
<PackageVersion Include="Microsoft.Extensions.DependencyInjection"
53-
Version="10.0.0-rc.1.25451.107" />
47+
<PackageVersion Include="Microsoft.Extensions.Configuration.Binder" Version="10.0.0-rc.1.25451.107" />
48+
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="10.0.0-rc.1.25451.107" />
5449
<PackageVersion Include="Microsoft.Extensions.Logging" Version="10.0.0-rc.1.25451.107" />
5550

5651
<PackageVersion Include="Serilog" Version="4.3.0" />
@@ -86,4 +81,4 @@
8681
Project="$(MSBuildThisFileDirectory)/Directory.Packages.support.props"
8782
Condition="Exists('$(MSBuildThisFileDirectory)/Directory.Packages.support.props')"
8883
/>
89-
</Project>
84+
</Project>

src/Testing.FakeItEasy/Rocket.Surgery.Extensions.Testing.FakeItEasy.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@
1010
<PackageReference Include="FakeItEasy" />
1111
<PackageReference Include="Verify.FakeItEasy" />
1212
<!-- Disabled for now to handle scenarios with enumerables -->
13-
<ProjectReference Include="../Testing/Rocket.Surgery.Extensions.Testing.csproj"
14-
PrivateAssets="contentfiles" />
13+
<ProjectReference Include="../Testing/Rocket.Surgery.Extensions.Testing.csproj" PrivateAssets="contentfiles" />
1514
</ItemGroup>
1615
<ItemGroup>
1716
<None Include="build/*.*" Pack="true" PackagePath="build" />
1817
<None Include="buildMultiTargeting/*.*" Pack="true" PackagePath="buildMultiTargeting" />
1918
</ItemGroup>
20-
</Project>
19+
</Project>

src/Testing.Fixtures/Rocket.Surgery.Extensions.Testing.Fixtures.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
<IsTestProject>false</IsTestProject>
66
</PropertyGroup>
77

8-
</Project>
8+
</Project>

src/Testing.Moq/Rocket.Surgery.Extensions.Testing.Moq.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@
1111
<PackageReference Include="Verify.Moq" />
1212
<!-- Disabled for now to handle scenarios with enumerables -->
1313
<!-- <PackageReference Include="Autofac.Extras.Moq" /> -->
14-
<ProjectReference Include="../Testing/Rocket.Surgery.Extensions.Testing.csproj"
15-
PrivateAssets="contentfiles;analyzers" />
14+
<ProjectReference Include="../Testing/Rocket.Surgery.Extensions.Testing.csproj" PrivateAssets="contentfiles;analyzers" />
1615
</ItemGroup>
1716
<ItemGroup>
1817
<None Include="build/*.*" Pack="true" PackagePath="build" />
1918
<None Include="buildMultiTargeting/*.*" Pack="true" PackagePath="buildMultiTargeting" />
2019
</ItemGroup>
21-
</Project>
20+
</Project>

src/Testing.NSubstitute/Rocket.Surgery.Extensions.Testing.NSubstitute.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
<PackageReference Include="NSubstitute" />
1212
<PackageReference Include="Verify.NSubstitute" />
1313
<!-- Disabled for now to handle scenarios with enumerables -->
14-
<ProjectReference Include="../Testing/Rocket.Surgery.Extensions.Testing.csproj"
15-
PrivateAssets="contentfiles" />
14+
<ProjectReference Include="../Testing/Rocket.Surgery.Extensions.Testing.csproj" PrivateAssets="contentfiles" />
1615
</ItemGroup>
17-
</Project>
16+
</Project>

0 commit comments

Comments
 (0)