Skip to content

Commit 6420f5f

Browse files
Update custom-transformation-pre-qct.yaml
1 parent 04fffd0 commit 6420f5f

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

custom-transformation-pre-qct.yaml

+15-18
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
11
id: sysout-to-logger
22
language: java
33
rule:
4-
pattern: System.out.println($MATCH)
5-
fix: logger.info($MATCH)
6-
#rule:
7-
# kind: local_variable_declaration
8-
# all:
9-
# - has:
10-
# has:
11-
# kind: identifier
12-
# pattern: $IDENT
13-
# - not:
14-
# precedes:
15-
# stopBy: end
16-
# has:
17-
# stopBy: end
18-
# any:
19-
# - { kind: identifier, pattern: $IDENT }
20-
# - { has: {kind: identifier, pattern: $IDENT, stopBy: end}}
21-
#fix: ''vi
4+
kind: local_variable_declaration
5+
all:
6+
- has:
7+
has:
8+
kind: identifier
9+
pattern: $IDENT
10+
- not:
11+
precedes:
12+
stopBy: end
13+
has:
14+
stopBy: end
15+
any:
16+
- { kind: identifier, pattern: $IDENT }
17+
- { has: {kind: identifier, pattern: $IDENT, stopBy: end}}
18+
fix: ''

0 commit comments

Comments
 (0)