Summary
Add an examples/all-findings/ directory containing a single Soroban contract that intentionally triggers at least one finding for every check registered in default_checks().
Purpose
- Acts as a living integration test that all checks are firing
- Useful for demo / documentation screenshots
- New contributors can run
soroban-guard scan examples/all-findings to see what the output looks like with real findings
What to add
examples/all-findings/Cargo.toml — standard Soroban fixture layout
examples/all-findings/src/lib.rs — annotated contract with each vulnerability pattern
- Comment above each pattern explaining which check it triggers
Acceptance criteria
soroban-guard scan examples/all-findings produces at least one finding per registered check
- Each finding maps to a clearly commented code pattern
Summary
Add an
examples/all-findings/directory containing a single Soroban contract that intentionally triggers at least one finding for every check registered indefault_checks().Purpose
soroban-guard scan examples/all-findingsto see what the output looks like with real findingsWhat to add
examples/all-findings/Cargo.toml— standard Soroban fixture layoutexamples/all-findings/src/lib.rs— annotated contract with each vulnerability patternAcceptance criteria
soroban-guard scan examples/all-findingsproduces at least one finding per registered check