Expand description
Context-aware detection system for reducing false positives
This module provides functionality to classify functions and files by their role and purpose, enabling context-aware debt detection that understands when certain patterns are acceptable vs problematic.
Re-exports§
pub use detector::ContextDetector;pub use rules::ContextRule;pub use rules::ContextRuleEngine;pub use rules::RuleAction;
Modules§
- async_
detector - Detection of async boundaries and async context analysis
- detector
- AST-based context detection for functions and code blocks
- rules
- Context-aware rules engine for debt detection
Structs§
- Function
Context - Represents the context of a function or code block
Enums§
- File
Type - The type of file being analyzed
- Framework
Pattern - Framework patterns that affect analysis
- Function
Role - The role a function plays in the system
Functions§
- detect_
file_ type - Detect file type from path using pattern matching
- detect_
function_ role - Detect function role from name and patterns