Skip to content

Commit 496d9b4

Browse files
committed
[feat] ast-grep experiment
1 parent 1f687a9 commit 496d9b4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ast-grep-kotoha.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# uvx --from ast-grep-cli ast-grep scan --rule ast-grep-kotoha.yaml examples/use_iterable.py
2+
id: do-not-use-list-as-typed-parameter
3+
language: Python
4+
rule:
5+
pattern:
6+
context: 'a: list[$TYPE]'
7+
selector: type
8+
inside:
9+
kind: typed_parameter
10+
fix: Iterable[$TYPE]

0 commit comments

Comments
 (0)