Prerequisites
Current Behavior
In the Reproducibility Checklist tab, Statement 5 ("Version control of some kind is in place.") doesn't have an automated scanner hooked up in scanFunctions. The "StatWrap Defined Documentation" section stays completely blank, even when the project is an active Git repo.
Expected Behavior
- Opening Statement 5 should automatically detect and display version control details under StatWrap Defined Documentation (just like Statements 1–4).
- Exported PDF reports should include these findings as evidence.
Possible Solution
Add an automated scanner (ChecklistUtil.findVersionControl) and wire it into scanFunctions:
- VCS Detection: Detects
.git directories and submodule/worktree files (along with .hg and .svn).
- Active Branch: Grabs the current branch from
HEAD.
- Latest Commit SHA: I think detecting the latest commit hash (e.g.,
Latest commit: 7d19ab6) would be a great addition here. Tying the checklist to the exact commit snapshot makes the exported report much more useful for reproducibility.
- Safe fallback: Fails cleanly with empty results if folders are missing or unreadable.
I already have the scanner, UI integration, and full test coverage working locally.
I'd love your thoughts:
- Does this look like a solid addition?
- If so, I'd be happy to be assigned and open the PR!
Your Environment
- Version used: 0.0.21 (Development branch)
- Environment: macOS / Node.js
Prerequisites
Current Behavior
In the Reproducibility Checklist tab, Statement 5 ("Version control of some kind is in place.") doesn't have an automated scanner hooked up in
scanFunctions. The "StatWrap Defined Documentation" section stays completely blank, even when the project is an active Git repo.Expected Behavior
Possible Solution
Add an automated scanner (
ChecklistUtil.findVersionControl) and wire it intoscanFunctions:.gitdirectories and submodule/worktree files (along with.hgand.svn).HEAD.Latest commit: 7d19ab6) would be a great addition here. Tying the checklist to the exact commit snapshot makes the exported report much more useful for reproducibility.I already have the scanner, UI integration, and full test coverage working locally.
I'd love your thoughts:
Your Environment