Sl 249 fix campaigns #103
Sl 249 fix campaigns #103
Quality Gate failed
Failed conditions
39.8% Coverage on New Code (required ≥ 80%)
C Security 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 183 in api/src/tasks/scheduler.py
sonarqubecloud / SonarCloud Code Analysis
Remove this redundant Exception class; it derives from another which is already caught.
See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0S2AnZ3JYEkI940TNd&open=AZ0S2AnZ3JYEkI940TNd&pullRequest=103
Check warning on line 38 in api/src/services/keycloak_client/base_handler.py
sonarqubecloud / SonarCloud Code Analysis
Change this code to not construct the URL's path from user-controlled data.
See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0S2Aky3JYEkI940TNc&open=AZ0S2Aky3JYEkI940TNc&pullRequest=103
Check failure on line 141 in api/src/services/templates.py
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "Template not found" 4 times.
See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0WUOi2EnrKnygj_VBR&open=AZ0WUOi2EnrKnygj_VBR&pullRequest=103
Check failure on line 106 in api/src/services/templates.py
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "$exists" 3 times.
See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0WUOi2EnrKnygj_VBS&open=AZ0WUOi2EnrKnygj_VBS&pullRequest=103
Check failure on line 135 in api/src/services/templates.py
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "Invalid template id" 4 times.
See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0WUOi2EnrKnygj_VBQ&open=AZ0WUOi2EnrKnygj_VBQ&pullRequest=103