DBC22-6491 DMS signs#116
Quality Gate failed
Failed conditions
4.5% Duplication on New Code (required ≤ 3%)
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 220 in src/frontend/app/components/Map/layers/Dms.jsx
sonarqubecloud / SonarCloud Code Analysis
Remove this useless assignment to variable "raw".
See more on https://sonarcloud.io/project/issues?id=bcgov_RIDE&issues=AZ6Z5l7Gqf6IelamDfrc&open=AZ6Z5l7Gqf6IelamDfrc&pullRequest=116
Check warning on line 216 in src/frontend/app/components/Map/layers/Dms.jsx
sonarqubecloud / 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=bcgov_RIDE&issues=AZ6Z5l7Gqf6IelamDfrY&open=AZ6Z5l7Gqf6IelamDfrY&pullRequest=116
Check warning on line 122 in src/frontend/app/components/Map/layers/Pins.jsx
sonarqubecloud / SonarCloud Code Analysis
Remove the declaration of the unused 'subkey' variable.
See more on https://sonarcloud.io/project/issues?id=bcgov_RIDE&issues=AZ6Z5l88qf6IelamDfrm&open=AZ6Z5l88qf6IelamDfrm&pullRequest=116
Check warning on line 56 in src/frontend/app/events/Dms.jsx
sonarqubecloud / SonarCloud Code Analysis
img elements must have an alt prop, either with meaningful text, or an empty string for decorative images.
See more on https://sonarcloud.io/project/issues?id=bcgov_RIDE&issues=AZ6Z5l2eqf6IelamDfrN&open=AZ6Z5l2eqf6IelamDfrN&pullRequest=116
Check warning on line 213 in src/frontend/app/components/Map/layers/Dms.jsx
sonarqubecloud / SonarCloud Code Analysis
Remove the declaration of the unused 'pixel' variable.
See more on https://sonarcloud.io/project/issues?id=bcgov_RIDE&issues=AZ6Z5l7Gqf6IelamDfrW&open=AZ6Z5l7Gqf6IelamDfrW&pullRequest=116
Check warning on line 24 in src/frontend/app/components/Map/layers/Events.jsx
sonarqubecloud / SonarCloud Code Analysis
'/tmp/clone343121440223016108/src/frontend/app/shared/helpers.js' imported multiple times.
See more on https://sonarcloud.io/project/issues?id=bcgov_RIDE&issues=AZ6Z5l7aqf6IelamDfrf&open=AZ6Z5l7aqf6IelamDfrf&pullRequest=116
Check warning on line 220 in src/frontend/app/components/Map/layers/Dms.jsx
sonarqubecloud / SonarCloud Code Analysis
Remove the declaration of the unused 'raw' variable.
See more on https://sonarcloud.io/project/issues?id=bcgov_RIDE&issues=AZ6Z5l7Gqf6IelamDfrb&open=AZ6Z5l7Gqf6IelamDfrb&pullRequest=116
Check warning on line 202 in src/frontend/app/components/Map/layers/Dms.jsx
sonarqubecloud / SonarCloud Code Analysis
Remove the declaration of the unused 'sign' variable.
See more on https://sonarcloud.io/project/issues?id=bcgov_RIDE&issues=AZ6Z5l7Gqf6IelamDfrS&open=AZ6Z5l7Gqf6IelamDfrS&pullRequest=116
Check failure on line 338 in src/frontend/app/components/Map/layers/Pins.jsx
sonarqubecloud / SonarCloud Code Analysis
Refactor this function to reduce its Cognitive Complexity from 18 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=bcgov_RIDE&issues=AZ6Z5l88qf6IelamDfrq&open=AZ6Z5l88qf6IelamDfrq&pullRequest=116
Check warning on line 76 in src/frontend/app/events/Dms.jsx
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=bcgov_RIDE&issues=AZ6Z5l2eqf6IelamDfrP&open=AZ6Z5l2eqf6IelamDfrP&pullRequest=116
Check warning on line 213 in src/frontend/app/components/Map/layers/Dms.jsx
sonarqubecloud / SonarCloud Code Analysis
Remove this useless assignment to variable "pixel".
See more on https://sonarcloud.io/project/issues?id=bcgov_RIDE&issues=AZ6Z5l7Gqf6IelamDfrX&open=AZ6Z5l7Gqf6IelamDfrX&pullRequest=116
Check warning on line 198 in src/frontend/app/components/Map/layers/Events.jsx
sonarqubecloud / SonarCloud Code Analysis
arrow function is equivalent to `String`. Use `String` directly.
See more on https://sonarcloud.io/project/issues?id=bcgov_RIDE&issues=AZ6Z5l7aqf6IelamDfrk&open=AZ6Z5l7aqf6IelamDfrk&pullRequest=116
Check warning on line 131 in src/frontend/app/components/Map/layers/Pins.jsx
sonarqubecloud / SonarCloud Code Analysis
arrow function is equivalent to `String`. Use `String` directly.
See more on https://sonarcloud.io/project/issues?id=bcgov_RIDE&issues=AZ6Z5l88qf6IelamDfro&open=AZ6Z5l88qf6IelamDfro&pullRequest=116
Check warning on line 218 in src/frontend/app/components/Map/layers/Dms.jsx
sonarqubecloud / SonarCloud Code Analysis
Remove the declaration of the unused 'map' variable.
See more on https://sonarcloud.io/project/issues?id=bcgov_RIDE&issues=AZ6Z5l7Gqf6IelamDfrZ&open=AZ6Z5l7Gqf6IelamDfrZ&pullRequest=116
Check failure on line 178 in src/frontend/app/components/Map/layers/Events.jsx
sonarqubecloud / SonarCloud Code Analysis
Refactor this function to reduce its Cognitive Complexity from 34 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=bcgov_RIDE&issues=AZ6Z5l7aqf6IelamDfrj&open=AZ6Z5l7aqf6IelamDfrj&pullRequest=116
Check warning on line 172 in src/frontend/app/components/Map/layers/Events.jsx
sonarqubecloud / SonarCloud Code Analysis
Remove this useless assignment to variable "status".
See more on https://sonarcloud.io/project/issues?id=bcgov_RIDE&issues=AZ6Z5l7aqf6IelamDfri&open=AZ6Z5l7aqf6IelamDfri&pullRequest=116
Check warning on line 182 in src/frontend/app/components/Map/layers/Boundaries.jsx
sonarqubecloud / SonarCloud Code Analysis
Remove this useless assignment to variable "source".
See more on https://sonarcloud.io/project/issues?id=bcgov_RIDE&issues=AZ6Z5l7Qqf6IelamDfre&open=AZ6Z5l7Qqf6IelamDfre&pullRequest=116
Check warning on line 195 in src/frontend/app/components/Map/layers/Dms.jsx
sonarqubecloud / SonarCloud Code Analysis
Remove the declaration of the unused 'status' variable.
See more on https://sonarcloud.io/project/issues?id=bcgov_RIDE&issues=AZ6Z5l7Gqf6IelamDfrQ&open=AZ6Z5l7Gqf6IelamDfrQ&pullRequest=116
Check warning on line 182 in src/frontend/app/components/Map/layers/Boundaries.jsx
sonarqubecloud / SonarCloud Code Analysis
Remove the declaration of the unused 'source' variable.
See more on https://sonarcloud.io/project/issues?id=bcgov_RIDE&issues=AZ6Z5l7Qqf6IelamDfrd&open=AZ6Z5l7Qqf6IelamDfrd&pullRequest=116
Check warning on line 202 in src/frontend/app/components/Map/layers/Dms.jsx
sonarqubecloud / SonarCloud Code Analysis
Remove this useless assignment to variable "sign".
See more on https://sonarcloud.io/project/issues?id=bcgov_RIDE&issues=AZ6Z5l7Gqf6IelamDfrT&open=AZ6Z5l7Gqf6IelamDfrT&pullRequest=116
Check warning on line 212 in src/frontend/app/components/Map/layers/Dms.jsx
sonarqubecloud / SonarCloud Code Analysis
Remove the declaration of the unused 'coordinate' variable.
See more on https://sonarcloud.io/project/issues?id=bcgov_RIDE&issues=AZ6Z5l7Gqf6IelamDfrU&open=AZ6Z5l7Gqf6IelamDfrU&pullRequest=116
Check warning on line 172 in src/frontend/app/components/Map/layers/Events.jsx
sonarqubecloud / SonarCloud Code Analysis
Remove the declaration of the unused 'status' variable.
See more on https://sonarcloud.io/project/issues?id=bcgov_RIDE&issues=AZ6Z5l7aqf6IelamDfrh&open=AZ6Z5l7aqf6IelamDfrh&pullRequest=116
Check warning on line 206 in src/frontend/app/components/Map/layers/Events.jsx
sonarqubecloud / SonarCloud Code Analysis
The non-empty check is useless as `Array#some()` returns `false` for an empty array.
See more on https://sonarcloud.io/project/issues?id=bcgov_RIDE&issues=AZ6Z5l7aqf6IelamDfrl&open=AZ6Z5l7aqf6IelamDfrl&pullRequest=116
Check warning on line 26 in src/frontend/app/components/Map/layers/Events.jsx
sonarqubecloud / SonarCloud Code Analysis
'/tmp/clone343121440223016108/src/frontend/app/shared/helpers.js' imported multiple times.
See more on https://sonarcloud.io/project/issues?id=bcgov_RIDE&issues=AZ6Z5l7aqf6IelamDfrg&open=AZ6Z5l7aqf6IelamDfrg&pullRequest=116
Check warning on line 195 in src/frontend/app/components/Map/layers/Dms.jsx
sonarqubecloud / SonarCloud Code Analysis
Remove this useless assignment to variable "status".
See more on https://sonarcloud.io/project/issues?id=bcgov_RIDE&issues=AZ6Z5l7Gqf6IelamDfrR&open=AZ6Z5l7Gqf6IelamDfrR&pullRequest=116