Skip to content

Commit 67ee8b1

Browse files
TylerJang27github-actions[bot]
authored andcommitted
Auto add snapshots
1 parent 4c9d4dd commit 67ee8b1

File tree

4 files changed

+350
-0
lines changed

4 files changed

+350
-0
lines changed
Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
// trunk-upgrade-validation:RELEASE
3+
4+
exports[`Testing linter pmd test CUSTOM 1`] = `
5+
{
6+
"issues": [
7+
{
8+
"code": "ApexDoc",
9+
"column": "8",
10+
"file": "test_data/apex.in.cls",
11+
"issueClass": "ISSUE_CLASS_EXISTING",
12+
"level": "LEVEL_MEDIUM",
13+
"line": "1",
14+
"linter": "pmd",
15+
"message": "Missing ApexDoc comment",
16+
"ranges": [
17+
{
18+
"filePath": "test_data/apex.in.cls",
19+
"length": "69",
20+
"offset": "7",
21+
},
22+
],
23+
"targetType": "apex",
24+
},
25+
{
26+
"code": "AvoidGlobalModifier",
27+
"column": "8",
28+
"file": "test_data/apex.in.cls",
29+
"issueClass": "ISSUE_CLASS_EXISTING",
30+
"level": "LEVEL_MEDIUM",
31+
"line": "1",
32+
"linter": "pmd",
33+
"message": "Avoid using global modifier",
34+
"ranges": [
35+
{
36+
"filePath": "test_data/apex.in.cls",
37+
"length": "69",
38+
"offset": "7",
39+
},
40+
],
41+
"targetType": "apex",
42+
},
43+
{
44+
"code": "ApexDoc",
45+
"column": "8",
46+
"file": "test_data/apex.in.cls",
47+
"issueClass": "ISSUE_CLASS_EXISTING",
48+
"level": "LEVEL_MEDIUM",
49+
"line": "2",
50+
"linter": "pmd",
51+
"message": "Missing ApexDoc comment",
52+
"ranges": [
53+
{
54+
"filePath": "test_data/apex.in.cls",
55+
"length": "41",
56+
"offset": "33",
57+
},
58+
],
59+
"targetType": "apex",
60+
},
61+
{
62+
"code": "NoPackage",
63+
"column": "1",
64+
"file": "test_data/hello.in.java",
65+
"issueClass": "ISSUE_CLASS_EXISTING",
66+
"level": "LEVEL_MEDIUM",
67+
"line": "3",
68+
"linter": "pmd",
69+
"message": "All classes, interfaces, enums and annotations must belong to a named package",
70+
"ranges": [
71+
{
72+
"filePath": "test_data/hello.in.java",
73+
"length": "5",
74+
"offset": "23",
75+
},
76+
],
77+
"targetType": "java",
78+
},
79+
{
80+
"code": "UseUtilityClass",
81+
"column": "1",
82+
"file": "test_data/hello.in.java",
83+
"issueClass": "ISSUE_CLASS_EXISTING",
84+
"level": "LEVEL_MEDIUM",
85+
"line": "3",
86+
"linter": "pmd",
87+
"message": "All methods are static. Consider adding a private no-args constructor to prevent instantiation.",
88+
"ranges": [
89+
{
90+
"filePath": "test_data/hello.in.java",
91+
"length": "5",
92+
"offset": "23",
93+
},
94+
],
95+
"targetType": "java",
96+
},
97+
],
98+
"lintActions": [
99+
{
100+
"command": "lint-apex",
101+
"fileGroupName": "apex",
102+
"linter": "pmd",
103+
"paths": [
104+
"test_data/apex.in.cls",
105+
],
106+
"verb": "TRUNK_VERB_CHECK",
107+
},
108+
{
109+
"command": "lint-apex",
110+
"fileGroupName": "apex",
111+
"linter": "pmd",
112+
"paths": [
113+
"test_data/apex.in.cls",
114+
],
115+
"upstream": true,
116+
"verb": "TRUNK_VERB_CHECK",
117+
},
118+
{
119+
"command": "lint-java",
120+
"fileGroupName": "java",
121+
"linter": "pmd",
122+
"paths": [
123+
"test_data/hello.in.java",
124+
],
125+
"verb": "TRUNK_VERB_CHECK",
126+
},
127+
{
128+
"command": "lint-java",
129+
"fileGroupName": "java",
130+
"linter": "pmd",
131+
"paths": [
132+
"test_data/hello.in.java",
133+
],
134+
"upstream": true,
135+
"verb": "TRUNK_VERB_CHECK",
136+
},
137+
],
138+
"taskFailures": [],
139+
"unformattedFiles": [],
140+
}
141+
`;
Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
// trunk-upgrade-validation:RELEASE
3+
4+
exports[`Testing linter squawk test basic 1`] = `
5+
{
6+
"issues": [
7+
{
8+
"code": "prefer-robust-stmts",
9+
"file": "test_data/basic.in.sql",
10+
"issueClass": "ISSUE_CLASS_EXISTING",
11+
"level": "LEVEL_HIGH",
12+
"linter": "squawk",
13+
"message": "Missing \`IF NOT EXISTS\`, the migration can't be rerun if it fails part way through.",
14+
"targetType": "sql",
15+
},
16+
{
17+
"code": "prefer-bigint-over-int",
18+
"column": "7",
19+
"file": "test_data/basic.in.sql",
20+
"issueClass": "ISSUE_CLASS_EXISTING",
21+
"level": "LEVEL_HIGH",
22+
"line": "1",
23+
"linter": "squawk",
24+
"message": "Using 32-bit integer fields can result in hitting the max \`int\` limit.",
25+
"targetType": "sql",
26+
},
27+
{
28+
"code": "prefer-identity",
29+
"column": "7",
30+
"file": "test_data/basic.in.sql",
31+
"issueClass": "ISSUE_CLASS_EXISTING",
32+
"level": "LEVEL_HIGH",
33+
"line": "1",
34+
"linter": "squawk",
35+
"message": "Serial types make schema, dependency, and permission management difficult.",
36+
"targetType": "sql",
37+
},
38+
{
39+
"code": "prefer-text-field",
40+
"column": "10",
41+
"file": "test_data/basic.in.sql",
42+
"issueClass": "ISSUE_CLASS_EXISTING",
43+
"level": "LEVEL_HIGH",
44+
"line": "2",
45+
"linter": "squawk",
46+
"message": "Changing the size of a \`varchar\` field requires an \`ACCESS EXCLUSIVE\` lock, that will prevent all reads and writes to the table.",
47+
"targetType": "sql",
48+
},
49+
{
50+
"code": "prefer-robust-stmts",
51+
"file": "test_data/basic.in.sql",
52+
"issueClass": "ISSUE_CLASS_EXISTING",
53+
"level": "LEVEL_HIGH",
54+
"line": "5",
55+
"linter": "squawk",
56+
"message": "Missing \`IF NOT EXISTS\`, the migration can't be rerun if it fails part way through.",
57+
"targetType": "sql",
58+
},
59+
{
60+
"code": "require-concurrent-index-creation",
61+
"file": "test_data/basic.in.sql",
62+
"issueClass": "ISSUE_CLASS_EXISTING",
63+
"level": "LEVEL_HIGH",
64+
"line": "5",
65+
"linter": "squawk",
66+
"message": "During normal index creation, table updates are blocked, but reads are still allowed.",
67+
"targetType": "sql",
68+
},
69+
{
70+
"code": "require-timeout-settings",
71+
"file": "test_data/basic.in.sql",
72+
"issueClass": "ISSUE_CLASS_EXISTING",
73+
"level": "LEVEL_HIGH",
74+
"line": "5",
75+
"linter": "squawk",
76+
"message": "Missing \`set lock_timeout\` before potentially slow operations",
77+
"targetType": "sql",
78+
},
79+
{
80+
"code": "require-timeout-settings",
81+
"file": "test_data/basic.in.sql",
82+
"issueClass": "ISSUE_CLASS_EXISTING",
83+
"level": "LEVEL_HIGH",
84+
"line": "5",
85+
"linter": "squawk",
86+
"message": "Missing \`set statement_timeout\` before potentially slow operations",
87+
"targetType": "sql",
88+
},
89+
{
90+
"code": "constraint-missing-not-valid",
91+
"column": "23",
92+
"file": "test_data/basic.in.sql",
93+
"issueClass": "ISSUE_CLASS_EXISTING",
94+
"level": "LEVEL_HIGH",
95+
"line": "7",
96+
"linter": "squawk",
97+
"message": "By default new constraints require a table scan and block writes to the table while that scan occurs.",
98+
"targetType": "sql",
99+
},
100+
{
101+
"code": "prefer-robust-stmts",
102+
"column": "23",
103+
"file": "test_data/basic.in.sql",
104+
"issueClass": "ISSUE_CLASS_EXISTING",
105+
"level": "LEVEL_HIGH",
106+
"line": "7",
107+
"linter": "squawk",
108+
"message": "Missing transaction, the migration can't be rerun if it fails part way through.",
109+
"targetType": "sql",
110+
},
111+
{
112+
"code": "disallowed-unique-constraint",
113+
"column": "27",
114+
"file": "test_data/basic.in.sql",
115+
"issueClass": "ISSUE_CLASS_EXISTING",
116+
"level": "LEVEL_HIGH",
117+
"line": "7",
118+
"linter": "squawk",
119+
"message": "Adding a \`UNIQUE\` constraint requires an \`ACCESS EXCLUSIVE\` lock which blocks reads and writes to the table while the index is built.",
120+
"targetType": "sql",
121+
},
122+
],
123+
"lintActions": [
124+
{
125+
"command": "lint",
126+
"fileGroupName": "sql",
127+
"linter": "squawk",
128+
"paths": [
129+
"test_data/basic.in.sql",
130+
],
131+
"verb": "TRUNK_VERB_CHECK",
132+
},
133+
{
134+
"command": "lint",
135+
"fileGroupName": "sql",
136+
"linter": "squawk",
137+
"paths": [
138+
"test_data/basic.in.sql",
139+
],
140+
"upstream": true,
141+
"verb": "TRUNK_VERB_CHECK",
142+
},
143+
],
144+
"taskFailures": [],
145+
"unformattedFiles": [],
146+
}
147+
`;
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
// trunk-upgrade-validation:RELEASE
3+
4+
exports[`Testing linter ty test basic 1`] = `
5+
{
6+
"issues": [],
7+
"lintActions": [
8+
{
9+
"command": "check",
10+
"fileGroupName": "python",
11+
"linter": "ty",
12+
"paths": [
13+
"test_data/basic.in.py",
14+
],
15+
"verb": "TRUNK_VERB_CHECK",
16+
},
17+
{
18+
"command": "check",
19+
"fileGroupName": "python",
20+
"linter": "ty",
21+
"paths": [
22+
"test_data/basic.in.py",
23+
],
24+
"upstream": true,
25+
"verb": "TRUNK_VERB_CHECK",
26+
},
27+
],
28+
"taskFailures": [],
29+
"unformattedFiles": [],
30+
}
31+
`;
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
// trunk-upgrade-validation:RELEASE
3+
4+
exports[`Testing linter ty test interface 1`] = `
5+
{
6+
"issues": [],
7+
"lintActions": [
8+
{
9+
"command": "check",
10+
"fileGroupName": "python-interface",
11+
"linter": "ty",
12+
"paths": [
13+
"test_data/interface.in.pyi",
14+
],
15+
"verb": "TRUNK_VERB_CHECK",
16+
},
17+
{
18+
"command": "check",
19+
"fileGroupName": "python-interface",
20+
"linter": "ty",
21+
"paths": [
22+
"test_data/interface.in.pyi",
23+
],
24+
"upstream": true,
25+
"verb": "TRUNK_VERB_CHECK",
26+
},
27+
],
28+
"taskFailures": [],
29+
"unformattedFiles": [],
30+
}
31+
`;

0 commit comments

Comments
 (0)