
ast-grep
7.0#3 in code search toolsFree planFree planWebAPIExtensionLinux
Visit
| Fact | ast-grep | Scalafix |
|---|---|---|
| Custom rules | Rules are written in YAML and can combine pattern, kind, regex, relational, and composite matching conditions. | Users can create custom linter and rewrite rules using the Scalafix public API. |
| Linting | The scan command runs configurable AST pattern rules and supports severity levels including error, warning, info, and hint. | It reports errors for code patterns that can cause production bugs or violate coding style. |
| Purpose | ast-grep is a fast, polyglot tool for structural code search, linting, and rewriting at scale. | Scalafix is a refactoring and linting tool for Scala. |
No prices published.
It suits developers who need syntax-aware search, linting, or bulk code changes across supported languages. Teams wanting advanced static-analysis information or one rule spanning multiple languages should note its stated limits.
Scalafix suits Scala developers and teams that want repeatable linting, automated refactoring or migration scripts. Semantic-rule users need compiled sources with SemanticDB enabled.