/
oracle-to-postgres-javarules.json
94 lines (94 loc) · 2.35 KB
/
oracle-to-postgres-javarules.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"analyzer": "com.amazon.aws.am2.appmig.estimate.java.JavaFileAnalyzer",
"file_type": "java",
"rules": [
{
"id": 1,
"name": "OracleDriver",
"description": "Oracle database drivers",
"complexity": "minor",
"rule_type": "package",
"remove": {
"import": ["java.sql.DriverManager","oracle.jdbc.driver.OracleDriver"]
},
"recommendation": 1001
},
{
"id": 4,
"name": "DBSpecific",
"description": "Oracle types",
"complexity": "major",
"rule_type": "package",
"remove": {
"import": ["oracle.jdbc.OracleTypes"]
},
"recommendation": 1004
},
{
"id": 5,
"name": "DBSpecific",
"description": "Advanced Queuing features of Oracle for enterprise messaging applications",
"complexity": "critical",
"rule_type": "package",
"remove": {
"import": ["oracle.jdbc.aq"]
},
"recommendation": 1005
},
{
"id": 6,
"name": "DBSpecific",
"description": "Oracle JDBC extension that provides interfaces to access the Database Change Notification feature of Oracle.",
"complexity": "critical",
"rule_type": "package",
"remove": {
"import": ["oracle.jdbc.dcn"]
},
"recommendation": 1006
},
{
"id": 7,
"name": "DBSpecific",
"description": "Support for Distributed transactions",
"complexity": "critical",
"rule_type": "package",
"remove": {
"import": ["oracle.jdbc.xa","oracle.jdbc.xa.client"]
},
"recommendation": 1007
},
{
"id": 8,
"name": "DBSpecific",
"description": "Oracle specific implementation of Connection cache and connection pooling",
"complexity": "critical",
"rule_type": "package",
"remove": {
"import": ["oracle.jdbc.pool"]
},
"recommendation": 1008
},
{
"id": 9,
"name": "DBSpecific",
"description": "Oracle database transparent fail-over replay support",
"complexity": "critical",
"rule_type": "package",
"remove": {
"import": ["oracle.jdbc.replay"]
},
"recommendation": 1009
},
{
"id": 10,
"name": "Search inline SQL statements in the java files",
"description": "Search inline SQL statements in the java files",
"complexity": "major",
"rule_type": "sql",
"search": {
"pattern": "\\b(^SELECT|FROM)\\b|\\b(^MERGE|USING)\\b|\\b(^INSERT|INTO)\\b|\\b(^DELETE|FROM)\\b|\\b(^UPDATE|SET)\\b|\\b(^CREATE|TABLE)\\b|\\b(^DROP|TABLE)\\b$/m"
},
"recommendation": 1000
}
]
}