ast-grep icon indicating copy to clipboard operation
ast-grep copied to clipboard

⚡A CLI tool for code structural search, lint and rewriting. Written in Rust

Results 121 ast-grep issues
Sort by recently updated
recently updated
newest added

# ⭐ Suggestion It is impossible to transform a multiple-meta-variable match at the moment. We can only move multi-var match around in the fix. It is possible to introduce a...

enhancement

# ⭐ Suggestion Google's gemini pro is free for individual usage. We can build a chain of thought bot to create users ast-grep rules! # 💻 Use Cases Help people...

enhancement

We are thrilled that you are interested in ast-grep! We love to hear how ast-grep helps you solve your coding challenges and improve your productivity. We also want to spread...

documentation
help wanted
question

# ⭐ Suggestion Make it easier to write multiple variants of a fix by enabling some parts of the fix to be conditional. This could be implemented as a new...

enhancement

Thank you for the fantastic tool! I was very happy to discover the rule-test scaffolding features of the CLI, everything is so streamlined compared to wrangling eslint plugins (not to...

enhancement

Download `ast_grep_cli-0.14.2-py3-none-macosx_10_7_x86_64.whl` from https://pypi.org/project/ast-grep-cli/#files and run the following command: ```bash unzip -l ast_grep_cli-0.14.2-py3-none-macosx_10_7_x86_64.whl ``` Output: ``` Length Date Time Name --------- ---------- ----- ---- 6207 12-03-2023 07:34 ast_grep_cli-0.14.2.dist-info/METADATA 102 12-03-2023...

bug

# ⭐ Suggestion Hi @HerringtonDarkholme, ast-grep looks great. What do you think about adding support for ripgrep's JSON output format, so that tools that have been written to handle ripgrep's...

enhancement

# ⭐ Suggestion supports multiple languages in a rule, for example: ```yml - id: xxx - languages: [ts, tsx] ``` # 💻 Use Cases There are many common lint cases...

enhancement
good first issue

1. https://github.com/ast-grep/tree-sitter-facade for unifying both web and native API 2. https://github.com/ast-grep/web-tree-sitter-sg for bridging tree-sitter wasm to Rust wasm https://github.com/ast-grep/web-tree-sitter-wasm-bindgen for wasm-pack to integrate tree-sitter-wasm It is not urgent. in backlog.

good first issue
refactor

https://medium.com/source-and-buggy/data-driven-performance-optimization-with-rust-and-miri-70cb6dde0d35

perf