Fixed article page bugs - #30527
Quality Gate passed
Annotations
Check failure on line 61 in src/components/BlockEditor/Extensions/File/FileNode.ts
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Prefer `.dataset` over `getAttribute(…)`.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-js97HGDwGrdqdZeaW&open=AZ-js97HGDwGrdqdZeaW&pullRequest=30527
Check failure on line 246 in src/components/OntologyExplorer/OntologyExplorer.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Refactor this function to reduce its Cognitive Complexity from 27 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-jtGqRGDwGrdqdZeka&open=AZ-jtGqRGDwGrdqdZeka&pullRequest=30527
Check warning on line 69 in src/components/ActivityFeed/ActivityFeedEditor/ActivityFeedEditor.tsx
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=AZ-jtCA6GDwGrdqdZefB&open=AZ-jtCA6GDwGrdqdZefB&pullRequest=30527
Check warning on line 51 in src/components/common/EntityImport/CsvJobsTray/CsvJobsTray.component.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
`ACTIVE_STATUSES` should be a `Set`, and use `ACTIVE_STATUSES.has()` to check existence or non-existence.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-js_scGDwGrdqdZecg&open=AZ-js_scGDwGrdqdZecg&pullRequest=30527
sonarqubecloud / [open-metadata-ui] 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=open-metadata-ui&issues=AZ-jtC5UGDwGrdqdZegL&open=AZ-jtC5UGDwGrdqdZegL&pullRequest=30527
Check warning on line 510 in src/components/Tag/TagsContainerV2/TagsContainerV2.tsx
sonarqubecloud / [open-metadata-ui] 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=open-metadata-ui&issues=AZ-jtBchGDwGrdqdZeed&open=AZ-jtBchGDwGrdqdZeed&pullRequest=30527
Check warning on line 96 in src/hooks/useClipBoard.ts
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=AZ-jtMecGDwGrdqdZes2&open=AZ-jtMecGDwGrdqdZes2&pullRequest=30527
Check failure on line 73 in src/components/common/DescriptionSourceBadge/DescriptionSourceBadge.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Refactor this function to reduce its Cognitive Complexity from 16 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-js_1SGDwGrdqdZecl&open=AZ-js_1SGDwGrdqdZecl&pullRequest=30527
Check failure on line 154 in src/pages/MetricsPage/MetricListPage/MetricListPage.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Refactor this function to reduce its Cognitive Complexity from 22 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-jtLtfGDwGrdqdZeru&open=AZ-jtLtfGDwGrdqdZeru&pullRequest=30527
Check warning on line 223 in src/components/OntologyExplorer/utils/graphStyles.ts
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=AZ-jtGoqGDwGrdqdZekU&open=AZ-jtGoqGDwGrdqdZekU&pullRequest=30527
Check warning on line 99 in src/components/Settings/Alerts/AlertsDetails/AlertDetails.component.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Use Array.isArray() instead of isArray() from lodash.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-jtDveGDwGrdqdZehT&open=AZ-jtDveGDwGrdqdZehT&pullRequest=30527
Check warning on line 89 in src/hooks/useClipBoard.ts
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=AZ-jtMecGDwGrdqdZes3&open=AZ-jtMecGDwGrdqdZes3&pullRequest=30527
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Consider removing 'undefined' type or '?' specifier, one of them is redundant.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-jtEIGGDwGrdqdZehr&open=AZ-jtEIGGDwGrdqdZehr&pullRequest=30527
Check warning on line 754 in src/pages/EntityImport/BulkEntityImportPage/BulkEntityImportPage.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
'e.target?.result ?? ''' may use Object's default stringification format ('[object Object]') when stringified.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-jtLiJGDwGrdqdZerj&open=AZ-jtLiJGDwGrdqdZerj&pullRequest=30527
Check warning on line 416 in src/components/common/ServiceDocPanel/ServiceDocPanel.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Use the "RegExp.exec()" method instead.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-jtA2xGDwGrdqdZedy&open=AZ-jtA2xGDwGrdqdZedy&pullRequest=30527
Check warning on line 113 in src/utils/QueryBuilderPureUtils.ts
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=AZ-jtJ1cGDwGrdqdZepx&open=AZ-jtJ1cGDwGrdqdZepx&pullRequest=30527
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Consider Array.prototype.slice() instead of slice() from lodash; check that the behavior is equivalent because the library handles nullish values differently from the native API.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-js-XjGDwGrdqdZea7&open=AZ-js-XjGDwGrdqdZea7&pullRequest=30527
Check warning on line 69 in src/utils/DataInsightChartUtils.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Non-interactive elements should not be assigned mouse or keyboard event listeners.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-jtJCbGDwGrdqdZeoK&open=AZ-jtJCbGDwGrdqdZeoK&pullRequest=30527
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=AZ-jtFd7GDwGrdqdZejC&open=AZ-jtFd7GDwGrdqdZejC&pullRequest=30527
Check warning on line 188 in src/components/BlockEditor/BlockMenu/BlockMenu.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Add an explicit "type" attribute to this button.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-js-IhGDwGrdqdZeau&open=AZ-js-IhGDwGrdqdZeau&pullRequest=30527
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Prefer using nullish coalescing operator (`??`) instead of a ternary expression, as it is simpler to read.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-jtCz3GDwGrdqdZef_&open=AZ-jtCz3GDwGrdqdZef_&pullRequest=30527
Check warning on line 186 in src/components/DataQuality/TestCases/useTestCaseFilters.ts
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Consider Object.entries() instead of entries() from lodash; check that the behavior is equivalent because the library handles nullish values differently from the native API.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-js-noGDwGrdqdZebR&open=AZ-js-noGDwGrdqdZebR&pullRequest=30527
Check warning on line 147 in src/utils/APIUtils.ts
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Use Array.isArray() instead of isArray() from lodash.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-jtIYpGDwGrdqdZenX&open=AZ-jtIYpGDwGrdqdZenX&pullRequest=30527
Check warning on line 146 in src/utils/CustomizableLandingPagePureUtils.ts
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Move this array "sort" operation to a separate statement or replace it with "toSorted".
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-jtH7tGDwGrdqdZemV&open=AZ-jtH7tGDwGrdqdZemV&pullRequest=30527
Check warning on line 256 in src/utils/ServiceConnectionUtils.ts
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Consider Array.prototype.reduce() instead of reduce() from lodash; check that the behavior is equivalent because the library also accepts objects, nullish values, and shorthand predicates.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-jtH90GDwGrdqdZemZ&open=AZ-jtH90GDwGrdqdZemZ&pullRequest=30527