Skip to content

lint fixes

ac95046
Select commit
Loading
Failed to load commit list.
Draft

feat: webview changes #2333

lint fixes
ac95046
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Dec 3, 2025 in 45s

Annotations

Check warning on line 18 in src/features/lightspeed/providerManager.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Member 'settingsManager' is never reassigned; mark it as `readonly`.

See more on https://sonarcloud.io/project/issues?id=ansible_vscode-ansible&issues=AZrjNw0xpDw-T5GgM5DP&open=AZrjNw0xpDw-T5GgM5DP&pullRequest=2342

Check warning on line 8 in src/features/lightspeed/commands/providerCommands.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Member 'lightSpeedManager: LightSpeedManager' is never reassigned; mark it as `readonly`.

See more on https://sonarcloud.io/project/issues?id=ansible_vscode-ansible&issues=AZrjNw3hpDw-T5GgM5Dg&open=AZrjNw3hpDw-T5GgM5Dg&pullRequest=2342

Check warning on line 7 in src/features/lightspeed/commands/providerCommands.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Member 'context: vscode.ExtensionContext' is never reassigned; mark it as `readonly`.

See more on https://sonarcloud.io/project/issues?id=ansible_vscode-ansible&issues=AZrjNw3hpDw-T5GgM5Df&open=AZrjNw3hpDw-T5GgM5Df&pullRequest=2342

Check warning on line 545 in src/features/lightspeed/vue/views/webviewMessageHandlers.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use 'Object.hasOwn()' instead of 'Object.prototype.hasOwnProperty.call()'.

See more on https://sonarcloud.io/project/issues?id=ansible_vscode-ansible&issues=AZrjNwx6pDw-T5GgM5DM&open=AZrjNwx6pDw-T5GgM5DM&pullRequest=2342

Check failure on line 26 in src/features/lightspeed/providerManager.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this asynchronous operation outside of the constructor.

See more on https://sonarcloud.io/project/issues?id=ansible_vscode-ansible&issues=AZrjNw0xpDw-T5GgM5DS&open=AZrjNw0xpDw-T5GgM5DS&pullRequest=2342

Check warning on line 21 in src/features/lightspeed/providerManager.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Member 'providerStatus' is never reassigned; mark it as `readonly`.

See more on https://sonarcloud.io/project/issues?id=ansible_vscode-ansible&issues=AZrjNw0xpDw-T5GgM5DR&open=AZrjNw0xpDw-T5GgM5DR&pullRequest=2342

Check warning on line 27 in src/features/lightspeed/explorerWebviewViewProvider.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Member 'settingsManager' is never reassigned; mark it as `readonly`.

See more on https://sonarcloud.io/project/issues?id=ansible_vscode-ansible&issues=AZrjNw2_pDw-T5GgM5Dd&open=AZrjNw2_pDw-T5GgM5Dd&pullRequest=2342

Check warning on line 207 in src/features/lightspeed/commands/providerCommands.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unexpected negated condition.

See more on https://sonarcloud.io/project/issues?id=ansible_vscode-ansible&issues=AZrjNw3hpDw-T5GgM5Dh&open=AZrjNw3hpDw-T5GgM5Dh&pullRequest=2342

Check warning on line 1 in src/features/lightspeed/providerManager.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'./providers/base' imported multiple times.

See more on https://sonarcloud.io/project/issues?id=ansible_vscode-ansible&issues=AZrjNw0xpDw-T5GgM5DN&open=AZrjNw0xpDw-T5GgM5DN&pullRequest=2342

Check failure on line 83 in src/features/lightspeed/utils/feedbackView.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 19 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=ansible_vscode-ansible&issues=AZrjNw1tpDw-T5GgM5DT&open=AZrjNw1tpDw-T5GgM5DT&pullRequest=2342

Check warning on line 402 in src/extension.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unexpected negated condition.

See more on https://sonarcloud.io/project/issues?id=ansible_vscode-ansible&issues=AZrjNw7ppDw-T5GgM5Dj&open=AZrjNw7ppDw-T5GgM5Dj&pullRequest=2342

Check warning on line 14 in src/features/lightspeed/providerManager.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'./providers/base' imported multiple times.

See more on https://sonarcloud.io/project/issues?id=ansible_vscode-ansible&issues=AZrjNw0xpDw-T5GgM5DO&open=AZrjNw0xpDw-T5GgM5DO&pullRequest=2342

Check warning on line 38 in src/features/lightspeed/providers/google.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Member 'client' is never reassigned; mark it as `readonly`.

See more on https://sonarcloud.io/project/issues?id=ansible_vscode-ansible&issues=AZrjNw2OpDw-T5GgM5DU&open=AZrjNw2OpDw-T5GgM5DU&pullRequest=2342

Check warning on line 44 in src/utils/logger.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer using nullish coalescing operator (`??=`) instead of an assignment expression, as it is simpler to read.

See more on https://sonarcloud.io/project/issues?id=ansible_vscode-ansible&issues=AZrjNw6JpDw-T5GgM5Di&open=AZrjNw6JpDw-T5GgM5Di&pullRequest=2342

Check warning on line 40 in src/features/lightspeed/providers/google.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Member 'logger' is never reassigned; mark it as `readonly`.

See more on https://sonarcloud.io/project/issues?id=ansible_vscode-ansible&issues=AZrjNw2OpDw-T5GgM5DW&open=AZrjNw2OpDw-T5GgM5DW&pullRequest=2342

Check warning on line 28 in src/features/lightspeed/explorerWebviewViewProvider.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Member 'logger' is never reassigned; mark it as `readonly`.

See more on https://sonarcloud.io/project/issues?id=ansible_vscode-ansible&issues=AZrjNw2_pDw-T5GgM5De&open=AZrjNw2_pDw-T5GgM5De&pullRequest=2342

Check warning on line 19 in src/features/lightspeed/providerManager.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Member 'wcaApi' is never reassigned; mark it as `readonly`.

See more on https://sonarcloud.io/project/issues?id=ansible_vscode-ansible&issues=AZrjNw0xpDw-T5GgM5DQ&open=AZrjNw0xpDw-T5GgM5DQ&pullRequest=2342

Check warning on line 39 in src/features/lightspeed/providers/google.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Member 'modelName' is never reassigned; mark it as `readonly`.

See more on https://sonarcloud.io/project/issues?id=ansible_vscode-ansible&issues=AZrjNw2OpDw-T5GgM5DV&open=AZrjNw2OpDw-T5GgM5DV&pullRequest=2342