Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@
<!-- Audit all package dependencies (direct + transitive) for known CVEs during restore.
Defaults to "direct" in the SDK; "all" provides broader security coverage. -->
<NuGetAuditMode>all</NuGetAuditMode>

<!-- Treat compiler warnings as errors across all source projects.
Keeps the warning count at zero and prevents silent warning accumulation
that is later expensive to clean up. Individual projects may suppress a
specific warning via <NoWarn> only when the warning is intentional and
the suppression is documented. -->
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

</Project>
6 changes: 6 additions & 0 deletions src/OpenClaw.Shared/OpenClaw.Shared.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>OpenClaw.Shared</RootNamespace>
<!-- CS8524: switch expression on an enum without a _ arm β€” intentional in
ExecApprovalsCoordinator so the compiler flags any new enum member that
is added without a corresponding case. The remaining int-cast space
(e.g. (ExecApprovalPromptOutcome)4) is an acceptable gap given that all
callers produce only named values. -->
<NoWarn>$(NoWarn);CS8524</NoWarn>
</PropertyGroup>

<ItemGroup>
Expand Down