Skip to content
This repository was archived by the owner on May 12, 2026. It is now read-only.

Fix bugs found by JET static analysis#166

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:static-improvements-20251229-190223
Dec 30, 2025
Merged

Fix bugs found by JET static analysis#166
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:static-improvements-20251229-190223

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Contributor

Summary

This PR fixes 3 bugs discovered by running JET.jl static analysis (JET.report_package("DiffEqDevTools")):

  • Fix typo in deprecated function: ShootOutShootout in ode_shootout function (src/benchmark.jl:37)
  • Fix undefined variable bug: When appxsol === nothing in the BVP WorkPrecision function, the code incorrectly referenced errsol.errors which doesn't exist - changed to sol.errors to match the ODE version (src/benchmark.jl:351-352)
  • Fix unqualified function reference: calculate_ensemble_errorsDiffEqBase.calculate_ensemble_errors (src/test_solution.jl:125)

JET Analysis Results

Before this PR: 38 possible errors
After this PR: 35 possible errors (remaining are in upstream packages or false positives)

Test plan

  • All existing tests pass (Pkg.test() completed successfully)
  • Re-ran JET analysis to confirm the 3 issues are fixed

cc @ChrisRackauckas

🤖 Generated with Claude Code

- Fix typo: ShootOut -> Shootout in deprecated ode_shootout function
- Fix undefined variable: errsol should be sol when appxsol is nothing in BVP WorkPrecision
- Fix unqualified reference: calculate_ensemble_errors -> DiffEqBase.calculate_ensemble_errors

These issues were discovered by running JET.report_package("DiffEqDevTools").

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@ChrisRackauckas ChrisRackauckas merged commit cf65928 into SciML:master Dec 30, 2025
4 of 6 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants