Discover and explore top open-source AI tools and projects—updated daily.
Static analysis toolkit for writing and running code checkers
Top 66.5% on SourcePulse
Globstar is an open-source static analysis toolkit designed for developers and security engineers to create and execute custom code checkers. It offers a fast, portable, and dependency-free solution for enforcing code quality and security standards across large codebases, leveraging tree-sitter for AST-based analysis.
How It Works
Globstar utilizes tree-sitter for parsing code into Abstract Syntax Trees (ASTs), enabling precise pattern matching. Checkers can be written using tree-sitter's query language (S-expressions) defined in YAML files for simplicity, or in Go for advanced logic, offering access to ASTs, scope resolution, and multi-file analysis. This approach avoids custom DSLs and provides flexibility for different complexity needs.
Quick Start & Requirements
curl -sSL https://get.globstar.dev | sh
(downloads to ./bin/globstar
)Highlighted Details
.globstar
directory.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The README does not detail specific language support beyond Python examples, nor does it mention performance benchmarks or known limitations regarding complex code structures or specific language parsing capabilities.
2 months ago
1 week