rustqual 1.2.0

Comprehensive Rust code quality analyzer — seven dimensions: IOSP, Complexity, DRY, SRP, Coupling, Test Quality, Architecture
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// Golden-example violation: domain-layer code calling `.unwrap()` both in
// direct dot-notation and UFCS form. The `no_panic_helpers_in_production`
// Architecture rule must flag both.

fn direct_call() {
    let x: Option<i32> = Some(1);
    x.unwrap();
}

fn ufcs_call() {
    let x: Option<i32> = Some(2);
    Option::unwrap(x);
}