cyclop

command module
v1.2.102 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 0 Imported by: 0

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 reaise an error if the average will be higher. 0 default.
  • -skipTests bool - should checks be executed in tests files. false by default

Documentation

Overview

Cyclop calculates cyclomatic complexities of functions in Go source code. Simple usage:

cyclop .

Read more about usage in https://github.com/bkielbasa/cyclop/blob/master/README.md

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL