feat: implement 'analyze' command scaffolding with Soroban project ve…#53
Merged
Gbangbolaoluwagbemiga merged 1 commit intoHyperSafeD:mainfrom Feb 20, 2026
Conversation
thebabalola
added a commit
to thebabalola/Sanctifier
that referenced
this pull request
Mar 7, 2026
xqcxx
pushed a commit
to xqcxx/Sanctifier
that referenced
this pull request
Mar 10, 2026
feat: Implement AST caching for static analysis (Issue HyperSafeD#53)
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.
…rification (#4)
feat: implement 'analyze' command scaffolding with Soroban project verification (#4)
Description
This PR implements the basic structure for the sanctifier analyze command. It adds a verification layer to ensure that the target path is a valid Soroban project before proceeding with static analysis.
Changes
Verification Logic: Added
is_soroban_project
helper to:
Locate
Cargo.toml
(locally or in parent directories).
Verify the presence of soroban-sdk in dependencies.
analyze
Command Enhancement:
Now performs pre-flight verification.
Prints a clear success placeholder: ✨ Sanctifier: Valid Soroban project found at .
Exits gracefully with an error if the project is invalid.
Refactoring: Cleaned up the
Analyze
match arm to integrate these checks seamlessly.
Linked Issue
Fixes #4