Skip to content

Commit 95091c0

Browse files
author
Ulrike Kiesel
committed
fix(analysis): add missing link and analyzers to mean_complexity_per_function descriptor
1 parent cb84d91 commit 95091c0

29 files changed

Lines changed: 143 additions & 95 deletions

analysis/.kotlin/sessions/kotlin-compiler-12322078610956747093.salive

Whitespace-only changes.

analysis/analysers/parsers/UnifiedParser/src/main/kotlin/de/maibornwolff/codecharta/analysers/parsers/unified/AttributeDescriptors.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,10 @@ internal fun getAttributeDescriptors(): Map<String, AttributeDescriptor> {
9494
),
9595
"mean_complexity_per_function" to AttributeDescriptor(
9696
title = "Mean complexity per function",
97-
description = "The mean complexity found in the body of a function of this file."
97+
description = "The mean complexity found in the body of a function of this file.",
98+
link = ghLink,
99+
direction = -1,
100+
analyzers = analyzerName
98101
),
99102
"median_complexity_per_function" to AttributeDescriptor(
100103
title = "Median complexity per function",

analysis/analysers/parsers/UnifiedParser/src/test/resources/empty.cc.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"checksum": "f983aebcae5f795440bf7a8ec6cadba1",
32
"data": {
43
"projectName": "",
54
"nodes": [
@@ -152,9 +151,11 @@
152151
"description": "The mean complexity found in the body of a function of this file.",
153152
"hintLowValue": "",
154153
"hintHighValue": "",
155-
"link": "",
154+
"link": "https://codecharta.com/docs/parser/unified",
156155
"direction": -1,
157-
"analyzers": []
156+
"analyzers": [
157+
"unifiedParser"
158+
]
158159
},
159160
"median_complexity_per_function": {
160161
"title": "Median complexity per function",
@@ -268,5 +269,6 @@
268269
}
269270
},
270271
"blacklist": []
271-
}
272+
},
273+
"checksum": "cbe157f368d090f1a5105f10338e9ff7"
272274
}

analysis/analysers/parsers/UnifiedParser/src/test/resources/excludePattern.cc.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,11 @@
216216
"description": "The mean complexity found in the body of a function of this file.",
217217
"hintLowValue": "",
218218
"hintHighValue": "",
219-
"link": "",
219+
"link": "https://codecharta.com/docs/parser/unified",
220220
"direction": -1,
221-
"analyzers": []
221+
"analyzers": [
222+
"unifiedParser"
223+
]
222224
},
223225
"median_complexity_per_function": {
224226
"title": "Median complexity per function",
@@ -333,5 +335,5 @@
333335
},
334336
"blacklist": []
335337
},
336-
"checksum": "05021104f5d70abdf86ad90667995d25"
337-
}
338+
"checksum": "8da2bef9265b511b8dedb9957779fd7d"
339+
}

analysis/analysers/parsers/UnifiedParser/src/test/resources/includeAll.cc.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -392,9 +392,11 @@
392392
"description": "The mean complexity found in the body of a function of this file.",
393393
"hintLowValue": "",
394394
"hintHighValue": "",
395-
"link": "",
395+
"link": "https://codecharta.com/docs/parser/unified",
396396
"direction": -1,
397-
"analyzers": []
397+
"analyzers": [
398+
"unifiedParser"
399+
]
398400
},
399401
"median_complexity_per_function": {
400402
"title": "Median complexity per function",
@@ -509,5 +511,5 @@
509511
},
510512
"blacklist": []
511513
},
512-
"checksum": "702d21eea0467429b89dfb7ecb52dd78"
513-
}
514+
"checksum": "0b7ea0e9f7fd367f2b7d50f323962432"
515+
}

analysis/analysers/parsers/UnifiedParser/src/test/resources/kotlinOnly.cc.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"checksum": "4d74279a874cf465d39ea7b372f5255f",
32
"data": {
43
"projectName": "",
54
"nodes": [
@@ -289,9 +288,11 @@
289288
"description": "The mean complexity found in the body of a function of this file.",
290289
"hintLowValue": "",
291290
"hintHighValue": "",
292-
"link": "",
291+
"link": "https://codecharta.com/docs/parser/unified",
293292
"direction": -1,
294-
"analyzers": []
293+
"analyzers": [
294+
"unifiedParser"
295+
]
295296
},
296297
"median_complexity_per_function": {
297298
"title": "Median complexity per function",
@@ -405,5 +406,6 @@
405406
}
406407
},
407408
"blacklist": []
408-
}
409+
},
410+
"checksum": "04f7882c34a1d9988a6f3f2d45eb51c8"
409411
}

analysis/analysers/parsers/UnifiedParser/src/test/resources/languageSamples/bashSample.cc.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"checksum": "d7516dbebfe70430239ed55eb36d6e22",
32
"data": {
43
"projectName": "",
54
"nodes": [
@@ -185,9 +184,11 @@
185184
"description": "The mean complexity found in the body of a function of this file.",
186185
"hintLowValue": "",
187186
"hintHighValue": "",
188-
"link": "",
187+
"link": "https://codecharta.com/docs/parser/unified",
189188
"direction": -1,
190-
"analyzers": []
189+
"analyzers": [
190+
"unifiedParser"
191+
]
191192
},
192193
"median_complexity_per_function": {
193194
"title": "Median complexity per function",
@@ -301,5 +302,6 @@
301302
}
302303
},
303304
"blacklist": []
304-
}
305+
},
306+
"checksum": "5b265d6b4986fd9a235bbbed7f921528"
305307
}

analysis/analysers/parsers/UnifiedParser/src/test/resources/languageSamples/cHeaderSample.cc.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"checksum": "b83a3a76a7dd2803565feee9ca154c50",
32
"data": {
43
"projectName": "",
54
"nodes": [
@@ -185,9 +184,11 @@
185184
"description": "The mean complexity found in the body of a function of this file.",
186185
"hintLowValue": "",
187186
"hintHighValue": "",
188-
"link": "",
187+
"link": "https://codecharta.com/docs/parser/unified",
189188
"direction": -1,
190-
"analyzers": []
189+
"analyzers": [
190+
"unifiedParser"
191+
]
191192
},
192193
"median_complexity_per_function": {
193194
"title": "Median complexity per function",
@@ -301,5 +302,6 @@
301302
}
302303
},
303304
"blacklist": []
304-
}
305+
},
306+
"checksum": "0707f1b4d4c948a5bda3ac17a7985f80"
305307
}

analysis/analysers/parsers/UnifiedParser/src/test/resources/languageSamples/cSample.cc.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"checksum": "6f746426c61c9cc7feebb4a20258a772",
32
"data": {
43
"projectName": "",
54
"nodes": [
@@ -185,9 +184,11 @@
185184
"description": "The mean complexity found in the body of a function of this file.",
186185
"hintLowValue": "",
187186
"hintHighValue": "",
188-
"link": "",
187+
"link": "https://codecharta.com/docs/parser/unified",
189188
"direction": -1,
190-
"analyzers": []
189+
"analyzers": [
190+
"unifiedParser"
191+
]
191192
},
192193
"median_complexity_per_function": {
193194
"title": "Median complexity per function",
@@ -301,5 +302,6 @@
301302
}
302303
},
303304
"blacklist": []
304-
}
305+
},
306+
"checksum": "e93e8849a0bb43f86156eed4ccc2085f"
305307
}

analysis/analysers/parsers/UnifiedParser/src/test/resources/languageSamples/cSharpSample.cc.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"checksum": "bb15083cc4e241f0b498430d59ea3e1e",
32
"data": {
43
"projectName": "",
54
"nodes": [
@@ -185,9 +184,11 @@
185184
"description": "The mean complexity found in the body of a function of this file.",
186185
"hintLowValue": "",
187186
"hintHighValue": "",
188-
"link": "",
187+
"link": "https://codecharta.com/docs/parser/unified",
189188
"direction": -1,
190-
"analyzers": []
189+
"analyzers": [
190+
"unifiedParser"
191+
]
191192
},
192193
"median_complexity_per_function": {
193194
"title": "Median complexity per function",
@@ -301,5 +302,6 @@
301302
}
302303
},
303304
"blacklist": []
304-
}
305+
},
306+
"checksum": "c6e21f260fdf0dd30fc62ba2f455d946"
305307
}

0 commit comments

Comments
 (0)