Skip to content

Commit ba52f4d

Browse files
Fix eslint warnings
1 parent 5880975 commit ba52f4d

File tree

6 files changed

+9
-1
lines changed

6 files changed

+9
-1
lines changed

.eslintrc.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@
1313
},
1414
"plugins": [
1515
"@typescript-eslint"
16-
]
16+
],
17+
"rules": {
18+
"sf-plugin/only-extend-SfCommand": "off"
19+
}
1720
}

src/commands/scanner/rule/add.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export default class Add extends ScannerCommand {
2020
// This defines the flags accepted by this command. The key is the longname, the char property is the shortname,
2121
// and summary and description is what's printed when the -h/--help flag is supplied.
2222
public static readonly flags = {
23+
...ScannerCommand.flags,
2324
language: Flags.string({
2425
char: 'l',
2526
summary: getMessage(BundleName.Add, 'flags.languageSummary'),

src/commands/scanner/rule/describe.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export default class Describe extends ScannerCommand {
1919
// This defines the flags accepted by this command. The key is the longname, the char property is the shortname,
2020
// and summary and description is what's printed when the -h/--help flag is supplied.
2121
public static readonly flags = {
22+
...ScannerCommand.flags,
2223
rulename: Flags.string({
2324
char: 'n',
2425
summary: getMessage(BundleName.Describe, 'flags.rulenameSummary'),

src/commands/scanner/rule/list.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export default class List extends ScannerCommand {
2222
// This defines the flags accepted by this command. The key is the longname, the char property is the shortname,
2323
// and summary and description is what's printed when the -h/--help flag is supplied.
2424
public static readonly flags = {
25+
...ScannerCommand.flags,
2526
verbose: Flags.boolean({
2627
summary: getMessage(BundleName.Common, 'flags.verboseSummary')
2728
}),

src/commands/scanner/rule/remove.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export default class Remove extends ScannerCommand {
2121
// This defines the flags accepted by this command. The key is the longname, the char property is the shortname,
2222
// and summary and description is what's printed when the -h/--help flag is supplied.
2323
public static readonly flags = {
24+
...ScannerCommand.flags,
2425
verbose: Flags.boolean({
2526
summary: getMessage(BundleName.Common, 'flags.verboseSummary')
2627
}),

src/lib/ScannerRunCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export abstract class ScannerRunCommand extends ScannerCommand {
99
* here to avoid duplicate code.
1010
*/
1111
public static readonly flags = {
12+
...ScannerCommand.flags,
1213
verbose: Flags.boolean({
1314
summary: getMessage(BundleName.Common, 'flags.verboseSummary')
1415
}),

0 commit comments

Comments
 (0)