@@ -6,10 +6,11 @@ Detailed information
6
6
7
7
_ Object containing the following properties:_
8
8
9
- | Property | Description | Type |
10
- | :------- | :------------------------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
11
- | ` issues ` | List of findings | _ Array of [ Issue] ( #issue ) items_ |
12
- | ` table ` | Table of related findings | _ Object with properties:_ <ul ><li >` title ` : ` string ` - Display title for table</li ><li >` columns ` : _ Array of [ TableAlignment] ( #tablealignment ) items_ </li ><li >` rows ` : _ Array of [ TableRowPrimitive] ( #tablerowprimitive ) items_ </li ></ul > _ or_ _ Object with properties:_ <ul ><li >` title ` : ` string ` - Display title for table</li ><li >` columns ` : _ Array of [ TableAlignment] ( #tablealignment ) items_ _ or_ _ Array of [ TableColumnObject] ( #tablecolumnobject ) items_ </li ><li >` rows ` : _ Array of [ TableRowObject] ( #tablerowobject ) items_ </li ></ul > |
9
+ | Property | Description | Type |
10
+ | :------- | :------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
11
+ | ` issues ` | List of findings | _ Array of [ Issue] ( #issue ) items_ |
12
+ | ` table ` | Table of related findings | _ Object with properties:_ <ul ><li >` title ` : ` string ` - Display title for table</li ><li >` columns ` : _ Array of [ TableAlignment] ( #tablealignment ) items_ </li ><li >` rows ` : _ Array of [ TableRowPrimitive] ( #tablerowprimitive ) items_ </li ></ul > _ or_ _ Object with properties:_ <ul ><li >` title ` : ` string ` - Display title for table</li ><li >` columns ` : _ Array of [ TableAlignment] ( #tablealignment ) items_ _ or_ _ Array of [ TableColumnObject] ( #tablecolumnobject ) items_ </li ><li >` rows ` : _ Array of [ TableRowObject] ( #tablerowobject ) items_ </li ></ul > |
13
+ | ` trees ` | Findings in tree structure | _ Array of [ Tree] ( #tree ) items_ |
13
14
14
15
_ All properties are optional._
15
16
@@ -97,6 +98,32 @@ _Object containing the following properties:_
97
98
98
99
_ (\* ) Required._
99
100
101
+ ## BasicTreeNode
102
+
103
+ _ Object containing the following properties:_
104
+
105
+ | Property | Description | Type |
106
+ | :-------------- | :--------------------------------------------- | :----------------------------------------------- |
107
+ | ** ` name ` ** (\* ) | Text label for node | ` string ` (_ min length: 1_ ) |
108
+ | ` values ` | Additional values for node | ` Record<string, number \| string> ` |
109
+ | ` children ` | Direct descendants of this node (omit if leaf) | _ Array of [ BasicTreeNode] ( #basictreenode ) items_ |
110
+
111
+ _ (\* ) Required._
112
+
113
+ ## BasicTree
114
+
115
+ Generic tree
116
+
117
+ _ Object containing the following properties:_
118
+
119
+ | Property | Description | Type |
120
+ | :-------------- | :----------- | :------------------------------ |
121
+ | ` title ` | Heading | ` string ` |
122
+ | ` type ` | Discriminant | ` 'basic' ` |
123
+ | ** ` root ` ** (\* ) | Root node | [ BasicTreeNode] ( #basictreenode ) |
124
+
125
+ _ (\* ) Required._
126
+
100
127
## CategoryConfig
101
128
102
129
_ Object containing the following properties:_
@@ -180,6 +207,57 @@ _Object containing the following properties:_
180
207
181
208
_ (\* ) Required._
182
209
210
+ ## CoverageTreeMissingLOC
211
+
212
+ Uncovered line of code, optionally referring to a named function/class/etc.
213
+
214
+ _ Object containing the following properties:_
215
+
216
+ | Property | Description | Type |
217
+ | :------------------- | :-------------------------------- | :------------------- |
218
+ | ** ` startLine ` ** (\* ) | Start line | ` number ` (_ int, >0_ ) |
219
+ | ` startColumn ` | Start column | ` number ` (_ int, >0_ ) |
220
+ | ` endLine ` | End line | ` number ` (_ int, >0_ ) |
221
+ | ` endColumn ` | End column | ` number ` (_ int, >0_ ) |
222
+ | ` name ` | Identifier of function/class/etc. | ` string ` |
223
+ | ` kind ` | E.g. "function", "class" | ` string ` |
224
+
225
+ _ (\* ) Required._
226
+
227
+ ## CoverageTreeNode
228
+
229
+ _ Object containing the following properties:_
230
+
231
+ | Property | Description | Type |
232
+ | :---------------- | :-------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
233
+ | ** ` name ` ** (\* ) | File or folder name | ` string ` (_ min length: 1_ ) |
234
+ | ** ` values ` ** (\* ) | Coverage metrics for file/folder | _ Object with properties:_ <ul ><li >` coverage ` : ` number ` (_ ≥0, ≤1_ ) - Coverage ratio</li ><li >` missing ` : _ Array of [ CoverageTreeMissingLOC] ( #coveragetreemissingloc ) items_ - Uncovered lines of code</li ></ul > |
235
+ | ` children ` | Files and folders contained in this folder (omit if file) | _ Array of [ CoverageTreeNode] ( #coveragetreenode ) items_ |
236
+
237
+ _ (\* ) Required._
238
+
239
+ ## CoverageTree
240
+
241
+ Coverage for files and folders
242
+
243
+ _ Object containing the following properties:_
244
+
245
+ | Property | Description | Type |
246
+ | :-------------- | :----------- | :------------------------------------ |
247
+ | ` title ` | Heading | ` string ` |
248
+ | ** ` type ` ** (\* ) | Discriminant | ` 'coverage' ` |
249
+ | ** ` root ` ** (\* ) | Root folder | [ CoverageTreeNode] ( #coveragetreenode ) |
250
+
251
+ _ (\* ) Required._
252
+
253
+ ## FileName
254
+
255
+ _ String which matches the regular expression ` /^(?!.*[ \\/:*?"<>|]).+$/ ` and has a minimum length of 1._
256
+
257
+ ## FilePath
258
+
259
+ _ String which has a minimum length of 1._
260
+
183
261
## Format
184
262
185
263
_ Enum string, one of the following possible values:_
@@ -1137,27 +1215,15 @@ _Enum string, one of the following possible values:_
1137
1215
1138
1216
</details >
1139
1217
1140
- ## OnProgress
1141
-
1142
- _ Function._
1143
-
1144
- _ Parameters:_
1145
-
1146
- 1 . ` unknown ` (_ optional & nullable_ )
1147
-
1148
- _ Returns:_
1149
-
1150
- - ` void ` (_ optional_ )
1151
-
1152
1218
## PersistConfig
1153
1219
1154
1220
_ Object containing the following properties:_
1155
1221
1156
- | Property | Description | Type |
1157
- | :---------- | :-------------------------------------- | :-------------------------------------------------------------- |
1158
- | ` outputDir ` | Artifacts folder | ` string ` ( _ min length: 1 _ ) |
1159
- | ` filename ` | Artifacts file name (without extension) | ` string ` ( _ regex: ` /^(?!.*[ \\/:*?"<>\|]).+$/ ` , min length: 1 _ ) |
1160
- | ` format ` | | _ Array of [ Format] ( #format ) items_ |
1222
+ | Property | Description | Type |
1223
+ | :---------- | :-------------------------------------- | :--------------------------------- |
1224
+ | ` outputDir ` | Artifacts folder | [ FilePath ] ( #filepath ) |
1225
+ | ` filename ` | Artifacts file name (without extension) | [ FileName ] ( #filename ) |
1226
+ | ` format ` | | _ Array of [ Format] ( #format ) items_ |
1161
1227
1162
1228
_ All properties are optional._
1163
1229
@@ -1264,8 +1330,20 @@ _Object containing the following properties:_
1264
1330
| :-------------------- | :----------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1265
1331
| ** ` command ` ** (\* ) | Shell command to execute | ` string ` |
1266
1332
| ` args ` | | ` Array<string> ` |
1267
- | ** ` outputFile ` ** (\* ) | Output path | ` string ` ( _ min length: 1 _ ) |
1333
+ | ** ` outputFile ` ** (\* ) | Runner output path | [ FilePath ] ( #filepath ) |
1268
1334
| ` outputTransform ` | | _ Function:_ <br /><ul ><li >_ parameters:_ <ol ><li >` unknown ` (_ optional & nullable_ )</li ></ol ></li ><li >_ returns:_ [ AuditOutputs] ( #auditoutputs ) _ or_ _ Promise of_ [ AuditOutputs] ( #auditoutputs ) </li ></ul > |
1335
+ | ` configFile ` | Runner config path | [ FilePath] ( #filepath ) |
1336
+
1337
+ _ (\* ) Required._
1338
+
1339
+ ## RunnerFilesPaths
1340
+
1341
+ _ Object containing the following properties:_
1342
+
1343
+ | Property | Description | Type |
1344
+ | :-------------------------- | :----------------- | :-------------------- |
1345
+ | ** ` runnerConfigPath ` ** (\* ) | Runner config path | [ FilePath] ( #filepath ) |
1346
+ | ** ` runnerOutputPath ` ** (\* ) | Runner output path | [ FilePath] ( #filepath ) |
1269
1347
1270
1348
_ (\* ) Required._
1271
1349
@@ -1275,7 +1353,7 @@ _Function._
1275
1353
1276
1354
_ Parameters:_
1277
1355
1278
- 1 . [ OnProgress ] ( #onprogress ) ( _ optional _ )
1356
+ - _ none _
1279
1357
1280
1358
_ Returns:_
1281
1359
@@ -1289,7 +1367,7 @@ _Object containing the following properties:_
1289
1367
1290
1368
| Property | Description | Type |
1291
1369
| :-------------- | :--------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1292
- | ** ` file ` ** (\* ) | Relative path to source file in Git repo | ` string ` ( _ min length: 1 _ ) |
1370
+ | ** ` file ` ** (\* ) | Relative path to source file in Git repo | [ FilePath ] ( #filepath ) |
1293
1371
| ` position ` | Location in file | _ Object with properties:_ <ul ><li >` startLine ` : ` number ` (_ int, >0_ ) - Start line</li ><li >` startColumn ` : ` number ` (_ int, >0_ ) - Start column</li ><li >` endLine ` : ` number ` (_ int, >0_ ) - End line</li ><li >` endColumn ` : ` number ` (_ int, >0_ ) - End column</li ></ul > |
1294
1372
1295
1373
_ (\* ) Required._
@@ -1353,6 +1431,13 @@ Primitive row
1353
1431
1354
1432
_ Array of [ TableCellValue] ( #tablecellvalue ) (\_ optional & nullable_ ) items.\_
1355
1433
1434
+ ## Tree
1435
+
1436
+ _ Union of the following possible types:_
1437
+
1438
+ - [ BasicTree] ( #basictree )
1439
+ - [ CoverageTree] ( #coveragetree )
1440
+
1356
1441
## UploadConfig
1357
1442
1358
1443
_ Object containing the following properties:_
0 commit comments