Skip to content

Commit

Permalink
chore: CheckForOverflowUnderflow, ProduceReferenceAssembly, Documenta…
Browse files Browse the repository at this point in the history
…tionFile.
  • Loading branch information
s2quake committed Jun 21, 2024
1 parent 26c6feb commit 8d9e289
Show file tree
Hide file tree
Showing 17 changed files with 1 addition and 20 deletions.
1 change: 1 addition & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<RequireLicenseAcceptance>true</RequireLicenseAcceptance>
<GeneratePackageOnBuild Condition="'$(Configuration)'!='Debug'">true</GeneratePackageOnBuild>
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)Libplanet.ruleset</CodeAnalysisRuleSet>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>

<PackageReleaseNotes>https://github.com/planetarium/libplanet/blob/main/CHANGES.md</PackageReleaseNotes>
<PackageTags>multiplayer online game;game;blockchain</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<PropertyGroup>
<LangVersion>10</LangVersion>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);NU5104</NoWarn>
</PropertyGroup>
Expand Down
2 changes: 0 additions & 2 deletions src/Libplanet.Net/Libplanet.Net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
<PropertyGroup>
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);S4035;CS0660;CS0661;S3875;CS1591;NU5104;MEN001</NoWarn>
<!-- FIXME: S4035 and CS1591 should be turned on eventually. -->
Expand Down
2 changes: 0 additions & 2 deletions src/Libplanet.RocksDBStore/Libplanet.RocksDBStore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
</PropertyGroup>

<PropertyGroup>
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
<Nullable>enable</Nullable>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);NU5104</NoWarn>
</PropertyGroup>
Expand Down
2 changes: 0 additions & 2 deletions src/Libplanet.Stun/Libplanet.Stun.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
</PropertyGroup>

<PropertyGroup>
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);MEN001</NoWarn>
</PropertyGroup>
Expand Down
2 changes: 0 additions & 2 deletions src/Libplanet/Libplanet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ https://docs.libplanet.io/</Description>
<PropertyGroup>
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);S4035;CS1591;NU5104;MEN001;NU1902</NoWarn>
<!-- FIXME: S4035 and CS1591 should be turned on eventually. -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<PropertyGroup>
<Nullable>disable</Nullable>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);SA1401</NoWarn>
</PropertyGroup>
Expand Down
1 change: 0 additions & 1 deletion test/Libplanet.Net.Tests/Libplanet.Net.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);SA1401;SYSLIB0011</NoWarn>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<PropertyGroup>
<Nullable>disable</Nullable>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

Expand Down
1 change: 0 additions & 1 deletion test/Libplanet.Stun.Tests/Libplanet.Stun.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<PropertyGroup>
<Nullable>disable</Nullable>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

Expand Down
1 change: 0 additions & 1 deletion test/Libplanet.Tests/Libplanet.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<PropertyGroup>
<Nullable>disable</Nullable>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);SA1401;SYSLIB0011</NoWarn>
</PropertyGroup>
Expand Down
1 change: 0 additions & 1 deletion tools/Libplanet.Analyzers/Libplanet.Analyzers.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

<PropertyGroup>
<IncludeBuildOutput>false</IncludeBuildOutput>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);NU5128</NoWarn>
<IsPackable>true</IsPackable>
Expand Down
1 change: 0 additions & 1 deletion tools/Libplanet.Benchmarks/Libplanet.Benchmarks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<Nullable>disable</Nullable>
<OutputType>Exe</OutputType>
<IsPackable>false</IsPackable>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);CS1591;S1118;SA1118</NoWarn>
</PropertyGroup>
Expand Down
1 change: 0 additions & 1 deletion tools/Libplanet.Explorer/Libplanet.Explorer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<PropertyGroup>
<NoWarn>$(NoWarn);NU1701;NU5104;SA1118</NoWarn>
<CodeAnalysisRuleSet>..\..\Libplanet.Explorer.ruleset</CodeAnalysisRuleSet>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);CS1591;S1118;SA1118</NoWarn>
</PropertyGroup>
Expand Down
1 change: 0 additions & 1 deletion tools/Libplanet.Tools/Libplanet.Tools.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

<PropertyGroup>
<ToolCommandName>planet</ToolCommandName>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);CS1591;S1118;SA1118</NoWarn>
</PropertyGroup>
Expand Down

0 comments on commit 8d9e289

Please sign in to comment.