Skip to content

feat: biome - #3110

Open
AbhishekA1509 wants to merge 3 commits into
developfrom
feat/biome
Open

feat: biome#3110
AbhishekA1509 wants to merge 3 commits into
developfrom
feat/biome

refactor: Improve type safety and linting in various components

ba96478
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed May 18, 2026 in 2m 54s

Quality Gate failed

Failed conditions
4 Security Hotspots
B Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check warning on line 41 in src/components/charts/charts.util.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Visible, non-interactive elements with click handlers must have at least one keyboard listener.

See more on https://sonarcloud.io/project/issues?id=devtron-labs_dashboard&issues=AZ450wnhwWSCt-IKFW8A&open=AZ450wnhwWSCt-IKFW8A&pullRequest=3110

Check warning on line 1190 in src/components/v2/devtronStackManager/DevtronStackManager.component.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Do not use Array index in keys

See more on https://sonarcloud.io/project/issues?id=devtron-labs_dashboard&issues=AZ450vCLwWSCt-IKFW7G&open=AZ450vCLwWSCt-IKFW7G&pullRequest=3110

Check warning on line 70 in src/components/common/Carousel/Carousel.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Do not use Array index in keys

See more on https://sonarcloud.io/project/issues?id=devtron-labs_dashboard&issues=AZ450vdTwWSCt-IKFW7T&open=AZ450vdTwWSCt-IKFW7T&pullRequest=3110

Check warning on line 87 in src/components/dockerRegistry/Docker.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'useForm' is deprecated.

See more on https://sonarcloud.io/project/issues?id=devtron-labs_dashboard&issues=AZ450wfTwWSCt-IKFW7t&open=AZ450wfTwWSCt-IKFW7t&pullRequest=3110

Check warning on line 689 in src/components/ciPipeline/Webhook/WebhookDetailsModal.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Do not use Array index in keys

See more on https://sonarcloud.io/project/issues?id=devtron-labs_dashboard&issues=AZ450wORwWSCt-IKFW7o&open=AZ450wORwWSCt-IKFW7o&pullRequest=3110

Check warning on line 78 in src/index.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `globalThis` over `window`.

See more on https://sonarcloud.io/project/issues?id=devtron-labs_dashboard&issues=AZ450xExwWSCt-IKFW8G&open=AZ450xExwWSCt-IKFW8G&pullRequest=3110

Check warning on line 82 in src/components/v2/appDetails/k8Resource/nodeDetail/nodeDetail.api.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `globalThis` over `window`.

See more on https://sonarcloud.io/project/issues?id=devtron-labs_dashboard&issues=AZ450vG_wWSCt-IKFW7H&open=AZ450vG_wWSCt-IKFW7H&pullRequest=3110

Check warning on line 1229 in src/components/dockerRegistry/Docker.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use `.includes()`, rather than `.indexOf()`, when checking for existence.

See more on https://sonarcloud.io/project/issues?id=devtron-labs_dashboard&issues=AZ450wfTwWSCt-IKFW70&open=AZ450wfTwWSCt-IKFW70&pullRequest=3110

Check warning on line 76 in src/components/ApplicationGroup/AppGroupAppFilter.components.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=devtron-labs_dashboard&issues=AZ450wC6wWSCt-IKFW7e&open=AZ450wC6wWSCt-IKFW7e&pullRequest=3110

Check warning on line 67 in src/components/globalConfigurations/GlobalConfiguration.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Complete the task associated to this "TODO" comment.

See more on https://sonarcloud.io/project/issues?id=devtron-labs_dashboard&issues=AZ450wFtwWSCt-IKFW7f&open=AZ450wFtwWSCt-IKFW7f&pullRequest=3110

Check warning on line 127 in src/components/ciConfig/CIConfigForm.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=devtron-labs_dashboard&issues=AZ450wVMwWSCt-IKFW7r&open=AZ450wVMwWSCt-IKFW7r&pullRequest=3110

Check warning on line 248 in src/components/hostURL/HostURL.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `globalThis` over `window`.

See more on https://sonarcloud.io/project/issues?id=devtron-labs_dashboard&issues=AZ450wr0wWSCt-IKFW8C&open=AZ450wr0wWSCt-IKFW8C&pullRequest=3110

Check warning on line 384 in src/components/dockerRegistry/Docker.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

The signature '(stateSchema: any, validationSchema: {}, callback: any, errorMessageOnSubmit?: any): { state: any; disable: any; handleOnChange: any; handleOnSubmit: (event: any) => void; validateAllAndSetErrors: () => boolean; }' of 'useForm' is deprecated.

See more on https://sonarcloud.io/project/issues?id=devtron-labs_dashboard&issues=AZ450wfTwWSCt-IKFW7u&open=AZ450wfTwWSCt-IKFW7u&pullRequest=3110

Check warning on line 506 in src/components/dockerRegistry/Docker.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=devtron-labs_dashboard&issues=AZ450wfTwWSCt-IKFW7z&open=AZ450wfTwWSCt-IKFW7z&pullRequest=3110

Check warning on line 525 in src/components/v2/devtronStackManager/DevtronStackManager.component.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'ModuleStatus' is deprecated.

See more on https://sonarcloud.io/project/issues?id=devtron-labs_dashboard&issues=AZ450vCLwWSCt-IKFW7C&open=AZ450vCLwWSCt-IKFW7C&pullRequest=3110

Check warning on line 430 in src/components/charts/list/DiscoverCharts.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unexpected negated condition.

See more on https://sonarcloud.io/project/issues?id=devtron-labs_dashboard&issues=AZ450wjvwWSCt-IKFW75&open=AZ450wjvwWSCt-IKFW75&pullRequest=3110

Check warning on line 325 in src/Pages/GlobalConfigurations/ClustersAndEnvironments/ClusterForm/ConnectClusterViaKubeconfig.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Do not use Array index in keys

See more on https://sonarcloud.io/project/issues?id=devtron-labs_dashboard&issues=AZ450w5fwWSCt-IKFW8E&open=AZ450w5fwWSCt-IKFW8E&pullRequest=3110

Check warning on line 107 in src/index.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `globalThis` over `window`.

See more on https://sonarcloud.io/project/issues?id=devtron-labs_dashboard&issues=AZ450xExwWSCt-IKFW8I&open=AZ450xExwWSCt-IKFW8I&pullRequest=3110

Check warning on line 91 in src/Pages/GlobalConfigurations/ClustersAndEnvironments/ClusterInfoStepsModal.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Do not use Array index in keys

See more on https://sonarcloud.io/project/issues?id=devtron-labs_dashboard&issues=AZ450w7lwWSCt-IKFW8F&open=AZ450w7lwWSCt-IKFW8F&pullRequest=3110

Check warning on line 39 in src/components/charts/ChartGroupAdvanceDeploy.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'mapByKey' is deprecated.

See more on https://sonarcloud.io/project/issues?id=devtron-labs_dashboard&issues=AZ450wm8wWSCt-IKFW7-&open=AZ450wm8wWSCt-IKFW7-&pullRequest=3110

Check warning on line 73 in src/components/common/helpers/Helpers.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use concise character class syntax '\d' instead of '[0-9]'.

See more on https://sonarcloud.io/project/issues?id=devtron-labs_dashboard&issues=AZ450vYwwWSCt-IKFW7P&open=AZ450vYwwWSCt-IKFW7P&pullRequest=3110

Check warning on line 43 in src/components/app/details/appDetails/AppMetrics.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'ModuleNameMap' is deprecated.

See more on https://sonarcloud.io/project/issues?id=devtron-labs_dashboard&issues=AZ450vr8wWSCt-IKFW7U&open=AZ450vr8wWSCt-IKFW7U&pullRequest=3110

Check warning on line 523 in src/components/charts/list/DiscoverCharts.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=devtron-labs_dashboard&issues=AZ450wjvwWSCt-IKFW76&open=AZ450wjvwWSCt-IKFW76&pullRequest=3110

Check warning on line 80 in src/components/CIPipelineN/MultiplsPort.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Do not use Array index in keys

See more on https://sonarcloud.io/project/issues?id=devtron-labs_dashboard&issues=AZ450wMCwWSCt-IKFW7l&open=AZ450wMCwWSCt-IKFW7l&pullRequest=3110

Check warning on line 92 in src/components/app/list/TriggerUrl.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Avoid non-native interactive elements. If using native HTML is not possible, add an appropriate role and support for tabbing, mouse, keyboard, and touch inputs to an interactive content element.

See more on https://sonarcloud.io/project/issues?id=devtron-labs_dashboard&issues=AZ450vxGwWSCt-IKFW7Y&open=AZ450vxGwWSCt-IKFW7Y&pullRequest=3110