]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Treat duplicate dependency warnings as errors (#38480)
authorTayrtahn <tayrtahn@gmail.com>
Sat, 21 Jun 2025 22:25:20 +0000 (18:25 -0400)
committerGitHub <noreply@github.com>
Sat, 21 Jun 2025 22:25:20 +0000 (00:25 +0200)
* Treat duplicate dependency warnings as errors

* GitHub workflows

* commas

* Maybe we just don't use these?

* I think we can get rid of these?

.github/workflows/build-docfx.yml
.github/workflows/build-map-renderer.yml
.github/workflows/build-test-debug.yml
Content.Client/Content.Client.csproj
Content.Replay/Content.Replay.csproj
Content.Server/Content.Server.csproj
Content.Shared/Content.Shared.csproj

index 3ef0497496e39ecd838c766b59e9c3893702bc61..1f010b7291061fb8eea7d49e2a6d47c7878ff558 100644 (file)
@@ -27,7 +27,7 @@ jobs:
       run: dotnet restore
 
     - name: Build Project
-      run: dotnet build --no-restore /p:WarningsAsErrors=nullable
+      run: dotnet build --no-restore
 
     - name: Build DocFX
       uses: nikeee/docfx-action@v1.0.0
index 3d01618348b23dafc85e88b647d41de3e2e41ec6..f93f4b25aede8c076a644428c892036433f4e65f 100644 (file)
@@ -42,7 +42,7 @@ jobs:
         run: dotnet restore
 
       - name: Build Project
-        run: dotnet build Content.MapRenderer --configuration Release --no-restore /p:WarningsAsErrors=nullable /m
+        run: dotnet build Content.MapRenderer --configuration Release --no-restore /m
 
       - name: Run Map Renderer
         run: dotnet run --project Content.MapRenderer Dev
index 369239aecfd4caf4681f0b44bb0b4c7d2e027d83..4e391b2aef992bc9f939397ea7e592ea56cf7037 100644 (file)
@@ -42,7 +42,7 @@ jobs:
       run: dotnet restore
 
     - name: Build Project
-      run: dotnet build --configuration DebugOpt --no-restore /p:WarningsAsErrors=nullable /m
+      run: dotnet build --configuration DebugOpt --no-restore /m
 
     - name: Run Content.Tests
       run: dotnet test --no-build --configuration DebugOpt Content.Tests/Content.Tests.csproj -- NUnit.ConsoleOut=0
index 43fd8df2e19aa6eb88f60e4e2c8e69089e6f08da..d8855ce5086af465d8edb5b798792d70fca9c2f4 100644 (file)
@@ -7,7 +7,7 @@
     <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
     <OutputPath>..\bin\Content.Client\</OutputPath>
     <OutputType Condition="'$(FullRelease)' != 'True'">Exe</OutputType>
-    <WarningsAsErrors>nullable</WarningsAsErrors>
+    <WarningsAsErrors>RA0032;nullable</WarningsAsErrors>
     <Nullable>enable</Nullable>
     <Configurations>Debug;Release;Tools;DebugOpt</Configurations>
     <Platforms>AnyCPU</Platforms>
index 9785870143ddf40f9b9a2ce8bc5cb5565ca07dbc..28cfc7f6666b99949cbf22aa0e3b0870b672504f 100644 (file)
@@ -6,7 +6,7 @@
     <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
     <OutputPath>..\bin\Content.Replay\</OutputPath>
     <OutputType Condition="'$(FullRelease)' != 'True'">Exe</OutputType>
-    <WarningsAsErrors>nullable</WarningsAsErrors>
+    <WarningsAsErrors>RA0032;nullable</WarningsAsErrors>
     <Nullable>enable</Nullable>
   </PropertyGroup>
   <ItemGroup>
index ffc4df7ed1662f515c7890a0d5a560cb5761bd5e..e2b65b873c8f7b98de87d1aa390f3f7e74e6aa28 100644 (file)
@@ -9,7 +9,7 @@
     <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
     <OutputType Condition="'$(FullRelease)' != 'True'">Exe</OutputType>
     <NoWarn>1998</NoWarn>
-    <WarningsAsErrors>nullable</WarningsAsErrors>
+    <WarningsAsErrors>RA0032;nullable</WarningsAsErrors>
     <Nullable>enable</Nullable>
     <ServerGarbageCollection>true</ServerGarbageCollection>
   </PropertyGroup>
index 4cca399b28b9768c2268ce358511ed3684970001..52ed717e960b5c846537c5ba7545142a419d1d9d 100644 (file)
@@ -5,7 +5,7 @@
     <LangVersion>12</LangVersion>
     <IsPackable>false</IsPackable>
     <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
-    <WarningsAsErrors>nullable</WarningsAsErrors>
+    <WarningsAsErrors>RA0032;nullable</WarningsAsErrors>
     <Nullable>enable</Nullable>
   </PropertyGroup>
   <ItemGroup>