Fix/entity name validation v2 #27886
Quality Gate passed
Annotations
Check warning on line 119 in src/pages/AddQueryPage/AddQueryPage.component.tsx
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=AZ34Pg0kD6vS1LGSRSJk&open=AZ34Pg0kD6vS1LGSRSJk&pullRequest=27886
Check warning on line 34 in src/pages/DataInsightPage/DataInsightPage.component.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Prefer using the default import over named import.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ34PgMeD6vS1LGSRSIn&open=AZ34PgMeD6vS1LGSRSIn&pullRequest=27886
Check warning on line 71 in src/utils/ApplicationUtils.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
`filteredRow` should be a `Set`, and use `filteredRow.has()` to check existence or non-existence.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ34Pi2uD6vS1LGSRSNc&open=AZ34Pi2uD6vS1LGSRSNc&pullRequest=27886
Check warning on line 36 in src/utils/Export/ExportUtils.ts
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ34PiHzD6vS1LGSRSLy&open=AZ34PiHzD6vS1LGSRSLy&pullRequest=27886
Check warning on line 113 in src/pages/TasksPage/RequestTagPage/RequestTagPage.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Promise-returning function provided to variable where a void return was expected.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ34PgUMD6vS1LGSRSI2&open=AZ34PgUMD6vS1LGSRSI2&pullRequest=27886
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Prefer `Blob#text()` over `FileReader#readAsText(blob)`.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ34PZneD6vS1LGSRR_-&open=AZ34PZneD6vS1LGSRR_-&pullRequest=27886
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=AZ34PcPID6vS1LGSRSDR&open=AZ34PcPID6vS1LGSRSDR&pullRequest=27886
Check warning on line 149 in src/utils/TagsUtils.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Prefer `Array#flat()` over `Array#reduce()` to flatten an array.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ34PiZID6vS1LGSRSMi&open=AZ34PiZID6vS1LGSRSMi&pullRequest=27886
Check warning on line 79 in src/components/AlertBar/AlertBar.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Unexpected negated condition.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ34PgBdD6vS1LGSRSIa&open=AZ34PgBdD6vS1LGSRSIa&pullRequest=27886
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=AZ34Pb4gD6vS1LGSRSCy&open=AZ34Pb4gD6vS1LGSRSCy&pullRequest=27886
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Unexpected negated condition.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ34Pb_qD6vS1LGSRSC7&open=AZ34Pb_qD6vS1LGSRSC7&pullRequest=27886
Check warning on line 204 in src/pages/DataInsightPage/DataInsightProvider.tsx
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=AZ34PgHzD6vS1LGSRSIi&open=AZ34PgHzD6vS1LGSRSIi&pullRequest=27886
Check failure on line 890 in src/components/common/Table/TableV2.tsx
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=AZ34PZVcD6vS1LGSRR_u&open=AZ34PZVcD6vS1LGSRR_u&pullRequest=27886
Check warning on line 285 in src/components/Entity/EntityLineage/CustomNode.utils.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=AZ34Pd4jD6vS1LGSRSFe&open=AZ34Pd4jD6vS1LGSRSFe&pullRequest=27886
Check warning on line 120 in src/hooks/useGridEditController.ts
sonarqubecloud / [open-metadata-ui] 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=open-metadata-ui&issues=AZ34PjXlD6vS1LGSRSOd&open=AZ34PjXlD6vS1LGSRSOd&pullRequest=27886
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Promise-returning function provided to variable where a void return was expected.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ34PbTSD6vS1LGSRSCM&open=AZ34PbTSD6vS1LGSRSCM&pullRequest=27886
Check warning on line 48 in src/components/UploadFile/UploadFile.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Prefer `Blob#text()` over `FileReader#readAsText(blob)`.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ34PgGID6vS1LGSRSIg&open=AZ34PgGID6vS1LGSRSIg&pullRequest=27886
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=AZ34PZsZD6vS1LGSRSAE&open=AZ34PZsZD6vS1LGSRSAE&pullRequest=27886
Check warning on line 21 in src/components/common/TierTag.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
'size' PropType is defined but prop is never used
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ34Pa2KD6vS1LGSRSBq&open=AZ34Pa2KD6vS1LGSRSBq&pullRequest=27886
Check failure on line 93 in src/components/BlockEditor/Extensions/Callout/Callout.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=AZ34PYfID6vS1LGSRR-d&open=AZ34PYfID6vS1LGSRR-d&pullRequest=27886
Check warning on line 47 in src/components/common/QueryCount/QueryCount.component.tsx
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=AZ34Pa6GD6vS1LGSRSBu&open=AZ34Pa6GD6vS1LGSRSBu&pullRequest=27886
Check failure on line 748 in src/pages/ColumnBulkOperations/ColumnGrid/ColumnGrid.component.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Refactor this function to reduce its Cognitive Complexity from 47 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ34PgueD6vS1LGSRSJX&open=AZ34PgueD6vS1LGSRSJX&pullRequest=27886
Check warning on line 221 in src/utils/EntityUtilClassBase.ts
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=AZ34Phv2D6vS1LGSRSK2&open=AZ34Phv2D6vS1LGSRSK2&pullRequest=27886
Check warning on line 21 in src/utils/Lineage/Layout/ELKUtil/ELKUtil.ts
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Make this public static property readonly.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ34PhM1D6vS1LGSRSKH&open=AZ34PhM1D6vS1LGSRSKH&pullRequest=27886
Check warning on line 93 in src/components/AuditLog/AuditLogList.component.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
'parsed' will use Object's default stringification format ('[object Object]') when stringified.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ34PfKqD6vS1LGSRSHB&open=AZ34PfKqD6vS1LGSRSHB&pullRequest=27886