Skip to content

Add codesize - file and function size linter with tree-sitter#1768

Open
ChrisGVE wants to merge 1 commit intoanalysis-tools-dev:masterfrom
ChrisGVE:master
Open

Add codesize - file and function size linter with tree-sitter#1768
ChrisGVE wants to merge 1 commit intoanalysis-tools-dev:masterfrom
ChrisGVE:master

Conversation

@ChrisGVE
Copy link

Summary

  • Adds codesize, a MIT-licensed CLI tool that reports files and functions exceeding per-language size limits
  • Uses tree-sitter for accurate function boundary detection (not line-counting heuristics)
  • Supports Rust, TypeScript, JavaScript, Python, Go, Java, C, C++, Swift, and Lua out of the box; additional languages are configurable via TOML
  • Outputs CSV for easy CI integration

Tool details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant