Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 714 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 714 Bytes

Gocognito

Gocognito calculates cognitive complexities of functions in Go source files. Intutive difficulty for programmers is reflected in cognitive complexity.

Installation

go install github.com/nrnrk/gocognito/cmd/gocognito@latest

Usage

$ gocognito
gocognito: Calculate cognitive complexity of functions.

Usage: gocognito [-flag] [package]

The gocognito analysis reports functions whose complexity is over than the specified limit.
...

Examples:

gocognit .
gocognit main.go
gocognit -over 10 ./pkg/...

Related project

  • Gocognit where the codes are based on.