Skip to content

Commit 04fffd0

Browse files
Update custom-transformation-post-qct.yaml
1 parent e46a19e commit 04fffd0

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

custom-transformation-post-qct.yaml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,8 @@
11
id: no-unused-vars
22
language: java
33
rule:
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: ''
4+
pattern: System.out.println($MATCH)
5+
fix: logger.info($MATCH)
196

207
--- # this is YAML doc separator to have multiple rules in one file
218

@@ -45,4 +32,4 @@ rule:
4532
pattern: |-
4633
MovieUtils.isValidMovieName($MOVIE_NAME)
4734
fix: |-
48-
MovieUtils.isValidMovie($MOVIE_NAME, movieId)
35+
MovieUtils.isValidMovie($MOVIE_NAME, movieId)

0 commit comments

Comments
 (0)