bkielbasa/cyclop

56

stars

23

commits

Go

primary language

Oct 16, 2024

updated

go
golang
linter

README

cyclop

Coverage Status

Cyclop calculates cyclomatic complexities of functions or packages in Go source code.

Why cyclop?

Cyclop, compared to other alternative, calculates both function and package cyclomatic complexity.

Usage

go get github.com/bkielbasa/cyclop/cmd/cyclop

cyclop .

Available parameters:

  • -maxComplexity int - the max complexity calculated for a single function. 10 by default
  • -packageAverage float64 - the average cyclomatic complexity for a package. If the value is higher than 0 it will raise an error if the average will be higher. 0 default.
  • -skipTests bool - should checks be executed in tests files. false by default

Contributors

bkielbasa

13 commits

ldez

7 commits

alexandear

1 commits

nikolaydubina

1 commits

bkielbasa/cyclop

56

stars

23

commits

Go

primary language

Oct 16, 2024

updated

go
golang
linter

README

cyclop

Coverage Status

Cyclop calculates cyclomatic complexities of functions or packages in Go source code.

Why cyclop?

Cyclop, compared to other alternative, calculates both function and package cyclomatic complexity.

Usage

go get github.com/bkielbasa/cyclop/cmd/cyclop

cyclop .

Available parameters:

  • -maxComplexity int - the max complexity calculated for a single function. 10 by default
  • -packageAverage float64 - the average cyclomatic complexity for a package. If the value is higher than 0 it will raise an error if the average will be higher. 0 default.
  • -skipTests bool - should checks be executed in tests files. false by default

Contributors

bkielbasa

13 commits

ldez

7 commits

alexandear

1 commits

nikolaydubina

1 commits

Languages

Go

100.0%