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

@mre
Copy link
Member

mre commented Mar 17, 2026

Thanks Christian. codesize looks like an interesting tool, but it doesn't meet our requirements yet:

  • The repo was created on March 9, putting it well under the 3-month minimum age.
  • It has 1 star and a single contributor, and we require more than 20 stars and more than one contributor.

We'll keep this open. Feel free to come back once the project has had some time to mature.

@ChrisGVE
Copy link
Author

ChrisGVE commented Mar 17, 2026 via email

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.

2 participants