Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
Signed-off-by: kemley76 <[email protected]>
  • Loading branch information
kemley76 committed Jun 17, 2024
1 parent 14312e6 commit 62cedce
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,17 @@
<!-- Severity override tag only comes from checklist files, so there should always be a severity tag -->
<span
>Severity has been overridden from
{{ 'severity' in control.data.tags ? control.data.tags['severity'] : 'UNKNOWN' }} to
{{ control.data.tags['severityoverride'] }} <br />Justification:
{{ 'severityjustification' in control.data.tags ? control.data.tags['severityjustification'] : 'UNKNOWN JUSTIFICATION' }}</span
{{
'severity' in control.data.tags
? control.data.tags['severity']
: 'UNKNOWN'
}}
to {{ control.data.tags['severityoverride'] }} <br />Justification:
{{
'severityjustification' in control.data.tags
? control.data.tags['severityjustification']
: 'UNKNOWN JUSTIFICATION'
}}</span
>
</v-tooltip>
<span v-else
Expand Down
16 changes: 8 additions & 8 deletions libs/hdf-converters/src/ckl-mapper/checklist-jsonix-converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -580,14 +580,14 @@ export class ChecklistJsonixConverter extends JsonixIntermediateConverter<
// test if this control has a valid severity tag
// and map it to a checklist severity level
switch (severityTag) {
case 'none':
case 'low':
return Severity.Low
case 'medium':
return Severity.Medium
case 'high':
case 'critical':
return Severity.High
case 'none':
case 'low':
return Severity.Low;
case 'medium':
return Severity.Medium;
case 'high':
case 'critical':
return Severity.High;
}

// if no valid severity tag, compute severity based on impact
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,4 @@ describe('Small RHEL 7 with severity and severity override tags', () => {
expected.replace(/2\.10\.8/gi, hdfConvertersVersion)
);
});
});
});

0 comments on commit 62cedce

Please sign in to comment.