MCPcopy Create free account

hub / github.com/Inversive-Labs/eloizer / functions

Functions158 in github.com/Inversive-Labs/eloizer

↓ 13 callersMethodcollect
Collect the results
src/analyzer/dsl/query.rs:423
↓ 10 callersMethodseverity
Sets the rule severity
src/analyzer/dsl/builders.rs:72
↓ 8 callersMethodid
Sets the rule ID
src/analyzer/dsl/builders.rs:54
↓ 7 callersMethodadd_rule
Adds a rule to the engine
src/analyzer/engine.rs:129
↓ 7 callersMethodbuild
Builds the rule
src/analyzer/dsl/builders.rs:221
↓ 7 callersFunctioncreate_rule
()
src/analyzer/rules/solana/high/unsafe_code/mod.rs:12
↓ 7 callersMethoddescription
Sets the rule description
src/analyzer/dsl/builders.rs:66
↓ 7 callersMethoddsl_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 callersMethodrecommendations
Adds multiple recommendations for fixing the issue
src/analyzer/dsl/builders.rs:193
↓ 7 callersMethodresults
Returns the results of the query
src/analyzer/dsl/query.rs:184
↓ 7 callersMethodtitle
Sets the rule title
src/analyzer/dsl/builders.rs:60
↓ 5 callersMethodexists
Check if there are results
src/analyzer/dsl/query.rs:413
↓ 5 callersFunctionrun
(output: PathBuf)
cli/src/commands/init.rs:6
↓ 4 callersMethodfilter
Apply a custom predicate
src/analyzer/dsl/query.rs:362
↓ 4 callersMethodfunctions
Filter functions
src/analyzer/dsl/query.rs:194
↓ 4 callersMethodgenerate_severity_section
(&self, severity: &Severity)
src/analyzer/reporting.rs:152
↓ 4 callersMethodtag
Adds a tag to classify the rule
src/analyzer/dsl/builders.rs:201
↓ 3 callersFunctionast_to_json
Convert an AST to JSON
src/ast/json.rs:6
↓ 3 callersMethodderives_accounts
Filter for structs that derive the Accounts trait
src/analyzer/dsl/query.rs:260
↓ 3 callersMethodget_severity_counts
(&self)
src/analyzer/reporting.rs:250
↓ 3 callersMethodsave_markdown_report
Save the Markdown report to a file
src/analyzer/reporting.rs:38
↓ 3 callersMethodstructs
Filter structs
src/analyzer/dsl/query.rs:215
↓ 2 callersMethodanalyze_files
Analyzes multiple Rust files
src/analyzer/mod.rs:206
↓ 2 callersFunctioncreate_analyzer
Creates an analyzer with default options
src/analyzer/mod.rs:68
↓ 2 callersFunctioncreate_analyzer_with_options
Creates an analyzer with custom options
src/analyzer/mod.rs:73
↓ 2 callersFunctionhas_unsafe_in_block
Helper function to check if a block contains unsafe code
src/analyzer/rules/solana/high/unsafe_code/filters.rs:38
↓ 2 callersMethodload_builtin_rules
Loads built-in rules
src/analyzer/engine.rs:105
↓ 2 callersFunctionparse_rust_file
Parse a Rust file and return the AST
src/ast/parser.rs:8
↓ 2 callersFunctionprocess_directory
Process a directory and return a vector of (path, AST) pairs
src/ast/parser.rs:22
↓ 2 callersMethodreference
Adds a reference to documentation or additional resources
src/analyzer/dsl/builders.rs:173
↓ 2 callersFunctionreturns_result_type
Helper function to check if a function returns Result<T>
src/analyzer/rules/solana/low/missing_error_handling/filters.rs:42
↓ 2 callersMethodrule_type
Sets the rule type
src/analyzer/dsl/builders.rs:78
↓ 2 callersMethodrules
Returns a reference to all loaded rules
src/analyzer/mod.rs:182
↓ 2 callersMethodsnippet
Get a code snippet of the node
src/analyzer/dsl/query.rs:121
↓ 1 callersMethodanalyze_file
Analyzes a single file
src/analyzer/mod.rs:187
↓ 1 callersMethodanchor_instructions
(self)
src/analyzer/rules/solana/low/anchor_instructions/filters.rs:9
↓ 1 callersFunctionconvert_to_anchor_struct_optimized
(item_struct: &ItemStruct)
src/analyzer/rules/solana/high/missing_signer_check/filters.rs:56
↓ 1 callersFunctioncreate_rule_engine
Helper function to create a rule engine with default configuration
src/analyzer/engine.rs:280
↓ 1 callersFunctioncreate_rule_engine_with_config
Helper function to create a rule engine with the given configuration
src/analyzer/engine.rs:285
↓ 1 callersMethodexecute
(&self, ast: &File, file_path: &str)
src/analyzer/engine.rs:266
↓ 1 callersMethodexecute_rules
Execute all registered rules on the given AST with source code for precise locations
src/analyzer/engine.rs:171
↓ 1 callersMethodexecute_with_source
(&self, ast: &File, file_path: &str, source_code: &str)
src/analyzer/engine.rs:272
↓ 1 callersMethodextract_location
Extract precise location from a span
src/analyzer/span_utils.rs:20
↓ 1 callersMethodextract_snippet
Extract a code snippet from the source code based on span
src/analyzer/span_utils.rs:50
↓ 1 callersMethodextract_title_and_description
Extract title and description from finding description Format: "Title. Description with more details."
src/analyzer/reporting.rs:223
↓ 1 callersFunctionfield_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 callersFunctiongenerate_clean_struct_source
(item_struct: &ItemStruct)
src/analyzer/rules/solana/high/missing_signer_check/filters.rs:81
↓ 1 callersMethodgenerate_header
(&self)
src/analyzer/reporting.rs:45
↓ 1 callersMethodgenerate_issues_by_severity
(&self)
src/analyzer/reporting.rs:120
↓ 1 callersMethodgenerate_markdown_report
(&self)
src/analyzer/reporting.rs:19
↓ 1 callersMethodgenerate_summary
(&self)
src/analyzer/reporting.rs:80
↓ 1 callersMethodgenerate_table_of_contents
(&self)
src/analyzer/reporting.rs:52
↓ 1 callersMethodget_file_issue_counts
(&self)
src/analyzer/reporting.rs:266
↓ 1 callersMethodget_rules
Returns a reference to all loaded rules
src/analyzer/engine.rs:166
↓ 1 callersMethodget_spanned_node
Get the underlying AST node that implements Spanned for use with `SpanExtractor`
src/analyzer/dsl/query.rs:134
↓ 1 callersMethodget_unique_file_count
(&self)
src/analyzer/reporting.rs:258
↓ 1 callersMethodhas_duplicate_mutable_accounts
(self)
src/analyzer/rules/solana/medium/duplicate_mutable_accounts/filters.rs:10
↓ 1 callersFunctionhas_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 callersFunctionhas_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 callersMethodhas_owner_check
(self)
src/analyzer/rules/solana/medium/owner_check/filters.rs:11
↓ 1 callersFunctionhas_signer_constraint
Check if field has signer constraint in attributes (syn2 compatible)
src/analyzer/rules/solana/high/missing_signer_check/filters.rs:158
↓ 1 callersMethodhas_unsafe_divisions
(self)
src/analyzer/rules/solana/medium/division_by_zero/filters.rs:11
↓ 1 callersMethodid
(&self)
src/analyzer/engine.rs:242
↓ 1 callersFunctionis_accounts_struct
(item_struct: &ItemStruct)
src/analyzer/rules/solana/high/missing_signer_check/filters.rs:43
↓ 1 callersMethodis_potentially_dangerous
(&self, expr: &syn::Expr)
src/analyzer/rules/solana/medium/division_by_zero/filters.rs:102
↓ 1 callersMethodload_yaml_rules
Loads rules from YAML templates
src/analyzer/engine.rs:119
↓ 1 callersMethodmissing_error_handling
(self)
src/analyzer/rules/solana/low/missing_error_handling/filters.rs:9
↓ 1 callersFunctionparse_rust_code
Parse a string of Rust code and return the AST
src/ast/parser.rs:16
↓ 1 callersFunctionprint_banner
()
cli/src/commands/analyze.rs:230
↓ 1 callersFunctionprint_findings
(analysis_result: &analyzer::AnalysisResult, verbose: bool)
cli/src/commands/analyze.rs:287
↓ 1 callersFunctionprint_summary
(analysis_result: &analyzer::AnalysisResult)
cli/src/commands/analyze.rs:241
↓ 1 callersFunctionregister_builtin_rules
Register all built-in rules in the rule engine
src/analyzer/rules/mod.rs:8
↓ 1 callersFunctionregister_solana_rules
Register Solana specific rules
src/analyzer/rules/mod.rs:16
↓ 1 callersMethodrule_type
(&self)
src/analyzer/engine.rs:258
↓ 1 callersFunctionsave_report
( analysis_result: &analyzer::AnalysisResult, output_path: &PathBuf, project_path: &PathBuf, q
cli/src/commands/analyze.rs:378
↓ 1 callersMethodseverity
(&self)
src/analyzer/engine.rs:254
↓ 1 callersMethodspan_to_location
Convert a `proc_macro2::Span` to our Location struct
src/analyzer/span_utils.rs:26
↓ 1 callersMethodspan_to_snippet
Convert a span to a code snippet
src/analyzer/span_utils.rs:56
↓ 1 callersMethodto_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 callersMethoduses_unsafe
(self)
src/analyzer/rules/solana/high/unsafe_code/filters.rs:9
Methodand
Combine with another query (AND operator)
src/analyzer/dsl/query.rs:386
Methodcalls_to
Search for calls to a specific function
src/analyzer/dsl/query.rs:319
Methodcount
Get the number of results
src/analyzer/dsl/query.rs:418
Methodcreate_fallback_location
Helper function to create a fallback location for nodes without span info
src/analyzer/dsl/query.rs:497
Functioncreate_rule
()
src/analyzer/rules/solana/high/missing_signer_check/mod.rs:11
Functioncreate_rule
Crea la regla para detectar divisiones sin verificación de cero
src/analyzer/rules/solana/medium/division_by_zero/mod.rs:12
Functioncreate_rule
()
src/analyzer/rules/solana/medium/duplicate_mutable_accounts/mod.rs:11
Functioncreate_rule
()
src/analyzer/rules/solana/medium/owner_check/mod.rs:10
Functioncreate_rule
()
src/analyzer/rules/solana/low/anchor_instructions/mod.rs:11
Functioncreate_rule
()
src/analyzer/rules/solana/low/missing_error_handling/mod.rs:12
Methoddefault
()
src/analyzer/engine.rs:71
Methoddescription
(&self)
src/analyzer/engine.rs:250
Methoddsl_rule
Sets a DSL-based rule implementation with `SpanExtractor` for precise locations
src/analyzer/dsl/builders.rs:93
Methodenabled
Sets whether the rule is enabled by default
src/analyzer/dsl/builders.rs:215
Methodexecute_with_source
Execute the rule on the given AST with source code for precise locations
src/analyzer/engine.rs:47
Methodextract_context
Get context around a span (includes surrounding lines)
src/analyzer/span_utils.rs:114
Methodextract_definition_signature
Extract function signature or struct definition
src/analyzer/span_utils.rs:145
Methodextract_functions_recursive
Helper function to recursively extract functions from items (including nested modules)
src/analyzer/dsl/query.rs:508
Functionextract_span_from_node_data
Extract span from `NodeData`
src/analyzer/span_utils.rs:223
Methodfilter
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