Module context

Module context 

Source
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§

FunctionContext
Represents the context of a function or code block

Enums§

FileType
The type of file being analyzed
FrameworkPattern
Framework patterns that affect analysis
FunctionRole
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