Releases: richardwooding/codemetrics
Releases · richardwooding/codemetrics
Release list
v0.11.0
Changelog
Features
- c373472: feat(cli): real colorized output — honors NO_COLOR, TTY, and --color (#18) (@richardwooding)
Others
- ee913ec: ci(pages): self-enable Pages so the deploy can't fail on a fresh repo (#17) (@richardwooding)
- e2bfa55: docs(site): GitHub Pages marketing landing page (#16) (@richardwooding)
v0.10.0
Changelog
Features
- 9c3ad6c: feat(cli): suppress the complexity gate via source directives (#15) (@richardwooding)
v0.9.0
Changelog
Features
- 9cf28fa: feat(cli): skip vendored/minified files by default (projectdetect v0.6.0) (#14) (@richardwooding)
v0.8.0
Changelog
Others
- bbc96e8: refactor!: rename module to github.com/richardwooding/codemetrics (#13) (@richardwooding)
v0.7.1
Changelog
Bug fixes
- f8c84c8: fix(action): shorten description under Marketplace's 125-char limit (#9) (@richardwooding)
v0.7.0
Changelog
Features
- 75ba3b2: feat(action): composite GitHub Action for PR complexity gating (#8) (@richardwooding)
v0.6.0
Changelog
Features
- d8b8d82: feat(cli): --diff PR mode — gate only functions touched by a change (#6) (@richardwooding)
- 5c260c5: feat(cli): Kong CLI with polyglot analysis, SARIF output, and baseline gate (#5) (@richardwooding)
Others
- e34cf95: build: GoReleaser release process with Homebrew cask (#7) (@richardwooding)
- 9bee149: chore(deps): Bump actions/checkout from 5 to 7 (#3) (@dependabot[bot])
v0.5.0
Added
- Cognitive complexity for Swift. gotreesitter v0.20.7 fixed the tree-sitter-swift
else ifmis-parse (odvcencio/gotreesitter#131) that previously degraded functions to ERROR nodes, so Swift now gets a cognitive-complexity spec. else-if is modelled via a newelseDirectIfclassifier (the continuationif_statementis a direct child of the outer one).
Changed
- Bump
github.com/odvcencio/gotreesitterv0.20.6 → v0.20.8.
Chore
- Add grouped
minor-and-patchdependabot config.
v0.4.1
Bumps gotreesitter v0.20.5 → v0.20.6 (parser-recovery correctness + forest/performance improvements). No API change.
v0.4.0
Adds treesitter.MetricsFromTree(language, tree, lang, spans) — compute cyclomatic + cognitive complexity over an already-parsed gotreesitter tree, with no second parse. Lets a symbol extractor (e.g. treesitter-symbols) return symbols and metrics from a single parse. Parse now delegates to it; the decision query is compiled+cached per grammar. Exported Span type carries the function ranges the call needs.
go get github.com/richardwooding/go-codemetrics@v0.4.0