Search and Rewrite ast-grep is a code tool for structural search and replace. It is like syntax-aware grep/sed! You can write code patterns to locate and modify code, based on AST, in thousands of files, interactively. ast-grep -p '$A && $A()' -r '$A?.()' Scan as Linter ast-grep is a versatile and flexible tool for linting code with AST patterns. You can easily add new customized rules with intuit

