File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
src/lib/formatters/iac-output/v2/issues-list
test/jest/acceptance/iac/output-formats Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -77,16 +77,18 @@ function formatProperties(
77
77
? result . issue . remediation [ remediationKey ]
78
78
: result . issue . resolve ,
79
79
] ,
80
- ] . filter ( ( [ , val ] ) => ! ! val ) as [ string , string ] [ ] ;
80
+ ] ;
81
81
82
82
const maxPropertyNameLength = Math . max (
83
83
...properties . map ( ( [ key ] ) => key . length ) ,
84
84
) ;
85
85
86
- return properties . map (
87
- ( [ key , value ] ) =>
88
- `${ key } : ${ ' ' . repeat ( maxPropertyNameLength - key . length ) } ${ value } ` ,
89
- ) ;
86
+ return properties
87
+ . filter ( ( [ , val ] ) => ! ! val )
88
+ . map (
89
+ ( [ key , value ] ) =>
90
+ `${ key } : ${ ' ' . repeat ( maxPropertyNameLength - key . length ) } ${ value } ` ,
91
+ ) ;
90
92
}
91
93
92
94
function isValidLineNumber ( lineNumber : number | undefined ) : boolean {
Original file line number Diff line number Diff line change @@ -275,7 +275,7 @@ Target file: ${dirPath}/`);
275
275
`snyk iac test ${ filePath } --rules=./iac/custom-rules/custom.tar.gz` ,
276
276
) ;
277
277
278
- expect ( stdout ) . toContain ( `Rule: custom rule CUSTOM-1` ) ;
278
+ expect ( stdout ) . toContain ( `Rule: custom rule CUSTOM-1` ) ;
279
279
} ) ;
280
280
} ) ;
281
281
} ) ;
You can’t perform that action at this time.
0 commit comments