danger-warnings_next_generation 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +32 -0
- data/.rubocop.yml +665 -0
- data/.travis.yml +34 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +22 -0
- data/README.md +165 -0
- data/Rakefile +28 -0
- data/danger-warnings_next_generation.gemspec +41 -0
- data/lib/danger_plugin.rb +3 -0
- data/lib/danger_warnings_next_generation.rb +3 -0
- data/lib/warnings_next_generation/gem_version.rb +5 -0
- data/lib/warnings_next_generation/markdown_table.rb +45 -0
- data/lib/warnings_next_generation/plugin.rb +214 -0
- data/sonar-project.properties +9 -0
- data/spec/assets/aggregation.json +53 -0
- data/spec/assets/aggregation_single.json +11 -0
- data/spec/assets/example/aggregation.json +23 -0
- data/spec/assets/example/detail_android_lint.json +78 -0
- data/spec/assets/example/detail_detekt.json +186 -0
- data/spec/assets/example/detail_pmd.json +5 -0
- data/spec/assets/example/overview_android_lint.json +43 -0
- data/spec/assets/example/overview_detekt.json +43 -0
- data/spec/assets/example/overview_pmd.json +29 -0
- data/spec/assets/java.json +36 -0
- data/spec/assets/java_all.json +150 -0
- data/spec/assets/java_zero.json +36 -0
- data/spec/assets/java_zero_new.json +36 -0
- data/spec/spec_helper.rb +72 -0
- data/spec/warnings_next_generation_spec.rb +248 -0
- metadata +227 -0
@@ -0,0 +1,78 @@
|
|
1
|
+
{
|
2
|
+
"_class": "io.jenkins.plugins.analysis.core.restapi.ReportApi",
|
3
|
+
"issues": [
|
4
|
+
{
|
5
|
+
"baseName": "fragment_send_message.xml",
|
6
|
+
"category": "Correctness",
|
7
|
+
"columnEnd": 6,
|
8
|
+
"columnStart": 6,
|
9
|
+
"description": "",
|
10
|
+
"fileName": "/var/lib/jenkins/workspace/danger/repository/app/src/main/res/layout/fragment_send_message.xml",
|
11
|
+
"fingerprint": "3A0B67C1AE8A7F3C49DCC0E3C6C20697",
|
12
|
+
"lineEnd": 9,
|
13
|
+
"lineStart": 9,
|
14
|
+
"message": "Missing Constraints in ConstraintLayout\nThis view is not constrained vertically: at runtime it will jump to the top unless you add a vertical constraint\nThe layout editor allows you to place widgets anywhere on the canvas, and it records the current position with designtime attributes (such as `layout_editor_absoluteX`). These attributes are **not** applied at runtime, so if you push your layout on a device, the widgets may appear in a different location than shown in the editor. To fix this, make sure a widget has both horizontal and vertical constraints by dragging from the edge connections.",
|
15
|
+
"moduleName": "",
|
16
|
+
"origin": "android-lint",
|
17
|
+
"packageName": "-",
|
18
|
+
"reference": "9",
|
19
|
+
"severity": "HIGH",
|
20
|
+
"type": "MissingConstraints"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"baseName": "fragment_incomming_message_item.xml",
|
24
|
+
"category": "Internationalization",
|
25
|
+
"columnEnd": 13,
|
26
|
+
"columnStart": 13,
|
27
|
+
"description": "",
|
28
|
+
"fileName": "/var/lib/jenkins/workspace/danger/repository/app/src/main/res/layout/fragment_incomming_message_item.xml",
|
29
|
+
"fingerprint": "D3FCD13C96AE6AEECF1543338D6FB224",
|
30
|
+
"lineEnd": 15,
|
31
|
+
"lineStart": 15,
|
32
|
+
"message": "Hardcoded text\nHardcoded string \"TextView\", should use `@string` resource\nHardcoding text attributes directly in layout files is bad for several reasons:

* When creating configuration variations (for example for landscape or portrait) you have to repeat the actual text (and keep it up to date when making changes)

* The application cannot be translated to other languages by just adding new translations for existing string resources.

There are quickfixes to automatically extract this hardcoded string into a resource lookup.",
|
33
|
+
"moduleName": "",
|
34
|
+
"origin": "android-lint",
|
35
|
+
"packageName": "-",
|
36
|
+
"reference": "9",
|
37
|
+
"severity": "NORMAL",
|
38
|
+
"type": "HardcodedText"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"baseName": "fragment_incomming_message_item.xml",
|
42
|
+
"category": "Internationalization",
|
43
|
+
"columnEnd": 13,
|
44
|
+
"columnStart": 13,
|
45
|
+
"description": "",
|
46
|
+
"fileName": "/var/lib/jenkins/workspace/danger/repository/app/src/main/res/layout/fragment_incomming_message_item.xml",
|
47
|
+
"fingerprint": "76E6403D11A92C50023CAB9688181D47",
|
48
|
+
"lineEnd": 26,
|
49
|
+
"lineStart": 26,
|
50
|
+
"message": "Hardcoded text\nHardcoded string \"Test\", should use `@string` resource\nHardcoding text attributes directly in layout files is bad for several reasons:

* When creating configuration variations (for example for landscape or portrait) you have to repeat the actual text (and keep it up to date when making changes)

* The application cannot be translated to other languages by just adding new translations for existing string resources.

There are quickfixes to automatically extract this hardcoded string into a resource lookup.",
|
51
|
+
"moduleName": "",
|
52
|
+
"origin": "android-lint",
|
53
|
+
"packageName": "-",
|
54
|
+
"reference": "9",
|
55
|
+
"severity": "NORMAL",
|
56
|
+
"type": "HardcodedText"
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"baseName": "fragment_language_item.xml",
|
60
|
+
"category": "Internationalization",
|
61
|
+
"columnEnd": 13,
|
62
|
+
"columnStart": 13,
|
63
|
+
"description": "",
|
64
|
+
"fileName": "/var/lib/jenkins/workspace/danger/repository/app/src/main/res/layout/fragment_language_item.xml",
|
65
|
+
"fingerprint": "9D6601F3EF2674034C9169AD70A4C723",
|
66
|
+
"lineEnd": 20,
|
67
|
+
"lineStart": 20,
|
68
|
+
"message": "Hardcoded text\nHardcoded string \"Englisch\", should use `@string` resource\nHardcoding text attributes directly in layout files is bad for several reasons:

* When creating configuration variations (for example for landscape or portrait) you have to repeat the actual text (and keep it up to date when making changes)

* The application cannot be translated to other languages by just adding new translations for existing string resources.

There are quickfixes to automatically extract this hardcoded string into a resource lookup.",
|
69
|
+
"moduleName": "",
|
70
|
+
"origin": "android-lint",
|
71
|
+
"packageName": "-",
|
72
|
+
"reference": "9",
|
73
|
+
"severity": "NORMAL",
|
74
|
+
"type": "HardcodedText"
|
75
|
+
}
|
76
|
+
],
|
77
|
+
"size": 4
|
78
|
+
}
|
@@ -0,0 +1,186 @@
|
|
1
|
+
{
|
2
|
+
"_class": "io.jenkins.plugins.analysis.core.restapi.ReportApi",
|
3
|
+
"issues": [
|
4
|
+
{
|
5
|
+
"baseName": "ItemFragment.kt",
|
6
|
+
"category": "",
|
7
|
+
"columnEnd": 9,
|
8
|
+
"columnStart": 9,
|
9
|
+
"description": "",
|
10
|
+
"fileName": "/var/lib/jenkins/workspace/danger/repository/app/src/main/java/de/example/ItemFragment.kt",
|
11
|
+
"fingerprint": "FFE79E9559B2AE4FABABEA1FD886DD66",
|
12
|
+
"lineEnd": 81,
|
13
|
+
"lineStart": 81,
|
14
|
+
"message": "The function onListFragmentInteraction is missing documentation.",
|
15
|
+
"moduleName": "",
|
16
|
+
"origin": "detekt",
|
17
|
+
"packageName": "-",
|
18
|
+
"reference": "9",
|
19
|
+
"severity": "NORMAL",
|
20
|
+
"type": "UndocumentedPublicFunction"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"baseName": "ItemFragment.kt",
|
24
|
+
"category": "",
|
25
|
+
"columnEnd": 9,
|
26
|
+
"columnStart": 9,
|
27
|
+
"description": "",
|
28
|
+
"fileName": "/var/lib/jenkins/workspace/danger/repository/app/src/main/java/de/example/ItemFragment.kt",
|
29
|
+
"fingerprint": "1A69DC08F987F6742EA1638957077C09",
|
30
|
+
"lineEnd": 90,
|
31
|
+
"lineStart": 90,
|
32
|
+
"message": "The function newInstance is missing documentation.",
|
33
|
+
"moduleName": "",
|
34
|
+
"origin": "detekt",
|
35
|
+
"packageName": "-",
|
36
|
+
"reference": "9",
|
37
|
+
"severity": "NORMAL",
|
38
|
+
"type": "UndocumentedPublicFunction"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"baseName": "ItemFragment.kt",
|
42
|
+
"category": "",
|
43
|
+
"columnEnd": 13,
|
44
|
+
"columnStart": 13,
|
45
|
+
"description": "",
|
46
|
+
"fileName": "/var/lib/jenkins/workspace/danger/repository/app/src/main/java/de/example/ItemFragment.kt",
|
47
|
+
"fingerprint": "24A2ACAE90E42DD6024F55748A8DF9EF",
|
48
|
+
"lineEnd": 60,
|
49
|
+
"lineStart": 60,
|
50
|
+
"message": "RuntimeException is a too generic Exception. Prefer throwing specific exceptions that indicate a specific error case.",
|
51
|
+
"moduleName": "",
|
52
|
+
"origin": "detekt",
|
53
|
+
"packageName": "-",
|
54
|
+
"reference": "9",
|
55
|
+
"severity": "HIGH",
|
56
|
+
"type": "TooGenericExceptionThrown"
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"baseName": "ItemFragment.kt",
|
60
|
+
"category": "",
|
61
|
+
"columnEnd": 5,
|
62
|
+
"columnStart": 5,
|
63
|
+
"description": "",
|
64
|
+
"fileName": "/var/lib/jenkins/workspace/danger/repository/app/src/main/java/de/example/ItemFragment.kt",
|
65
|
+
"fingerprint": "99C56C638AEADB3404BE276D820BDEC8",
|
66
|
+
"lineEnd": 23,
|
67
|
+
"lineStart": 23,
|
68
|
+
"message": "This comment contains text that has been defined as forbidden in detekt.",
|
69
|
+
"moduleName": "",
|
70
|
+
"origin": "detekt",
|
71
|
+
"packageName": "-",
|
72
|
+
"reference": "9",
|
73
|
+
"severity": "NORMAL",
|
74
|
+
"type": "ForbiddenComment"
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"baseName": "ItemFragment.kt",
|
78
|
+
"category": "",
|
79
|
+
"columnEnd": 9,
|
80
|
+
"columnStart": 9,
|
81
|
+
"description": "",
|
82
|
+
"fileName": "/var/lib/jenkins/workspace/danger/repository/app/src/main/java/de/example/ItemFragment.kt",
|
83
|
+
"fingerprint": "FFE79E9559B2AE4FABABEA1FD886DD66",
|
84
|
+
"lineEnd": 81,
|
85
|
+
"lineStart": 81,
|
86
|
+
"message": "This comment contains text that has been defined as forbidden in detekt.",
|
87
|
+
"moduleName": "",
|
88
|
+
"origin": "detekt",
|
89
|
+
"packageName": "-",
|
90
|
+
"reference": "9",
|
91
|
+
"severity": "NORMAL",
|
92
|
+
"type": "ForbiddenComment"
|
93
|
+
},
|
94
|
+
{
|
95
|
+
"baseName": "ItemFragment.kt",
|
96
|
+
"category": "",
|
97
|
+
"columnEnd": 9,
|
98
|
+
"columnStart": 9,
|
99
|
+
"description": "",
|
100
|
+
"fileName": "/var/lib/jenkins/workspace/danger/repository/app/src/main/java/de/example/ItemFragment.kt",
|
101
|
+
"fingerprint": "F30579D65FFE1F41403388353ADEBBD6",
|
102
|
+
"lineEnd": 87,
|
103
|
+
"lineStart": 87,
|
104
|
+
"message": "This comment contains text that has been defined as forbidden in detekt.",
|
105
|
+
"moduleName": "",
|
106
|
+
"origin": "detekt",
|
107
|
+
"packageName": "-",
|
108
|
+
"reference": "9",
|
109
|
+
"severity": "NORMAL",
|
110
|
+
"type": "ForbiddenComment"
|
111
|
+
},
|
112
|
+
{
|
113
|
+
"baseName": "ItemFragment.kt",
|
114
|
+
"category": "",
|
115
|
+
"columnEnd": 9,
|
116
|
+
"columnStart": 9,
|
117
|
+
"description": "",
|
118
|
+
"fileName": "/var/lib/jenkins/workspace/danger/repository/app/src/main/java/de/example/ItemFragment.kt",
|
119
|
+
"fingerprint": "1A69DC08F987F6742EA1638957077C09",
|
120
|
+
"lineEnd": 90,
|
121
|
+
"lineStart": 90,
|
122
|
+
"message": "This comment contains text that has been defined as forbidden in detekt.",
|
123
|
+
"moduleName": "",
|
124
|
+
"origin": "detekt",
|
125
|
+
"packageName": "-",
|
126
|
+
"reference": "9",
|
127
|
+
"severity": "NORMAL",
|
128
|
+
"type": "ForbiddenComment"
|
129
|
+
},
|
130
|
+
{
|
131
|
+
"baseName": "ItemFragment.kt",
|
132
|
+
"category": "",
|
133
|
+
"columnEnd": 38,
|
134
|
+
"columnStart": 38,
|
135
|
+
"description": "",
|
136
|
+
"fileName": "/var/lib/jenkins/workspace/danger/repository/app/src/main/java/de/example/ItemFragment.kt",
|
137
|
+
"fingerprint": "41C11A4F158B813F1B00DC0300743EB8",
|
138
|
+
"lineEnd": 94,
|
139
|
+
"lineStart": 94,
|
140
|
+
"message": "apply expression can be omitted",
|
141
|
+
"moduleName": "",
|
142
|
+
"origin": "detekt",
|
143
|
+
"packageName": "-",
|
144
|
+
"reference": "9",
|
145
|
+
"severity": "NORMAL",
|
146
|
+
"type": "UnnecessaryApply"
|
147
|
+
},
|
148
|
+
{
|
149
|
+
"baseName": "ItemFragment.kt",
|
150
|
+
"category": "",
|
151
|
+
"columnEnd": 28,
|
152
|
+
"columnStart": 28,
|
153
|
+
"description": "",
|
154
|
+
"fileName": "/var/lib/jenkins/workspace/danger/repository/app/src/main/java/de/example/ItemFragment.kt",
|
155
|
+
"fingerprint": "DD832161F62F888FF2666CB90614C876",
|
156
|
+
"lineEnd": 93,
|
157
|
+
"lineStart": 93,
|
158
|
+
"message": "apply expression can be omitted",
|
159
|
+
"moduleName": "",
|
160
|
+
"origin": "detekt",
|
161
|
+
"packageName": "-",
|
162
|
+
"reference": "9",
|
163
|
+
"severity": "NORMAL",
|
164
|
+
"type": "UnnecessaryApply"
|
165
|
+
},
|
166
|
+
{
|
167
|
+
"baseName": "LanguageItemAdapter.kt",
|
168
|
+
"category": "",
|
169
|
+
"columnEnd": 5,
|
170
|
+
"columnStart": 5,
|
171
|
+
"description": "",
|
172
|
+
"fileName": "/var/lib/jenkins/workspace/danger/repository/app/src/main/java/de/example/LanguageItemAdapter.kt",
|
173
|
+
"fingerprint": "39EAD1B700C5E8F5038AD28750A2EC46",
|
174
|
+
"lineEnd": 55,
|
175
|
+
"lineStart": 55,
|
176
|
+
"message": "ViewHolder is missing required documentation.",
|
177
|
+
"moduleName": "",
|
178
|
+
"origin": "detekt",
|
179
|
+
"packageName": "-",
|
180
|
+
"reference": "9",
|
181
|
+
"severity": "NORMAL",
|
182
|
+
"type": "UndocumentedPublicClass"
|
183
|
+
}
|
184
|
+
],
|
185
|
+
"size": 10
|
186
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
{
|
2
|
+
"_class": "io.jenkins.plugins.analysis.core.restapi.AnalysisResultApi",
|
3
|
+
"errorMessages": [],
|
4
|
+
"fixedSize": 0,
|
5
|
+
"infoMessages": [
|
6
|
+
"Searching for all files in '/var/lib/jenkins/workspace/danger/repository' that match the pattern '**/build/reports/lint-results*.xml'",
|
7
|
+
"-> found 1 file",
|
8
|
+
"Successfully parsed file /var/lib/jenkins/workspace/danger/repository/app/build/reports/lint-results.xml",
|
9
|
+
"-> found 67 issues (skipped 0 duplicates)",
|
10
|
+
"Post processing issues on 'Master' with source code encoding 'UTF-8'",
|
11
|
+
"Resolving absolute file names for all issues in workspace '/var/lib/jenkins/workspace/danger/repository'",
|
12
|
+
"-> 0 resolved, 0 unresolved, 23 already resolved",
|
13
|
+
"Copying affected files to Jenkins' build folder '/var/lib/jenkins/jobs/danger/builds/10/files-with-issues'",
|
14
|
+
"-> 23 copied, 0 not in workspace, 0 not-found, 0 with I/O error",
|
15
|
+
"Resolving module names from module definitions (build.xml, pom.xml, or Manifest.mf files)",
|
16
|
+
"-> resolved module names for 67 issues",
|
17
|
+
"Resolving package names (or namespaces) by parsing the affected files",
|
18
|
+
"-> resolved package names of 23 affected files",
|
19
|
+
"No filter has been set, publishing all 67 issues",
|
20
|
+
"Creating fingerprints for all affected code blocks to track issues over different builds",
|
21
|
+
"-> created fingerprints for 67 issues",
|
22
|
+
"Skipping blaming as requested in the job configuration",
|
23
|
+
"Using reference build 'danger #9' to compute new, fixed, and outstanding issues",
|
24
|
+
"Issues delta (vs. reference build): outstanding: 67, new: 0, fixed: 0",
|
25
|
+
"No quality gates have been set - skipping",
|
26
|
+
"Health report is disabled - skipping"
|
27
|
+
],
|
28
|
+
"newSize": 0,
|
29
|
+
"noIssuesSinceBuild": -1,
|
30
|
+
"owner": {
|
31
|
+
"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun",
|
32
|
+
"number": 10,
|
33
|
+
"url": "https://example-jenkins.de/job/danger/10/"
|
34
|
+
},
|
35
|
+
"qualityGateStatus": "INACTIVE",
|
36
|
+
"referenceBuild": {
|
37
|
+
"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun",
|
38
|
+
"number": 9,
|
39
|
+
"url": "https://example-jenkins.de/job/danger/9/"
|
40
|
+
},
|
41
|
+
"successfulSinceBuild": -1,
|
42
|
+
"totalSize": 4
|
43
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
{
|
2
|
+
"_class": "io.jenkins.plugins.analysis.core.restapi.AnalysisResultApi",
|
3
|
+
"errorMessages": [],
|
4
|
+
"fixedSize": 3,
|
5
|
+
"infoMessages": [
|
6
|
+
"Searching for all files in '/var/lib/jenkins/workspace/danger/repository' that match the pattern '**/reports/detekt.xml'",
|
7
|
+
"-> found 1 file",
|
8
|
+
"Successfully parsed file /var/lib/jenkins/workspace/danger/repository/build/reports/detekt.xml",
|
9
|
+
"-> found 81 issues (skipped 0 duplicates)",
|
10
|
+
"Post processing issues on 'Master' with source code encoding 'UTF-8'",
|
11
|
+
"Resolving absolute file names for all issues in workspace '/var/lib/jenkins/workspace/danger/repository'",
|
12
|
+
"-> 0 resolved, 0 unresolved, 13 already resolved",
|
13
|
+
"Copying affected files to Jenkins' build folder '/var/lib/jenkins/jobs/danger/builds/10/files-with-issues'",
|
14
|
+
"-> 13 copied, 0 not in workspace, 0 not-found, 0 with I/O error",
|
15
|
+
"Resolving module names from module definitions (build.xml, pom.xml, or Manifest.mf files)",
|
16
|
+
"-> resolved module names for 81 issues",
|
17
|
+
"Resolving package names (or namespaces) by parsing the affected files",
|
18
|
+
"-> resolved package names of 13 affected files",
|
19
|
+
"No filter has been set, publishing all 81 issues",
|
20
|
+
"Creating fingerprints for all affected code blocks to track issues over different builds",
|
21
|
+
"-> created fingerprints for 81 issues",
|
22
|
+
"Skipping blaming as requested in the job configuration",
|
23
|
+
"Using reference build 'danger #9' to compute new, fixed, and outstanding issues",
|
24
|
+
"Issues delta (vs. reference build): outstanding: 81, new: 0, fixed: 0",
|
25
|
+
"No quality gates have been set - skipping",
|
26
|
+
"Health report is disabled - skipping"
|
27
|
+
],
|
28
|
+
"newSize": 0,
|
29
|
+
"noIssuesSinceBuild": -1,
|
30
|
+
"owner": {
|
31
|
+
"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun",
|
32
|
+
"number": 10,
|
33
|
+
"url": "https://example-jenkins.de/job/MR9--danger/10/"
|
34
|
+
},
|
35
|
+
"qualityGateStatus": "INACTIVE",
|
36
|
+
"referenceBuild": {
|
37
|
+
"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun",
|
38
|
+
"number": 9,
|
39
|
+
"url": "https://example-jenkins.de/job/MR9--danger/9/"
|
40
|
+
},
|
41
|
+
"successfulSinceBuild": -1,
|
42
|
+
"totalSize": 10
|
43
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
{
|
2
|
+
"_class": "io.jenkins.plugins.analysis.core.restapi.AnalysisResultApi",
|
3
|
+
"errorMessages": [
|
4
|
+
"No files found for pattern '**/reports/pmd.xml'. Configuration error?"
|
5
|
+
],
|
6
|
+
"fixedSize": 0,
|
7
|
+
"infoMessages": [
|
8
|
+
"Searching for all files in '/var/lib/jenkins/workspace/danger/repository' that match the pattern '**/reports/pmd.xml'",
|
9
|
+
"Using reference build 'danger #9' to compute new, fixed, and outstanding issues",
|
10
|
+
"Issues delta (vs. reference build): outstanding: 0, new: 0, fixed: 0",
|
11
|
+
"No quality gates have been set - skipping",
|
12
|
+
"Health report is disabled - skipping"
|
13
|
+
],
|
14
|
+
"newSize": 0,
|
15
|
+
"noIssuesSinceBuild": 8,
|
16
|
+
"owner": {
|
17
|
+
"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun",
|
18
|
+
"number": 10,
|
19
|
+
"url": "https://example-jenkins.de/job/danger/10/"
|
20
|
+
},
|
21
|
+
"qualityGateStatus": "INACTIVE",
|
22
|
+
"referenceBuild": {
|
23
|
+
"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun",
|
24
|
+
"number": 9,
|
25
|
+
"url": "https://example-jenkins.de/job/danger/9/"
|
26
|
+
},
|
27
|
+
"successfulSinceBuild": -1,
|
28
|
+
"totalSize": 0
|
29
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
{
|
2
|
+
"_class": "io.jenkins.plugins.analysis.core.restapi.AnalysisResultApi",
|
3
|
+
"errorMessages": [],
|
4
|
+
"fixedSize": 1,
|
5
|
+
"infoMessages": [
|
6
|
+
"Parsing console log (workspace: '/var/lib/jenkins/workspace/projectname/b2b-app-android-analyze/repository')",
|
7
|
+
"Post processing issues on 'Master' with encoding 'UTF-8'",
|
8
|
+
"Resolving absolute file names for all issues",
|
9
|
+
"-> 0 resolved, 0 unresolved, 4 already resolved",
|
10
|
+
"Copying affected files to Jenkins' build folder /var/lib/jenkins/jobs/projectname/jobs/b2b-app-android-analyze/builds/10",
|
11
|
+
"-> 4 copied, 0 not in workspace, 0 not-found, 0 with I/O error",
|
12
|
+
"Resolving module names from module definitions (build.xml, pom.xml, or Manifest.mf files)",
|
13
|
+
"-> resolved module names for 8 issues",
|
14
|
+
"Resolving package names (or namespaces) by parsing the affected files",
|
15
|
+
"-> resolved package names of 4 affected files",
|
16
|
+
"No filter has been set, publishing all 8 issues",
|
17
|
+
"Creating fingerprints for all affected code blocks to track issues over different builds",
|
18
|
+
"-> created fingerprints for 8 issues",
|
19
|
+
"Skipping blaming as requested in the job configuration",
|
20
|
+
"Using reference build 'projectname/b2b-app-android-analyze #9' to compute new, fixed, and outstanding issues",
|
21
|
+
"Issues delta (vs. reference build): outstanding: 8, new: 0, fixed: 4",
|
22
|
+
"No quality gates have been set - skipping",
|
23
|
+
"Health report is disabled - skipping"
|
24
|
+
],
|
25
|
+
"newSize": 2,
|
26
|
+
"noIssuesSinceBuild": -1,
|
27
|
+
"owner": {
|
28
|
+
"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun",
|
29
|
+
"number": 10,
|
30
|
+
"url": "https://localhost:8080/job/projectname/job/tests/job/b2b-app-android-analyze/10/"
|
31
|
+
},
|
32
|
+
"qualityGateStatus": "INACTIVE",
|
33
|
+
"referenceBuild": null,
|
34
|
+
"successfulSinceBuild": -1,
|
35
|
+
"totalSize": 3
|
36
|
+
}
|
@@ -0,0 +1,150 @@
|
|
1
|
+
{
|
2
|
+
"_class": "io.jenkins.plugins.analysis.core.restapi.ReportApi",
|
3
|
+
"issues": [
|
4
|
+
{
|
5
|
+
"baseName": "ProductDetailPageFragment.kt",
|
6
|
+
"category": "Deprecation",
|
7
|
+
"columnEnd": 54,
|
8
|
+
"columnStart": 54,
|
9
|
+
"description": "",
|
10
|
+
"fileName": "/var/lib/jenkins/workspace/projectname/b2b-app-android-analyze/repository/app/src/main/java/com/projectname/b2bshop/fragment/ProductDetailPageFragment.kt",
|
11
|
+
"fingerprint": "07D91BE07253C0864B9B4F05F0308B28",
|
12
|
+
"lineEnd": 135,
|
13
|
+
"lineStart": 135,
|
14
|
+
"message": "'getColor(Int): Int' is deprecated. Deprecated in Java",
|
15
|
+
"moduleName": "",
|
16
|
+
"origin": "java",
|
17
|
+
"packageName": "-",
|
18
|
+
"reference": "5",
|
19
|
+
"severity": "NORMAL",
|
20
|
+
"type": "-"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"baseName": "ImageGalleryFragment.kt",
|
24
|
+
"category": "",
|
25
|
+
"columnEnd": 20,
|
26
|
+
"columnSrt": 20,
|
27
|
+
"description": "",
|
28
|
+
"fileName": "/var/lib/jenkins/workspace/projectname/b2b-app-android-analyze/repository/app/src/main/java/com/projectname/b2bshop/fragment/gallery/ImageGalleryFragment.kt",
|
29
|
+
"fingerprint": "E87D54495A70927AA28711F59C2769A3",
|
30
|
+
"lineEnd": 40,
|
31
|
+
"lineStart": 40,
|
32
|
+
"message": "Type mismatch: inferred type is java.util.ArrayList<String!>? but kotlin.collections.ArrayList<String> /* = java.util.ArrayList<String> */ was expected",
|
33
|
+
"moduleName": "",
|
34
|
+
"origin": "java",
|
35
|
+
"packageName": "-",
|
36
|
+
"reference": "8",
|
37
|
+
"severity": "NORMAL",
|
38
|
+
"type": "-"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"baseName": "ImageGalleryFragment.kt",
|
42
|
+
"category": "Deprecation",
|
43
|
+
"columnEnd": 35,
|
44
|
+
"columnStart": 35,
|
45
|
+
"description": "",
|
46
|
+
"fileName": "/var/lib/jenkins/workspace/projectname/b2b-app-android-analyze/repository/app/src/main/java/com/projectname/b2bshop/fragment/gallery/ImageGalleryFragment.kt",
|
47
|
+
"fingerprint": "C814DD7CC95D1B793E66E9FC697B7FF3",
|
48
|
+
"lineEnd": 87,
|
49
|
+
"lineStart": 87,
|
50
|
+
"message": "'getColor(Int): Int' is deprecated. Deprecated in Java",
|
51
|
+
"moduleName": "",
|
52
|
+
"origin": "java",
|
53
|
+
"packageName": "-",
|
54
|
+
"reference": "5",
|
55
|
+
"severity": "NORMAL",
|
56
|
+
"type": "-"
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"baseName": "ImageGalleryFragment.kt",
|
60
|
+
"category": "Deprecation",
|
61
|
+
"columnEnd": 35,
|
62
|
+
"columnStart": 35,
|
63
|
+
"description": "",
|
64
|
+
"fileName": "/var/lib/jenkins/workspace/projectname/b2b-app-android-analyze/repository/app/src/main/java/com/projectname/b2bshop/fragment/gallery/ImageGalleryFragment.kt",
|
65
|
+
"fingerprint": "92B60A82A8CA732D9279870541F14A8F",
|
66
|
+
"lineEnd": 90,
|
67
|
+
"lineStart": 90,
|
68
|
+
"message": "'getColor(Int): Int' is deprecated. Deprecated in Java",
|
69
|
+
"moduleName": "",
|
70
|
+
"origin": "java",
|
71
|
+
"packageName": "-",
|
72
|
+
"reference": "5",
|
73
|
+
"severity": "NORMAL",
|
74
|
+
"type": "-"
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"baseName": "RequestQueue.java",
|
78
|
+
"category": "Rawtypes",
|
79
|
+
"columnEnd": 0,
|
80
|
+
"columnStart": 0,
|
81
|
+
"description": "",
|
82
|
+
"fileName": "/var/lib/jenkins/workspace/projectname/b2b-app-android-analyze/repository/app/src/main/java/com/projectname/b2bshop/webservice/requestqueue/RequestQueue.java",
|
83
|
+
"fingerprint": "06DB93A666B650A561E65E4CDD551E69",
|
84
|
+
"lineEnd": 15,
|
85
|
+
"lineStart": 15,
|
86
|
+
"message": "found raw type: Request",
|
87
|
+
"moduleName": "",
|
88
|
+
"origin": "java",
|
89
|
+
"packageName": "com.projectname.b2bshop.webservice.requestqueue",
|
90
|
+
"reference": "5",
|
91
|
+
"severity": "NORMAL",
|
92
|
+
"type": "-"
|
93
|
+
},
|
94
|
+
{
|
95
|
+
"baseName": "RequestQueueImpl.java",
|
96
|
+
"category": "Rawtypes",
|
97
|
+
"columnEnd": 0,
|
98
|
+
"columnStart": 0,
|
99
|
+
"description": "",
|
100
|
+
"fileName": "/var/lib/jenkins/workspace/projectname/b2b-app-android-analyze/repository/app/src/main/java/com/projectname/b2bshop/webservice/requestqueue/RequestQueueImpl.java",
|
101
|
+
"fingerprint": "1F27B31F6C207890DEA6CC6D1FB18E74",
|
102
|
+
"lineEnd": 25,
|
103
|
+
"lineStart": 25,
|
104
|
+
"message": "found raw type: Request",
|
105
|
+
"moduleName": "",
|
106
|
+
"origin": "java",
|
107
|
+
"packageName": "com.projectname.b2bshop.webservice.requestqueue",
|
108
|
+
"reference": "5",
|
109
|
+
"severity": "NORMAL",
|
110
|
+
"type": "-"
|
111
|
+
},
|
112
|
+
{
|
113
|
+
"baseName": "RequestQueueImpl.java",
|
114
|
+
"category": "Unchecked",
|
115
|
+
"columnEnd": 0,
|
116
|
+
"columnStart": 0,
|
117
|
+
"description": "",
|
118
|
+
"fileName": "/var/lib/jenkins/workspace/projectname/b2b-app-android-analyze/repository/app/src/main/java/com/projectname/b2bshop/webservice/requestqueue/RequestQueueImpl.java",
|
119
|
+
"fingerprint": "1770467592C03EF2156A00C86A5A3692",
|
120
|
+
"lineEnd": 27,
|
121
|
+
"lineStart": 27,
|
122
|
+
"message": "unchecked method invocation: method add in class RequestQueue is applied to given types",
|
123
|
+
"moduleName": "",
|
124
|
+
"origin": "java",
|
125
|
+
"packageName": "com.projectname.b2bshop.webservice.requestqueue",
|
126
|
+
"reference": "5",
|
127
|
+
"severity": "NORMAL",
|
128
|
+
"type": "-"
|
129
|
+
},
|
130
|
+
{
|
131
|
+
"baseName": "RequestQueueImpl.java",
|
132
|
+
"category": "Unchecked",
|
133
|
+
"columnEnd": 0,
|
134
|
+
"columnStart": 0,
|
135
|
+
"description": "",
|
136
|
+
"fileName": "/var/lib/jenkins/workspace/projectname/b2b-app-android-analyze/repository/app/src/main/java/com/projectname/b2bshop/webservice/requestqueue/RequestQueueImpl.java",
|
137
|
+
"fingerprint": "1770467592C03EF2156A00C86A5A3692",
|
138
|
+
"lineEnd": 27,
|
139
|
+
"lineStart": 27,
|
140
|
+
"message": "unchecked conversion",
|
141
|
+
"moduleName": "",
|
142
|
+
"origin": "java",
|
143
|
+
"packageName": "com.projectname.b2bshop.webservice.requestqueue",
|
144
|
+
"reference": "5",
|
145
|
+
"severity": "NORMAL",
|
146
|
+
"type": "-"
|
147
|
+
}
|
148
|
+
],
|
149
|
+
"size": 8
|
150
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
{
|
2
|
+
"_class": "io.jenkins.plugins.analysis.core.restapi.AnalysisResultApi",
|
3
|
+
"errorMessages": [],
|
4
|
+
"fixedSize": 0,
|
5
|
+
"infoMessages": [
|
6
|
+
"Parsing console log (workspace: '/var/lib/jenkins/workspace/projectname/b2b-app-android-analyze/repository')",
|
7
|
+
"Post processing issues on 'Master' with encoding 'UTF-8'",
|
8
|
+
"Resolving absolute file names for all issues",
|
9
|
+
"-> 0 resolved, 0 unresolved, 4 already resolved",
|
10
|
+
"Copying affected files to Jenkins' build folder /var/lib/jenkins/jobs/projectname/jobs/b2b-app-android-analyze/builds/10",
|
11
|
+
"-> 4 copied, 0 not in workspace, 0 not-found, 0 with I/O error",
|
12
|
+
"Resolving module names from module definitions (build.xml, pom.xml, or Manifest.mf files)",
|
13
|
+
"-> resolved module names for 8 issues",
|
14
|
+
"Resolving package names (or namespaces) by parsing the affected files",
|
15
|
+
"-> resolved package names of 4 affected files",
|
16
|
+
"No filter has been set, publishing all 8 issues",
|
17
|
+
"Creating fingerprints for all affected code blocks to track issues over different builds",
|
18
|
+
"-> created fingerprints for 8 issues",
|
19
|
+
"Skipping blaming as requested in the job configuration",
|
20
|
+
"Using reference build 'projectname/b2b-app-android-analyze #9' to compute new, fixed, and outstanding issues",
|
21
|
+
"Issues delta (vs. reference build): outstanding: 8, new: 0, fixed: 4",
|
22
|
+
"No quality gates have been set - skipping",
|
23
|
+
"Health report is disabled - skipping"
|
24
|
+
],
|
25
|
+
"newSize": 0,
|
26
|
+
"noIssuesSinceBuild": -1,
|
27
|
+
"owner": {
|
28
|
+
"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun",
|
29
|
+
"number": 10,
|
30
|
+
"url": "https://localhost:8080/job/projectname/job/tests/job/b2b-app-android-analyze/10/"
|
31
|
+
},
|
32
|
+
"qualityGateStatus": "INACTIVE",
|
33
|
+
"referenceBuild": null,
|
34
|
+
"successfulSinceBuild": -1,
|
35
|
+
"totalSize": 0
|
36
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
{
|
2
|
+
"_class": "io.jenkins.plugins.analysis.core.restapi.AnalysisResultApi",
|
3
|
+
"errorMessages": [],
|
4
|
+
"fixedSize": 4,
|
5
|
+
"infoMessages": [
|
6
|
+
"Parsing console log (workspace: '/var/lib/jenkins/workspace/projectname/b2b-app-android-analyze/repository')",
|
7
|
+
"Post processing issues on 'Master' with encoding 'UTF-8'",
|
8
|
+
"Resolving absolute file names for all issues",
|
9
|
+
"-> 0 resolved, 0 unresolved, 4 already resolved",
|
10
|
+
"Copying affected files to Jenkins' build folder /var/lib/jenkins/jobs/projectname/jobs/b2b-app-android-analyze/builds/10",
|
11
|
+
"-> 4 copied, 0 not in workspace, 0 not-found, 0 with I/O error",
|
12
|
+
"Resolving module names from module definitions (build.xml, pom.xml, or Manifest.mf files)",
|
13
|
+
"-> resolved module names for 8 issues",
|
14
|
+
"Resolving package names (or namespaces) by parsing the affected files",
|
15
|
+
"-> resolved package names of 4 affected files",
|
16
|
+
"No filter has been set, publishing all 8 issues",
|
17
|
+
"Creating fingerprints for all affected code blocks to track issues over different builds",
|
18
|
+
"-> created fingerprints for 8 issues",
|
19
|
+
"Skipping blaming as requested in the job configuration",
|
20
|
+
"Using reference build 'projectname/b2b-app-android-analyze #9' to compute new, fixed, and outstanding issues",
|
21
|
+
"Issues delta (vs. reference build): outstanding: 8, new: 0, fixed: 4",
|
22
|
+
"No quality gates have been set - skipping",
|
23
|
+
"Health report is disabled - skipping"
|
24
|
+
],
|
25
|
+
"newSize": 0,
|
26
|
+
"noIssuesSinceBuild": -1,
|
27
|
+
"owner": {
|
28
|
+
"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun",
|
29
|
+
"number": 10,
|
30
|
+
"url": "https://localhost:8080/job/projectname/job/tests/job/b2b-app-android-analyze/10/"
|
31
|
+
},
|
32
|
+
"qualityGateStatus": "INACTIVE",
|
33
|
+
"referenceBuild": null,
|
34
|
+
"successfulSinceBuild": -1,
|
35
|
+
"totalSize": 8
|
36
|
+
}
|