cogito 1.1.0

Cognitive Complexity code metric for D


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

CI License

cōgitō

cōgitō analyses D code and calculates its [cognitive complexity].

Installing and usage

Run ./make.rb install release.

It will download and install the frontend and build a binary. Then you can run it on some D source:

Run ./build/cogito sample/sample.d.

Example output

sample/sample.d:
  f:
    Location (line): 3
    Score: 4
Authors:
  • Eugen Wissner
Dependencies:
none
Versions:
1.4.0 2022-Jun-10
1.3.1 2022-May-15
1.3.0 2022-May-14
1.2.0 2022-Apr-23
1.1.0 2022-Apr-10
Show all 8 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 2 downloads this month

  • 12 downloads total

Score:
0.2
Short URL:
cogito.dub.pm