fix(cli,core): harden config resolution, format validation, exit code…#939
Merged
Gbangbolaoluwagbemiga merged 1 commit intoJun 26, 2026
Conversation
…s, and diagnostics Closes HyperSafeD#510 HyperSafeD#517 HyperSafeD#518 HyperSafeD#519 - (HyperSafeD#517) Add integration tests for config file resolution precedence (nearest .sanctify.toml wins; walks up to parent; defaults when absent) - (HyperSafeD#518) Validate --format value early; reject unknown values with a clear error message; add sarif format dispatch to `sanctifier analyze` - (HyperSafeD#519) Extract named exit-code constants to exit_codes.rs; wire AnalysisProfile (strict/lenient/audit/ci) into the exit-code decision in exec(); use EXIT_CODES::ERROR in main() - (HyperSafeD#510) Add FindingCode::format_diagnostic() and lookup_finding_code() to sanctifier-core for structured, actionable diagnostic output; add unit tests for both helpers
|
@devjayy43 is attempting to deploy a commit to the gbangbolaoluwagbemiga's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@devjayy43 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
8852b4a
into
HyperSafeD:main
11 of 22 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…s, and diagnostics
Closes #510
Closes #517
Closes #518
Closes #519
sanctifier analyzeSummary
Describe the change, the motivation behind it, and any important implementation details.
Fixes #
Type of change
Testing
List the commands you ran and the scope of validation.
Checklist
mainand merge conflicts are resolved.