#2770·ast-grep

[feature] File-location + Cross-module guard +

Author: nhattran998Created Jun 26, 2026Updated Jun 26, 2026
Labelsenhancement

⭐ Suggestion

Thanks to your team for the wonderful library. We love it. But can I ask more about adding ast-grep support to the above features?

Use Cases

We follow the clean architecture in our codebase. Before using ast-grep, we already have a script use ox

  1. Usecase: "*.use-case.ts must live under application/use-cases/" = filename↔path correlation. ast-grep can't assert a file is in the wrong dir — files: only selects targets, can't flag "this matched file is misplaced". Kebab-case check = filename regex, also out of scope.

  2. Resolves relative imports → module name → compares two modules. Needs path resolution + cross-reference logic ast-grep lacks.