gocognit

command
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

GoCognitive calculates the cognitive complexities of functions and methods in Go source code.

Usage:

gocognitive [<flag> ...] <Go file or directory> ...

Flags:

-over N   show functions with complexity > N only and
          return exit code 1 if the output is non-empty
-top N    show the top N most complex functions only
-avg      show the average complexity

The output fields for each line are: <complexity> <package> <function> <file:row:column>

Jump to

Keyboard shortcuts

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