Skip to content

Commit 3e82bd5

Browse files
post transformatoin changes
1 parent 5508543 commit 3e82bd5

File tree

3 files changed

+34
-4
lines changed

3 files changed

+34
-4
lines changed

custom-transformation-post-qct.yaml

+31-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,34 @@ rule:
1515
any:
1616
- { kind: identifier, pattern: $IDENT }
1717
- { 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)

movie-service-utils/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<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">
33
<modelVersion>4.0.0</modelVersion>
44

5-
<groupId>org.springframework</groupId>
5+
<groupId>org.amazonaws.samples</groupId>
66
<artifactId>movie-service-utils</artifactId>
77
<version>0.2.0</version>
88

pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
55

6-
<groupId>org.springframework</groupId>
6+
<groupId>org.amazonaws.samples</groupId>
77
<artifactId>movie-service</artifactId>
88
<version>0.1.0</version>
99

@@ -26,7 +26,7 @@
2626

2727
<dependencies>
2828
<dependency>
29-
<groupId>org.springframework</groupId>
29+
<groupId>org.amazonaws.samples</groupId>
3030
<artifactId>movie-service-utils</artifactId>
3131
<version>0.1.0</version>
3232
</dependency>

0 commit comments

Comments
 (0)