diff --git a/.changeset/1883.md b/.changeset/1883.md new file mode 100644 index 00000000..77cc1440 --- /dev/null +++ b/.changeset/1883.md @@ -0,0 +1,10 @@ +--- +'@asyncapi/cli': patch +--- + +fix: make static properties readonly to resolve SonarCloud issue S1444 + +- 0955372: fix: make static properties readonly to resolve SonarCloud issue S1444 +- d066eee: fix: make static properties readonly to resolve SonarCloud issue S1444 + + diff --git a/src/apps/cli/commands/config/auth/add.ts b/src/apps/cli/commands/config/auth/add.ts index c6f8685a..a7cfe58b 100644 --- a/src/apps/cli/commands/config/auth/add.ts +++ b/src/apps/cli/commands/config/auth/add.ts @@ -4,10 +4,10 @@ import { blueBright } from 'picocolors'; import { ConfigService, AuthEntry } from '@/domains/services/config.service'; export default class AuthAdd extends Command { - static description = + static readonly description = 'Add an authentication config for resolving $ref files requiring HTTP Authorization.'; - static args = { + static readonly args = { pattern: Args.string({ required: true, description: @@ -20,7 +20,7 @@ export default class AuthAdd extends Command { }), }; - static flags = { + static readonly flags = { 'auth-type': Flags.string({ char: 'a', description: 'Authentication type (default is "Bearer")',