Skip to content

ci: ui checkstyle workflow in favour to remove pre-commit - #26445

Merged
chirag-madlani merged 42 commits into
mainfrom
migrat-pre-commit
Mar 20, 2026
Merged

chirag-madlani merged 42 commits into
mainfrom
migrat-pre-commit

remove pre-commit completly

19fddc3
Select commit
Loading
Failed to load commit list.
This check has been archived and is scheduled for deletion. Learn more about checks retention
SonarQubeCloud / [open-metadata-ui] SonarCloud Code Analysis succeeded Mar 20, 2026 in 2m 20s

Annotations

Check warning on line 86 in openmetadata-ui/src/main/resources/ui/src/utils/NotistackUtils.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

This assertion is unnecessary since it does not change the type of the expression.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ0FCwmtYc8zzi0uUrDv&open=AZ0FCwmtYc8zzi0uUrDv&pullRequest=26445

Check warning on line 958 in openmetadata-ui/src/main/resources/ui/src/utils/EntitySummaryPanelUtilsV1.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ0FCwx2Yc8zzi0uUrES&open=AZ0FCwx2Yc8zzi0uUrES&pullRequest=26445

Check warning on line 490 in openmetadata-ui/src/main/resources/ui/src/utils/CSV/CSV.utils.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

This pattern can be replaced with '\\"'.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ0FCwYHYc8zzi0uUrDO&open=AZ0FCwYHYc8zzi0uUrDO&pullRequest=26445

Check warning on line 65 in openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/FeedEditor/FeedEditor.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Avoid using `instanceof` for type checking as it can lead to unreliable results.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ0FCwQ9Yc8zzi0uUrC8&open=AZ0FCwQ9Yc8zzi0uUrC8&pullRequest=26445

Check failure on line 45 in openmetadata-ui/src/main/resources/ui/src/components/common/MUIAsyncTreeSelect/hooks/useTreeKeyboardNavigation.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ0FCwPxYc8zzi0uUrC5&open=AZ0FCwPxYc8zzi0uUrC5&pullRequest=26445

Check warning on line 63 in openmetadata-ui/src/main/resources/ui/src/utils/NotistackUtils.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

This assertion is unnecessary since it does not change the type of the expression.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ0FCwmtYc8zzi0uUrDu&open=AZ0FCwmtYc8zzi0uUrDu&pullRequest=26445

Check warning on line 90 in openmetadata-ui/src/main/resources/ui/src/components/BlockEditor/Extensions/Callout/Callout.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

This assertion is unnecessary since it does not change the type of the expression.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ0FCwCxYc8zzi0uUrCy&open=AZ0FCwCxYc8zzi0uUrCy&pullRequest=26445

Check failure on line 241 in openmetadata-ui/src/main/resources/ui/src/components/common/atoms/domain/ui/useDomainCardTemplates.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Refactor this code to not nest functions more than 4 levels deep.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ0FCwOAYc8zzi0uUrC3&open=AZ0FCwOAYc8zzi0uUrC3&pullRequest=26445

Check warning on line 156 in openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/FeedEditor/FeedEditor.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Handle this exception or don't catch it at all.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ0FCwQ9Yc8zzi0uUrC-&open=AZ0FCwQ9Yc8zzi0uUrC-&pullRequest=26445

Check warning on line 663 in openmetadata-ui/src/main/resources/ui/src/utils/EntityUtilClassBase.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

This case's code block is the same as the block for the case on line 630.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ0FCwehYc8zzi0uUrDU&open=AZ0FCwehYc8zzi0uUrDU&pullRequest=26445

Check warning on line 44 in openmetadata-ui/src/main/resources/ui/src/pages/TasksPage/shared/DiffViewNew.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Prefer `Number.parseInt` over `parseInt`.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ0FCwRoYc8zzi0uUrDD&open=AZ0FCwRoYc8zzi0uUrDD&pullRequest=26445

Check warning on line 178 in openmetadata-ui/src/main/resources/ui/src/components/common/TierCard/TierCard.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Prefer `String#replaceAll()` over `String#replace()`.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ0FCwQMYc8zzi0uUrC7&open=AZ0FCwQMYc8zzi0uUrC7&pullRequest=26445

Check failure on line 151 in openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/FeedEditor/FeedEditor.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Prefer `return value` over `return Promise.resolve(value)`.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ0FCwQ9Yc8zzi0uUrC9&open=AZ0FCwQ9Yc8zzi0uUrC9&pullRequest=26445

Check warning on line 220 in openmetadata-ui/src/main/resources/ui/src/utils/EntityUtilClassBase.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Reduce the number of non-empty switch cases from 37 to at most 30.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ0FCwehYc8zzi0uUrDT&open=AZ0FCwehYc8zzi0uUrDT&pullRequest=26445

Check warning on line 181 in openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/FeedEditor/FeedEditor.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Unexpected negated condition.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ0FCwQ9Yc8zzi0uUrC_&open=AZ0FCwQ9Yc8zzi0uUrC_&pullRequest=26445

Check failure on line 345 in openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/FeedEditor/FeedEditor.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Prefer `.dataset` over `setAttribute(…)`.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ0FCwQ9Yc8zzi0uUrDA&open=AZ0FCwQ9Yc8zzi0uUrDA&pullRequest=26445

Check warning on line 514 in openmetadata-ui/src/main/resources/ui/src/utils/CSV/CSV.utils.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Replace this "switch" statement by "if" statements to increase readability.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ0FCwYHYc8zzi0uUrDQ&open=AZ0FCwYHYc8zzi0uUrDQ&pullRequest=26445

Check failure on line 93 in openmetadata-ui/src/main/resources/ui/src/components/BlockEditor/Extensions/Callout/Callout.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Prefer `.dataset` over `getAttribute(…)`.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ0FCwCxYc8zzi0uUrCz&open=AZ0FCwCxYc8zzi0uUrCz&pullRequest=26445

Check warning on line 42 in openmetadata-ui/src/main/resources/ui/src/components/common/MUIAsyncTreeSelect/atoms/TreeDropdown/TreeDropdown.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Prefer using an optional chain expression instead, as it's more concise and easier to read.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ0FCwPcYc8zzi0uUrC4&open=AZ0FCwPcYc8zzi0uUrC4&pullRequest=26445

Check failure on line 349 in openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/FeedEditor/FeedEditor.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Prefer `.dataset` over `setAttribute(…)`.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ0FCwQ9Yc8zzi0uUrDB&open=AZ0FCwQ9Yc8zzi0uUrDB&pullRequest=26445

Check warning on line 86 in openmetadata-ui/src/main/resources/ui/src/utils/QueryBuilderUtils.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

This assertion is unnecessary since it does not change the type of the expression.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ0FCwp2Yc8zzi0uUrD2&open=AZ0FCwp2Yc8zzi0uUrD2&pullRequest=26445

Check failure on line 124 in openmetadata-ui/src/main/resources/ui/src/components/common/atoms/domain/ui/useDomainCardTemplates.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Refactor this code to not nest functions more than 4 levels deep.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ0FCwOAYc8zzi0uUrC0&open=AZ0FCwOAYc8zzi0uUrC0&pullRequest=26445

Check failure on line 224 in openmetadata-ui/src/main/resources/ui/src/components/common/atoms/domain/ui/useDomainCardTemplates.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Refactor this code to not nest functions more than 4 levels deep.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ0FCwOAYc8zzi0uUrC2&open=AZ0FCwOAYc8zzi0uUrC2&pullRequest=26445

Check warning on line 100 in openmetadata-ui/src/main/resources/ui/src/components/common/MUIAsyncTreeSelect/hooks/useTreeKeyboardNavigation.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Unexpected negated condition.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ0FCwPxYc8zzi0uUrC6&open=AZ0FCwPxYc8zzi0uUrC6&pullRequest=26445

Check warning on line 103 in openmetadata-ui/src/main/resources/ui/src/utils/QueryBuilderUtils.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ0FCwp2Yc8zzi0uUrD3&open=AZ0FCwp2Yc8zzi0uUrD3&pullRequest=26445