From 09553725b13cdbfd717e0fd975b2adea83818a05 Mon Sep 17 00:00:00 2001 From: lightning-sagar Date: Mon, 27 Oct 2025 21:14:24 +0530 Subject: [PATCH 1/3] fix: make static properties readonly to resolve SonarCloud issue S1444 --- package.json | 2 +- src/apps/cli/commands/config/auth/add.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 849850aa..1be2d072 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@asyncapi/cli", "description": "All in one CLI for all AsyncAPI tools", - "version": "4.1.0", + "version": "4.0.0", "author": "@asyncapi", "bin": { "asyncapi": "./bin/run_bin" 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")', From d066eee2d21cb2f70907beb5f8fb4fc885698443 Mon Sep 17 00:00:00 2001 From: lightning-sagar Date: Mon, 27 Oct 2025 21:16:00 +0530 Subject: [PATCH 2/3] fix: make static properties readonly to resolve SonarCloud issue S1444 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1be2d072..849850aa 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@asyncapi/cli", "description": "All in one CLI for all AsyncAPI tools", - "version": "4.0.0", + "version": "4.1.0", "author": "@asyncapi", "bin": { "asyncapi": "./bin/run_bin" From 5be245f07f0d724db316dfcb0b9dfe3e78b5e6a2 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Mon, 27 Oct 2025 15:56:14 +0000 Subject: [PATCH 3/3] chore: add changeset for PR #1883 --- .changeset/1883.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .changeset/1883.md 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 + +