
Alex Bit
@alex__bit
love people & solving hard technical problems. forward-looking. systems thinker. building @Codemod to automate code migrations for all. ex @Meta.
ID: 51467355
http://codemod.com 27-06-2009 15:30:42
1,1K Tweet
959 Followers
2,2K Following

ast-grep is gods gift to mankind. Herrington Darkholme π




#ast_grep_trick If you are using a shell, you can write a rule with PLACEHOLDER and fill in values by process substitution. ππ¬π-π π«ππ© π¬πππ§ -π« <(π¬ππ 'π¬/π©π₯ππππ‘π¨π₯πππ«/π―ππ«/π ' πππ¦π©π₯πππ.π²π¦π₯) It can make ast-grep rule dynamic and parameterized!




Matteo Collina Node.js I whipped up an ast-grep rule with Codemod AI to catch this setImmediate() anti-pattern in Node.js apps: app.codemod.com/studio?share_i⦠hopefully it serves as a good starting point for spotting this kind of issue. thanks for the PSA Matteo Collina!







