Registry / utility / uudashr-gocognit

uudashr-gocognit

JSON →
library1.2.1gogounverified

Package gocognit defines an Analyzer and utilities to calculate cognitive complexity of functions.

go get github.com/uudashr/gocognit
INSTALL
IMPORT
SIG · UUDASHR-GOCOGNIT
U
uudashr-gocognit
utilitygov1.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

gocognit
github.com/uudashr/gocognit

Analyze cognitive complexity of all functions in the current package.

package main import ( "fmt" "github.com/uudashr/gocognit" ) func main() { stats, _ := gocognit.Analyze("./...", nil) for _, s := range stats { fmt.Println(s.Name, s.Complexity) } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
uudashr-gocognit — go get uudashr-gocognit · libregistry