Add ast-metrics to Code Analysis - #6535
Merged
Merged
Conversation
Automated Quality ChecksRequired checks✅ Repo: accessible, has go.mod and SemVer release Additional checks✅ License: MIT These checks are automated and do not replace maintainer review. See CONTRIBUTING.md for full guidelines. PR Diff ValidationContent checks✅ Files changed: only README.md Automated diff validation — does not replace maintainer review. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Required links
Pre-submission checklist
Repository requirements
go.modfile and at least one SemVer release (vX.Y.Z). Latest isv0.40.2.Pull Request content
apicompatandasty).Category quality
I checked the five entries surrounding my addition (
apicompat,asty,blanket,ChainJacking,Chronos). None of them is archived and all linksresolve, so I did not remove anything. For the record, three of them look
dormant:
apicompat(last push 2017),Chronos(2022) andasty(2023). Ileft them in place to keep this PR to a single item, but I am happy to open
separate removal PRs if maintainers want.
About the project
AST Metrics is a static code analyzer written in Go. It parses source code with
tree-sitter and computes maintainability metrics (cyclomatic and cognitive
complexity, Halstead volume, afferent/efferent coupling, LCOM, maintainability
index, community detection on the dependency graph), then reports them as HTML,
JSON, Markdown, SARIF or OpenMetrics. It analyzes Go alongside PHP, Python, Rust
and others, ships as a single binary with no server or runtime dependency, and
is MIT licensed. First commit is from 2024, and it is under active development.