We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ast-grep
1 parent 230d560 commit a8671a1Copy full SHA for a8671a1
lua/conform/formatters/astgrep.lua
@@ -0,0 +1,11 @@
1
+---@type conform.FileFormatterConfig
2
+return {
3
+ meta = {
4
+ url = "https://ast-grep.github.io/",
5
+ description = "A CLI tool for code structural search, lint and rewriting. Written in Rust",
6
+ },
7
+ command = "ast-grep",
8
+ args = { "scan", "--update-all", "$FILENAME" },
9
+ stdin = false,
10
+ exit_codes = { 0, 5 }, -- 5 = no config file exists
11
+}
0 commit comments