File tree 3 files changed +34
-4
lines changed
3 files changed +34
-4
lines changed Original file line number Diff line number Diff line change 15
15
any :
16
16
- { kind: identifier, pattern: $IDENT }
17
17
- { has: {kind: identifier, pattern: $IDENT, stopBy: end}}
18
- fix : ' '
18
+ fix : ' '
19
+
20
+ --- # this is YAML doc separator to have multiple rules in one file
21
+
22
+ id : update-movie-service-util-java17
23
+ language : html
24
+ rule :
25
+ pattern : |-
26
+ <dependency>
27
+ <groupId>org.amazonaws.samples</groupId>
28
+ <artifactId>movie-service-utils</artifactId>
29
+ <version>$VERSION</version>
30
+ </dependency>
31
+ constraints :
32
+ VERSION :
33
+ regex : " ^0\\ .1\\ .0"
34
+ fix : |-
35
+ <dependency>
36
+ <groupId>org.amazonaws.samples</groupId>
37
+ <artifactId>movie-service-utils</artifactId>
38
+ <version>0.2.0</version>
39
+ </dependency>
40
+
41
+ --- # this is YAML doc separator to have multiple rules in one file
42
+ id : update-movie-service-util-method
43
+ language : java
44
+ rule :
45
+ pattern : |-
46
+ MovieUtils.isValidMovieName($MOVIE_NAME)
47
+ fix : |-
48
+ MovieUtils.isValidMovie($MOVIE_NAME, movieId)
Original file line number Diff line number Diff line change 2
2
<project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
3
3
<modelVersion >4.0.0</modelVersion >
4
4
5
- <groupId >org.springframework </groupId >
5
+ <groupId >org.amazonaws.samples </groupId >
6
6
<artifactId >movie-service-utils</artifactId >
7
7
<version >0.2.0</version >
8
8
Original file line number Diff line number Diff line change 3
3
xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
4
4
<modelVersion >4.0.0</modelVersion >
5
5
6
- <groupId >org.springframework </groupId >
6
+ <groupId >org.amazonaws.samples </groupId >
7
7
<artifactId >movie-service</artifactId >
8
8
<version >0.1.0</version >
9
9
26
26
27
27
<dependencies >
28
28
<dependency >
29
- <groupId >org.springframework </groupId >
29
+ <groupId >org.amazonaws.samples </groupId >
30
30
<artifactId >movie-service-utils</artifactId >
31
31
<version >0.1.0</version >
32
32
</dependency >
You can’t perform that action at this time.
0 commit comments