globstar  by DeepSourceCorp

Static analysis toolkit for writing and running code checkers

Created 3 years ago
455 stars

Top 66.5% on SourcePulse

GitHubView on GitHub
Project Summary

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

Highlighted Details

  • Written in Go for high performance and distributed as a single binary.
  • Supports checkers written in YAML (tree-sitter queries) or Go (full AST access).
  • CI-friendly with easy binary download and execution.
  • Built-in checkers and custom checkers stored in a .globstar directory.

Maintenance & Community

  • Developed by DeepSource.
  • Actively involves the community in development.

Licensing & Compatibility

  • MIT License for the CLI and built-in checkers, allowing unrestricted commercial use.

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.

Health Check
Last Commit

2 months ago

Responsiveness

1 week

Pull Requests (30d)
0
Issues (30d)
0
Star History
1 stars in the last 30 days

Explore Similar Projects

Starred by Boris Cherny Boris Cherny(Creator of Claude Code; MTS at Anthropic), Hiroshi Shibata Hiroshi Shibata(Core Contributor to Ruby), and
6 more.

oss-fuzz by google

0.1%
11k
Continuous fuzzing for open source software
Created 9 years ago
Updated 1 day ago
Feedback? Help us improve.