Skip to content

Enable strict scalac warnings (-Werror -Wunused:all)#56

Merged
speedcom merged 5 commits intomainfrom
scalac-warnings
Mar 6, 2026
Merged

Enable strict scalac warnings (-Werror -Wunused:all)#56
speedcom merged 5 commits intomainfrom
scalac-warnings

Conversation

@speedcom
Copy link
Contributor

@speedcom speedcom commented Mar 6, 2026

Summary

  • Enable -Werror + -Wunused:all in build.sbt to catch dead code and bugs at compile time
  • Fix lombard facility bug in Banking.computeStandingFacilities: interbank borrowers now pay lombard rate instead of silently returning 0.0
  • Remove dead code: unused euFirms (GvcTrade), sumCapex and sumBondIssuance (Simulation)
  • Apply scalafmt to all files

Test plan

  • sbt compile — zero warnings
  • sbt "Test / compile" — zero warnings
  • sbt test — all 1221 tests pass (1 pre-existing flaky test in IntermediateMarketSpec)
  • New test in MonetaryPlumbingSpec for lombard facility cost formula

speedcom added 5 commits March 6, 2026 15:58
Add -deprecation, -feature, -unchecked, -explain, -Wunused:all.
Remove unused imports/vals across src and test.
Fix missing test assertions (IntegrationFullSpec, IntermediateMarketSpec,
MonetaryPlumbingSpec, PhysicalCapitalSpec).
@speedcom speedcom merged commit 3e4e54b into main Mar 6, 2026
2 checks passed
@speedcom speedcom deleted the scalac-warnings branch March 6, 2026 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant