pmat 3.11.0

PMAT - Zero-config AI context generation and code quality toolkit (CLI, MCP, HTTP)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! File with exactly one function

/// Should be cyclomatic=2, cognitive=1
pub fn single_if(x: i32) -> i32 {
    if x > 0 {
        x
    } else {
        0
    }
}

fn main() {
    println!("One function test");
}