Skip to content

Commit

Permalink
fixed SonarCloud Code Analysis
Browse files Browse the repository at this point in the history
Signed-off-by: George M Dias <[email protected]>
  • Loading branch information
georgedias committed Oct 14, 2024
1 parent 5561b0a commit e62d99e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/commands/convert/ckl2POAM.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default class CKL2POAM extends BaseCommand<typeof CKL2POAM> {
static readonly description =
'Translate DISA Checklist CKL file(s) to POA&M files'

static aliases = ['convert:ckl2poam']
static readonly aliases = ['convert:ckl2poam']

static readonly examples = [
'<%= config.bin %> <%= command.id %> -i checklist_file.ckl -o output-folder -d abcdefg -s 2',
Expand Down
8 changes: 4 additions & 4 deletions src/commands/convert/gosec2hdf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import {checkInput, checkSuffix} from '../../utils/global'
import {BaseCommand} from '../../utils/oclif/baseCommand'

export default class Gosec2HDF extends BaseCommand<typeof Gosec2HDF> {
static usage = '<%= command.id %> -i <gosec-json> -o <hdf-scan-results-json> [-h] [-w]'
static readonly usage = '<%= command.id %> -i <gosec-json> -o <hdf-scan-results-json> [-h] [-w]'

static description = 'Translate a gosec (Golang Security Checker) results JSON to a Heimdall Data Format JSON file'
static readonly description = 'Translate a gosec (Golang Security Checker) results JSON to a Heimdall Data Format JSON file'

static examples = ['<%= config.bin %> <%= command.id %> -i gosec_results.json -o output-hdf-name.json']
static readonly examples = ['<%= config.bin %> <%= command.id %> -i gosec_results.json -o output-hdf-name.json']

static flags = {
static readonly flags = {
input: Flags.string({char: 'i', required: true, description: 'Input gosec Results JSON File'}),
output: Flags.string({char: 'o', required: true, description: 'Output HDF JSON File'}),
includeRaw: Flags.boolean({char: 'w', required: false, description: 'Include raw input file in HDF JSON file'}),
Expand Down
2 changes: 1 addition & 1 deletion src/commands/convert/hdf2csv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default class HDF2CSV extends BaseCommand<typeof HDF2CSV> {
'<%= command.id %> [-i <hdf-json>|--interactive] [-o <csv-file>|--interactive] ' +
' [-f <header-fields>|--interactive] [-t|--interactive] [-L info|warn|debug|verbose]'

static description = 'Translate a Heimdall Data Format JSON file into a Comma Separated Values (CSV) file'
static readonly description = 'Translate a Heimdall Data Format JSON file into a Comma Separated Values (CSV) file'

static readonly examples = [
{
Expand Down

0 comments on commit e62d99e

Please sign in to comment.