Skip to content

[Test] fix tests

70f21c4
Select commit
Loading
Failed to load commit list.
Draft

[PoC] Récupérer les zones reg et AMP dynamiquement en fonction du zoom et de l'étendue #2481

[Test] fix tests
70f21c4
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded May 7, 2026 in 1m 6s

Annotations

Check warning on line 40 in frontend/src/api/ampsAPI.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this code to not use nested template literals.

See more on https://sonarcloud.io/project/issues?id=MTES-MCT_monitorenv&issues=AZ1EiTWQkWhB4ytKtH4A&open=AZ1EiTWQkWhB4ytKtH4A&pullRequest=2481

Check warning on line 8 in backend/src/main/kotlin/fr/gouv/cacem/monitorenv/domain/repositories/IRegulatoryAreaNewRepository.kt

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This function has 9 parameters, which is greater than the 7 authorized.

See more on https://sonarcloud.io/project/issues?id=MTES-MCT_monitorenv&issues=AZ1EiTXBkWhB4ytKtH4C&open=AZ1EiTXBkWhB4ytKtH4C&pullRequest=2481

Check warning on line 17 in frontend/src/api/regulatoryAreasAPI.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Consider removing 'undefined' type or '?' specifier, one of them is redundant.

See more on https://sonarcloud.io/project/issues?id=MTES-MCT_monitorenv&issues=AZ1EiTV5kWhB4ytKtH38&open=AZ1EiTV5kWhB4ytKtH38&pullRequest=2481

Check warning on line 119 in frontend/src/features/Dashboard/components/Layers/PreviewDashboardLayer.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this commented out code.

See more on https://sonarcloud.io/project/issues?id=MTES-MCT_monitorenv&issues=AZ1EiTT7kWhB4ytKtH36&open=AZ1EiTT7kWhB4ytKtH36&pullRequest=2481

Check warning on line 22 in frontend/src/features/Dashboard/useCases/selectDashboardOnMap.ts

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=MTES-MCT_monitorenv&issues=AZ1EiTUVkWhB4ytKtH37&open=AZ1EiTUVkWhB4ytKtH37&pullRequest=2481

Check warning on line 21 in frontend/src/api/ampsAPI.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Consider removing 'undefined' type or '?' specifier, one of them is redundant.

See more on https://sonarcloud.io/project/issues?id=MTES-MCT_monitorenv&issues=AZ1EiTWQkWhB4ytKtH3-&open=AZ1EiTWQkWhB4ytKtH3-&pullRequest=2481

Check warning on line 114 in frontend/src/features/Dashboard/components/Layers/PreviewDashboardLayer.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Take the required action to fix the issue indicated by this comment.

See more on https://sonarcloud.io/project/issues?id=MTES-MCT_monitorenv&issues=AZ1EiTT7kWhB4ytKtH35&open=AZ1EiTT7kWhB4ytKtH35&pullRequest=2481

Check warning on line 41 in frontend/src/features/Dashboard/components/DashboardForm/Amps/index.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=MTES-MCT_monitorenv&issues=AZ1EiTS9kWhB4ytKtH33&open=AZ1EiTS9kWhB4ytKtH33&pullRequest=2481

Check warning on line 128 in frontend/src/features/map/index.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Missing "key" prop for element in array

See more on https://sonarcloud.io/project/issues?id=MTES-MCT_monitorenv&issues=AZ1IWykW3OXD0TCP3uXQ&open=AZ1IWykW3OXD0TCP3uXQ&pullRequest=2481

Check warning on line 14 in backend/src/main/kotlin/fr/gouv/cacem/monitorenv/domain/use_cases/regulatoryAreas/GetAllNewRegulatoryAreas.kt

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This function has 9 parameters, which is greater than the 7 authorized.

See more on https://sonarcloud.io/project/issues?id=MTES-MCT_monitorenv&issues=AZ1EiTWvkWhB4ytKtH4B&open=AZ1EiTWvkWhB4ytKtH4B&pullRequest=2481

Check warning on line 19 in frontend/src/api/ampsAPI.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Consider removing 'undefined' type or '?' specifier, one of them is redundant.

See more on https://sonarcloud.io/project/issues?id=MTES-MCT_monitorenv&issues=AZ1EiTWQkWhB4ytKtH39&open=AZ1EiTWQkWhB4ytKtH39&pullRequest=2481

Check warning on line 18 in frontend/src/features/layersSelector/myAmps/MyAMPLayersList.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=MTES-MCT_monitorenv&issues=AZ1EiTP6kWhB4ytKtH3z&open=AZ1EiTP6kWhB4ytKtH3z&pullRequest=2481

Check warning on line 22 in frontend/src/features/Dashboard/components/DashboardForm/VigilanceAreas/Panel/Amps.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=MTES-MCT_monitorenv&issues=AZ1EiTSJkWhB4ytKtH31&open=AZ1EiTSJkWhB4ytKtH31&pullRequest=2481

Check warning on line 39 in frontend/src/api/ampsAPI.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Do not use an object literal as default.

See more on https://sonarcloud.io/project/issues?id=MTES-MCT_monitorenv&issues=AZ1EiTWQkWhB4ytKtH3_&open=AZ1EiTWQkWhB4ytKtH3_&pullRequest=2481

Check warning on line 45 in frontend/src/features/Dashboard/components/DashboardForm/RegulatoryAreas/Layer.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this commented out code.

See more on https://sonarcloud.io/project/issues?id=MTES-MCT_monitorenv&issues=AZ1EiTSckWhB4ytKtH32&open=AZ1EiTSckWhB4ytKtH32&pullRequest=2481

Check warning on line 161 in frontend/src/features/layersSelector/index.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this commented out code.

See more on https://sonarcloud.io/project/issues?id=MTES-MCT_monitorenv&issues=AZ1EiTQYkWhB4ytKtH30&open=AZ1EiTQYkWhB4ytKtH30&pullRequest=2481

Check warning on line 58 in frontend/src/features/Dashboard/components/Layers/ActiveDashboardLayer.tsx

See this annotation in the file changed.

@sonarqubecloud 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=MTES-MCT_monitorenv&issues=AZ1EiTTjkWhB4ytKtH34&open=AZ1EiTTjkWhB4ytKtH34&pullRequest=2481

Check warning on line 33 in frontend/src/features/layersSelector/search/ResultsList/RegulatoryLayerGroup/RegulatoryLayer.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Mark the props of the component as read-only.

See more on https://sonarcloud.io/project/issues?id=MTES-MCT_monitorenv&issues=AZ1EiTMRkWhB4ytKtH3y&open=AZ1EiTMRkWhB4ytKtH3y&pullRequest=2481

Check warning on line 111 in backend/src/main/kotlin/fr/gouv/cacem/monitorenv/infrastructure/database/repositories/JpaRegulatoryAreaNewRepository.kt

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused private "findBySearchQuery" method.

See more on https://sonarcloud.io/project/issues?id=MTES-MCT_monitorenv&issues=AZ3zLhaOyUXValyX000W&open=AZ3zLhaOyUXValyX000W&pullRequest=2481