Skip to content

feat(cli): Add scan defaults and compilation model caching#89

Open
misonijnik wants to merge 11 commits intomainfrom
misonijnik/rework-compile-and-scan
Open

feat(cli): Add scan defaults and compilation model caching#89
misonijnik wants to merge 11 commits intomainfrom
misonijnik/rework-compile-and-scan

Conversation

@misonijnik
Copy link
Copy Markdown
Member

No description provided.

- Remove MarkFlagRequired("output"), default SARIF to project-model/sources/
- Replace temp dir with staging dir inside model cache
- Promote staging to cache via symlink swap after successful scan
- Clean up staging dir on compilation failure
- Update printScanInfo to show "Project model (staging)"
- Add DefaultSarifReportPath and StableProjectModelPath to model_cache.go
- Replace hardcoded "project-model"/"sources"/"opentaint.sarif" in scan.go
- Extract cleanupStaging closure to deduplicate two identical cleanup blocks
- Extract setupPruneTestGlobals helper to deduplicate test boilerplate
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