cccc-cli 1.7.0

The unified cccc binary: one CLI that measures cognitive/cyclomatic complexity across every bundled language (ECMAScript/TypeScript, Rust, Go, PHP, Ruby, Python, Perl, Zig, C, C++, Swift, Java, Dart, Scala)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
pub fn sumOfPrimes(max: u32) u32 {
    var total: u32 = 0;
    outer: for (2..max) |i| {
        for (2..i) |j| {
            if (i % j == 0) {
                continue :outer;
            }
        }
        total += i;
    }
    return total;
}