cccc-cli 1.8.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, C#, Visual Basic .NET)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class Sample {
public:
    unsigned int sumOfPrimes(unsigned int max) {
        unsigned int total = 0;
        for (unsigned int i = 2; i <= max; i++) {
            for (unsigned int j = 2; j < i; j++) {
                if (i % j == 0) {
                    goto next;
                }
            }
            total += i;
next:;
        }
        return total;
    }
};