Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Inversive-Labs/eloizer
/ functions
Functions
158 in github.com/Inversive-Labs/eloizer
⨍
Functions
158
◇
Types & classes
37
↓ 13 callers
Method
collect
Collect the results
src/analyzer/dsl/query.rs:423
↓ 10 callers
Method
severity
Sets the rule severity
src/analyzer/dsl/builders.rs:72
↓ 8 callers
Method
id
Sets the rule ID
src/analyzer/dsl/builders.rs:54
↓ 7 callers
Method
add_rule
Adds a rule to the engine
src/analyzer/engine.rs:129
↓ 7 callers
Method
build
Builds the rule
src/analyzer/dsl/builders.rs:221
↓ 7 callers
Function
create_rule
()
src/analyzer/rules/solana/high/unsafe_code/mod.rs:12
↓ 7 callers
Method
description
Sets the rule description
src/analyzer/dsl/builders.rs:66
↓ 7 callers
Method
dsl_query
Sets a DSL-based query builder (function that returns `AstQuery` for more expressive queries) This is the new, preferred way to define rules using the
src/analyzer/dsl/builders.rs:116
↓ 7 callers
Method
recommendations
Adds multiple recommendations for fixing the issue
src/analyzer/dsl/builders.rs:193
↓ 7 callers
Method
results
Returns the results of the query
src/analyzer/dsl/query.rs:184
↓ 7 callers
Method
title
Sets the rule title
src/analyzer/dsl/builders.rs:60
↓ 5 callers
Method
exists
Check if there are results
src/analyzer/dsl/query.rs:413
↓ 5 callers
Function
run
(output: PathBuf)
cli/src/commands/init.rs:6
↓ 4 callers
Method
filter
Apply a custom predicate
src/analyzer/dsl/query.rs:362
↓ 4 callers
Method
functions
Filter functions
src/analyzer/dsl/query.rs:194
↓ 4 callers
Method
generate_severity_section
(&self, severity: &Severity)
src/analyzer/reporting.rs:152
↓ 4 callers
Method
tag
Adds a tag to classify the rule
src/analyzer/dsl/builders.rs:201
↓ 3 callers
Function
ast_to_json
Convert an AST to JSON
src/ast/json.rs:6
↓ 3 callers
Method
derives_accounts
Filter for structs that derive the Accounts trait
src/analyzer/dsl/query.rs:260
↓ 3 callers
Method
get_severity_counts
(&self)
src/analyzer/reporting.rs:250
↓ 3 callers
Method
save_markdown_report
Save the Markdown report to a file
src/analyzer/reporting.rs:38
↓ 3 callers
Method
structs
Filter structs
src/analyzer/dsl/query.rs:215
↓ 2 callers
Method
analyze_files
Analyzes multiple Rust files
src/analyzer/mod.rs:206
↓ 2 callers
Function
create_analyzer
Creates an analyzer with default options
src/analyzer/mod.rs:68
↓ 2 callers
Function
create_analyzer_with_options
Creates an analyzer with custom options
src/analyzer/mod.rs:73
↓ 2 callers
Function
has_unsafe_in_block
Helper function to check if a block contains unsafe code
src/analyzer/rules/solana/high/unsafe_code/filters.rs:38
↓ 2 callers
Method
load_builtin_rules
Loads built-in rules
src/analyzer/engine.rs:105
↓ 2 callers
Function
parse_rust_file
Parse a Rust file and return the AST
src/ast/parser.rs:8
↓ 2 callers
Function
process_directory
Process a directory and return a vector of (path, AST) pairs
src/ast/parser.rs:22
↓ 2 callers
Method
reference
Adds a reference to documentation or additional resources
src/analyzer/dsl/builders.rs:173
↓ 2 callers
Function
returns_result_type
Helper function to check if a function returns Result<T>
src/analyzer/rules/solana/low/missing_error_handling/filters.rs:42
↓ 2 callers
Method
rule_type
Sets the rule type
src/analyzer/dsl/builders.rs:78
↓ 2 callers
Method
rules
Returns a reference to all loaded rules
src/analyzer/mod.rs:182
↓ 2 callers
Method
snippet
Get a code snippet of the node
src/analyzer/dsl/query.rs:121
↓ 1 callers
Method
analyze_file
Analyzes a single file
src/analyzer/mod.rs:187
↓ 1 callers
Method
anchor_instructions
(self)
src/analyzer/rules/solana/low/anchor_instructions/filters.rs:9
↓ 1 callers
Function
convert_to_anchor_struct_optimized
(item_struct: &ItemStruct)
src/analyzer/rules/solana/high/missing_signer_check/filters.rs:56
↓ 1 callers
Function
create_rule_engine
Helper function to create a rule engine with default configuration
src/analyzer/engine.rs:280
↓ 1 callers
Function
create_rule_engine_with_config
Helper function to create a rule engine with the given configuration
src/analyzer/engine.rs:285
↓ 1 callers
Method
execute
(&self, ast: &File, file_path: &str)
src/analyzer/engine.rs:266
↓ 1 callers
Method
execute_rules
Execute all registered rules on the given AST with source code for precise locations
src/analyzer/engine.rs:171
↓ 1 callers
Method
execute_with_source
(&self, ast: &File, file_path: &str, source_code: &str)
src/analyzer/engine.rs:272
↓ 1 callers
Method
extract_location
Extract precise location from a span
src/analyzer/span_utils.rs:20
↓ 1 callers
Method
extract_snippet
Extract a code snippet from the source code based on span
src/analyzer/span_utils.rs:50
↓ 1 callers
Method
extract_title_and_description
Extract title and description from finding description Format: "Title. Description with more details."
src/analyzer/reporting.rs:223
↓ 1 callers
Function
field_needs_signer_check
Check if a specific field needs signer verification (fallback method)
src/analyzer/rules/solana/high/missing_signer_check/filters.rs:146
↓ 1 callers
Function
generate_clean_struct_source
(item_struct: &ItemStruct)
src/analyzer/rules/solana/high/missing_signer_check/filters.rs:81
↓ 1 callers
Method
generate_header
(&self)
src/analyzer/reporting.rs:45
↓ 1 callers
Method
generate_issues_by_severity
(&self)
src/analyzer/reporting.rs:120
↓ 1 callers
Method
generate_markdown_report
(&self)
src/analyzer/reporting.rs:19
↓ 1 callers
Method
generate_summary
(&self)
src/analyzer/reporting.rs:80
↓ 1 callers
Method
generate_table_of_contents
(&self)
src/analyzer/reporting.rs:52
↓ 1 callers
Method
get_file_issue_counts
(&self)
src/analyzer/reporting.rs:266
↓ 1 callers
Method
get_rules
Returns a reference to all loaded rules
src/analyzer/engine.rs:166
↓ 1 callers
Method
get_spanned_node
Get the underlying AST node that implements Spanned for use with `SpanExtractor`
src/analyzer/dsl/query.rs:134
↓ 1 callers
Method
get_unique_file_count
(&self)
src/analyzer/reporting.rs:258
↓ 1 callers
Method
has_duplicate_mutable_accounts
(self)
src/analyzer/rules/solana/medium/duplicate_mutable_accounts/filters.rs:10
↓ 1 callers
Function
has_missing_signer_checks
Filter for structs that have missing signer checks using anchor-syn
src/analyzer/rules/solana/high/missing_signer_check/filters.rs:9
↓ 1 callers
Function
has_missing_signer_checks_fallback
Fallback analysis using basic syn when anchor-syn fails
src/analyzer/rules/solana/high/missing_signer_check/filters.rs:126
↓ 1 callers
Method
has_owner_check
(self)
src/analyzer/rules/solana/medium/owner_check/filters.rs:11
↓ 1 callers
Function
has_signer_constraint
Check if field has signer constraint in attributes (syn2 compatible)
src/analyzer/rules/solana/high/missing_signer_check/filters.rs:158
↓ 1 callers
Method
has_unsafe_divisions
(self)
src/analyzer/rules/solana/medium/division_by_zero/filters.rs:11
↓ 1 callers
Method
id
(&self)
src/analyzer/engine.rs:242
↓ 1 callers
Function
is_accounts_struct
(item_struct: &ItemStruct)
src/analyzer/rules/solana/high/missing_signer_check/filters.rs:43
↓ 1 callers
Method
is_potentially_dangerous
(&self, expr: &syn::Expr)
src/analyzer/rules/solana/medium/division_by_zero/filters.rs:102
↓ 1 callers
Method
load_yaml_rules
Loads rules from YAML templates
src/analyzer/engine.rs:119
↓ 1 callers
Method
missing_error_handling
(self)
src/analyzer/rules/solana/low/missing_error_handling/filters.rs:9
↓ 1 callers
Function
parse_rust_code
Parse a string of Rust code and return the AST
src/ast/parser.rs:16
↓ 1 callers
Function
print_banner
()
cli/src/commands/analyze.rs:230
↓ 1 callers
Function
print_findings
(analysis_result: &analyzer::AnalysisResult, verbose: bool)
cli/src/commands/analyze.rs:287
↓ 1 callers
Function
print_summary
(analysis_result: &analyzer::AnalysisResult)
cli/src/commands/analyze.rs:241
↓ 1 callers
Function
register_builtin_rules
Register all built-in rules in the rule engine
src/analyzer/rules/mod.rs:8
↓ 1 callers
Function
register_solana_rules
Register Solana specific rules
src/analyzer/rules/mod.rs:16
↓ 1 callers
Method
rule_type
(&self)
src/analyzer/engine.rs:258
↓ 1 callers
Function
save_report
( analysis_result: &analyzer::AnalysisResult, output_path: &PathBuf, project_path: &PathBuf, q
cli/src/commands/analyze.rs:378
↓ 1 callers
Method
severity
(&self)
src/analyzer/engine.rs:254
↓ 1 callers
Method
span_to_location
Convert a `proc_macro2::Span` to our Location struct
src/analyzer/span_utils.rs:26
↓ 1 callers
Method
span_to_snippet
Convert a span to a code snippet
src/analyzer/span_utils.rs:56
↓ 1 callers
Method
to_findings_with_span_extractor
Convert query results to findings with precise locations using `SpanExtractor` This is the preferred method for `dsl_query` rules
src/analyzer/dsl/query.rs:452
↓ 1 callers
Method
uses_unsafe
(self)
src/analyzer/rules/solana/high/unsafe_code/filters.rs:9
Method
and
Combine with another query (AND operator)
src/analyzer/dsl/query.rs:386
Method
calls_to
Search for calls to a specific function
src/analyzer/dsl/query.rs:319
Method
count
Get the number of results
src/analyzer/dsl/query.rs:418
Method
create_fallback_location
Helper function to create a fallback location for nodes without span info
src/analyzer/dsl/query.rs:497
Function
create_rule
()
src/analyzer/rules/solana/high/missing_signer_check/mod.rs:11
Function
create_rule
Crea la regla para detectar divisiones sin verificación de cero
src/analyzer/rules/solana/medium/division_by_zero/mod.rs:12
Function
create_rule
()
src/analyzer/rules/solana/medium/duplicate_mutable_accounts/mod.rs:11
Function
create_rule
()
src/analyzer/rules/solana/medium/owner_check/mod.rs:10
Function
create_rule
()
src/analyzer/rules/solana/low/anchor_instructions/mod.rs:11
Function
create_rule
()
src/analyzer/rules/solana/low/missing_error_handling/mod.rs:12
Method
default
()
src/analyzer/engine.rs:71
Method
description
(&self)
src/analyzer/engine.rs:250
Method
dsl_rule
Sets a DSL-based rule implementation with `SpanExtractor` for precise locations
src/analyzer/dsl/builders.rs:93
Method
enabled
Sets whether the rule is enabled by default
src/analyzer/dsl/builders.rs:215
Method
execute_with_source
Execute the rule on the given AST with source code for precise locations
src/analyzer/engine.rs:47
Method
extract_context
Get context around a span (includes surrounding lines)
src/analyzer/span_utils.rs:114
Method
extract_definition_signature
Extract function signature or struct definition
src/analyzer/span_utils.rs:145
Method
extract_functions_recursive
Helper function to recursively extract functions from items (including nested modules)
src/analyzer/dsl/query.rs:508
Function
extract_span_from_node_data
Extract span from `NodeData`
src/analyzer/span_utils.rs:223
Method
filter
Sets an additional filter for the nodes found (now integrated into the query)
src/analyzer/dsl/builders.rs:155
next →
1–100 of 158, ranked by callers