Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions packages/rules/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ pub use unused_state_variables::UnusedStateVariablesRule;
// Export Soroban types specifically
pub use soroban::{
EventEmissionCostRule, InefficientBytesAllocationRule, InefficientErrorConstructionRule,
MemoryAllocationRule, SorobanAnalyzer, SorobanContract, SorobanField, SorobanFunction,
SorobanImpl, SorobanParam, SorobanParser, SorobanResult, SorobanRuleEngine, SorobanStruct,
UnnecessaryCloningRule,
MemoryAllocationRule, SorobanAnalyzer, SorobanContract, SorobanDeadCodeRule,
SorobanDeepNestingRule, SorobanField, SorobanFunction, SorobanFunctionComplexityRule,
SorobanImpl, SorobanParam, SorobanParser, SorobanRepeatedComputationsRule, SorobanResult,
SorobanRuleEngine, SorobanStruct, UnnecessaryCloningRule,
};

// Export Vyper types (keeping glob here is fine if Vyper module is clean, but let's be safe)
Expand Down
6 changes: 6 additions & 0 deletions packages/rules/src/soroban/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ pub use parser::*;
pub use rule_engine::*;
pub use unnecessary_cloning::UnnecessaryCloningRule;

// New Soroban analysis rules
pub use rule_engine::{
SorobanDeadCodeRule, SorobanDeepNestingRule, SorobanFunctionComplexityRule,
SorobanRepeatedComputationsRule,
};

/// Represents a Soroban contract structure
#[derive(Debug, Clone, PartialEq)]
pub struct SorobanContract {
Expand Down
Loading
Loading