Skip to content

Commit 22a3897

Browse files
TylerJang27github-actions[bot]
authored andcommitted
Auto add snapshots
1 parent 335a120 commit 22a3897

File tree

3 files changed

+203
-0
lines changed

3 files changed

+203
-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: 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)