All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Breaking: remove meaningless
-total
and-total-short
options
- Don't skip directories
.
and..
- Ignore
vendor
andtestdata
directories and directories with names that begin with.
or_
- Support method receivers with type parameters introduced in Go 1.18
- Use more efficient filepath.WalkDir instead of filepath.Walk
- Test coverage
- Fix cyclomatic complexity for function literals (base complexity of 1 was missing)
- New
-avg-short
and-total-short
options for printing average and total cyclomatic complexities without label - Export the
AnalyzeASTFile
function in package API - Doc comments for exported functions and types
- Ignore
default
cases
- Support for gocyclo as a package
- Support for ignoring of individual functions via a new
gocyclo:ignore
directive - New
-total
option to compute total cyclomatic complexity - New
-ignore
option to ignore files matching a regular expression - Analysis of function literals at declaration level
- Breaking: installation changed to
go get github.com/fzipp/gocyclo/cmd/gocyclo
go.mod
file; beginning of versioning