Skip to main content

detect_missing_typing

Function detect_missing_typing 

Source
pub fn detect_missing_typing(
    file: &str,
    source: &[u8],
    parser: &mut Parser,
) -> Result<Vec<Finding>>
Expand description

Walk every function_definition node and report those that have at least one parameter without a type annotation (excluding self/cls).

A parameter is “untyped” when the grammar emits an identifier node (not a typed_parameter or dictionary_splat_pattern / list_splat_pattern). No-argument functions are not flagged — the rule targets missing param annotations, not missing return annotations (which a separate rule can cover).