Skip to content

Commit

Permalink
Enforced msbuild warnings (#166)
Browse files Browse the repository at this point in the history
* Enforced msbuild warnings

* removed inline suppression

* fix
  • Loading branch information
JR-Morgan authored Nov 18, 2024
1 parent 715bb72 commit 105395e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
6 changes: 3 additions & 3 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@
<!-- Globalization rules -->
CA1303;CA1304;CA1305;CA1307;CA1308;CA1309;CA1310;CA1311;
<!-- Logging -->
CA1848;CA2254;CA1727;
CA1848;CA1727;
<!-- Others we don't want -->
CA1815;CA1725;
<!-- Naming things is hard enough -->
CA1710;CA1711;CA1724;CA1716;CA1720;CA1724;
CA1710;CA1711;CA1720;CA1724;
<!-- Aspirational -->
CA1502;
CA1502;CA1716;NETSDK1206;
$(NoWarn)
</NoWarn>
</PropertyGroup>
Expand Down
5 changes: 1 addition & 4 deletions build/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void RemoveDirectory(string d)
DependsOn(RESTORE),
async () =>
{
await RunAsync("dotnet", $"build Speckle.Sdk.sln -c Release --no-restore").ConfigureAwait(false);
await RunAsync("dotnet", $"build Speckle.Sdk.sln -c Release --no-restore -warnaserror").ConfigureAwait(false);
}
);

Expand All @@ -81,7 +81,6 @@ await RunAsync(
$"test {file} -c Release --no-build --no-restore --verbosity=normal /p:AltCover=true /p:AltCoverAttributeFilter=ExcludeFromCodeCoverage /p:AltCoverVerbosity=Warning"
)
.ConfigureAwait(false);
;
}
);

Expand All @@ -91,15 +90,13 @@ await RunAsync(
async () =>
{
await RunAsync("docker", "compose -f docker-compose.yml up --wait").ConfigureAwait(false);
;
foreach (var test in Glob.Files(".", "**/*.Tests.Integration.csproj"))
{
await RunAsync(
"dotnet",
$"test {test} -c Release --no-build --no-restore --verbosity=normal /p:AltCover=true /p:AltCoverAttributeFilter=ExcludeFromCodeCoverage"
)
.ConfigureAwait(false);
;
}
await RunAsync("docker", "compose down").ConfigureAwait(false);
}
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "8.0.100",
"version": "8.0.400",
"rollForward": "latestMinor"
}
}
3 changes: 1 addition & 2 deletions src/Speckle.Sdk/Speckle.Sdk.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

<PropertyGroup Label="Compiler Properties">
<TargetFrameworks>netstandard2.0;net8.0</TargetFrameworks>
<PolySharpExcludeGeneratedTypes>System.Runtime.CompilerServices.RequiresLocationAttribute</PolySharpExcludeGeneratedTypes>
<Configurations>Debug;Release;Local</Configurations>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
Expand All @@ -29,7 +28,7 @@
<ItemGroup Label="Package References">
<PackageReference Include="GraphQL.Client"/>
<PackageReference Include="Microsoft.CSharp" />
<PackageReference Include="Microsoft.Data.Sqlite" />
<PackageReference Include="Microsoft.Data.Sqlite"/>
<PackageReference Include="Speckle.DoubleNumerics" />
<PackageReference Include="Speckle.Newtonsoft.Json" />
</ItemGroup>
Expand Down

0 comments on commit 105395e

Please sign in to comment.