Skip to content

Commit 95f63d3

Browse files
TylerJang27github-actions[bot]
authored andcommitted
Auto add snapshots
1 parent 0ec6856 commit 95f63d3

File tree

3 files changed

+364
-0
lines changed

3 files changed

+364
-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": "This utility class has a non-private constructor",
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: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
// trunk-upgrade-validation:RELEASE
3+
4+
exports[`Testing linter renovate test CUSTOM 1`] = `
5+
{
6+
"issues": [
7+
{
8+
"code": "error",
9+
"file": "test_data/.renovaterc.json",
10+
"issueClass": "ISSUE_CLASS_EXISTING",
11+
"level": "LEVEL_HIGH",
12+
"linter": "renovate",
13+
"message": undefined,
14+
"targetType": "renovate-config",
15+
},
16+
{
17+
"code": "error",
18+
"file": "test_data/renovate.json",
19+
"issueClass": "ISSUE_CLASS_EXISTING",
20+
"level": "LEVEL_HIGH",
21+
"linter": "renovate",
22+
"message": undefined,
23+
"targetType": "renovate-config",
24+
},
25+
{
26+
"code": "error",
27+
"file": "test_data/renovate.json5",
28+
"issueClass": "ISSUE_CLASS_EXISTING",
29+
"level": "LEVEL_HIGH",
30+
"linter": "renovate",
31+
"message": undefined,
32+
"targetType": "renovate-config",
33+
},
34+
],
35+
"lintActions": [
36+
{
37+
"command": "validate",
38+
"fileGroupName": "renovate-config",
39+
"linter": "renovate",
40+
"paths": [
41+
"test_data/.renovaterc.json",
42+
],
43+
"verb": "TRUNK_VERB_CHECK",
44+
},
45+
{
46+
"command": "validate",
47+
"fileGroupName": "renovate-config",
48+
"linter": "renovate",
49+
"paths": [
50+
"test_data/renovate.json",
51+
],
52+
"verb": "TRUNK_VERB_CHECK",
53+
},
54+
{
55+
"command": "validate",
56+
"fileGroupName": "renovate-config",
57+
"linter": "renovate",
58+
"paths": [
59+
"test_data/renovate.json5",
60+
],
61+
"verb": "TRUNK_VERB_CHECK",
62+
},
63+
{
64+
"command": "validate",
65+
"fileGroupName": "renovate-config",
66+
"linter": "renovate",
67+
"paths": [
68+
"test_data/.renovaterc.json",
69+
],
70+
"upstream": true,
71+
"verb": "TRUNK_VERB_CHECK",
72+
},
73+
{
74+
"command": "validate",
75+
"fileGroupName": "renovate-config",
76+
"linter": "renovate",
77+
"paths": [
78+
"test_data/renovate.json",
79+
],
80+
"upstream": true,
81+
"verb": "TRUNK_VERB_CHECK",
82+
},
83+
{
84+
"command": "validate",
85+
"fileGroupName": "renovate-config",
86+
"linter": "renovate",
87+
"paths": [
88+
"test_data/renovate.json5",
89+
],
90+
"upstream": true,
91+
"verb": "TRUNK_VERB_CHECK",
92+
},
93+
],
94+
"taskFailures": [],
95+
"unformattedFiles": [],
96+
}
97+
`;
Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
// trunk-upgrade-validation:RELEASE
3+
4+
exports[`Testing linter semgrep test CUSTOM 1`] = `
5+
{
6+
"issues": [],
7+
"lintActions": [
8+
{
9+
"command": "check",
10+
"fileGroupName": "ALL",
11+
"linter": "semgrep",
12+
"paths": [
13+
"test_data/basic.go",
14+
],
15+
"verb": "TRUNK_VERB_CHECK",
16+
},
17+
{
18+
"command": "check",
19+
"fileGroupName": "ALL",
20+
"linter": "semgrep",
21+
"paths": [
22+
"test_data/element.ts",
23+
],
24+
"verb": "TRUNK_VERB_CHECK",
25+
},
26+
{
27+
"command": "check",
28+
"fileGroupName": "ALL",
29+
"linter": "semgrep",
30+
"paths": [
31+
"test_data/empty_go.go",
32+
],
33+
"verb": "TRUNK_VERB_CHECK",
34+
},
35+
{
36+
"command": "check",
37+
"fileGroupName": "ALL",
38+
"linter": "semgrep",
39+
"paths": [
40+
"test_data/empty_js.js",
41+
],
42+
"verb": "TRUNK_VERB_CHECK",
43+
},
44+
{
45+
"command": "check",
46+
"fileGroupName": "ALL",
47+
"linter": "semgrep",
48+
"paths": [
49+
"test_data/empty_py.py",
50+
],
51+
"verb": "TRUNK_VERB_CHECK",
52+
},
53+
{
54+
"command": "check",
55+
"fileGroupName": "ALL",
56+
"linter": "semgrep",
57+
"paths": [
58+
"test_data/request.py",
59+
],
60+
"verb": "TRUNK_VERB_CHECK",
61+
},
62+
{
63+
"command": "check",
64+
"fileGroupName": "ALL",
65+
"linter": "semgrep",
66+
"paths": [
67+
"test_data/basic.go",
68+
],
69+
"upstream": true,
70+
"verb": "TRUNK_VERB_CHECK",
71+
},
72+
{
73+
"command": "check",
74+
"fileGroupName": "ALL",
75+
"linter": "semgrep",
76+
"paths": [
77+
"test_data/element.ts",
78+
],
79+
"upstream": true,
80+
"verb": "TRUNK_VERB_CHECK",
81+
},
82+
{
83+
"command": "check",
84+
"fileGroupName": "ALL",
85+
"linter": "semgrep",
86+
"paths": [
87+
"test_data/empty_go.go",
88+
],
89+
"upstream": true,
90+
"verb": "TRUNK_VERB_CHECK",
91+
},
92+
{
93+
"command": "check",
94+
"fileGroupName": "ALL",
95+
"linter": "semgrep",
96+
"paths": [
97+
"test_data/empty_js.js",
98+
],
99+
"upstream": true,
100+
"verb": "TRUNK_VERB_CHECK",
101+
},
102+
{
103+
"command": "check",
104+
"fileGroupName": "ALL",
105+
"linter": "semgrep",
106+
"paths": [
107+
"test_data/empty_py.py",
108+
],
109+
"upstream": true,
110+
"verb": "TRUNK_VERB_CHECK",
111+
},
112+
{
113+
"command": "check",
114+
"fileGroupName": "ALL",
115+
"linter": "semgrep",
116+
"paths": [
117+
"test_data/request.py",
118+
],
119+
"upstream": true,
120+
"verb": "TRUNK_VERB_CHECK",
121+
},
122+
],
123+
"taskFailures": [],
124+
"unformattedFiles": [],
125+
}
126+
`;

0 commit comments

Comments
 (0)