Skip to content

More coverage

1a98338
Select commit
Loading
Failed to load commit list.
Merged

Sl 142 criacao de cursos backend #107

More coverage
1a98338
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Mar 25, 2026 in 1m 2s

Quality Gate failed

Failed conditions
10.1% 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 70 in web/src/components/courses/assign/UserGroupSelectionStep.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / 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=PEI-SecureLearning_core&issues=AZ0kjmmear6aFTbyUghx&open=AZ0kjmmear6aFTbyUghx&pullRequest=107

Check failure on line 124 in api/src/services/progress.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Don't use `datetime.datetime.utcnow` to create this datetime object.

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0kjms5ar6aFTbyUgjI&open=AZ0kjms5ar6aFTbyUgjI&pullRequest=107

Check failure on line 704 in web/src/components/courses/ModuleLearner.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 19 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0kjmnVar6aFTbyUgiR&open=AZ0kjmnVar6aFTbyUgiR&pullRequest=107

Check warning on line 102 in api/src/services/progress.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add replacement fields or use a normal string instead of an f-string.

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0kjms5ar6aFTbyUgjH&open=AZ0kjms5ar6aFTbyUgjH&pullRequest=107

Check warning on line 39 in web/src/components/courses/assign/SchedulingStep.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0kjmmVar6aFTbyUght&open=AZ0kjmmVar6aFTbyUght&pullRequest=107

Check warning on line 204 in web/src/components/courses/CourseCard.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=PEI-SecureLearning_core&issues=AZ0kjmm2ar6aFTbyUgh4&open=AZ0kjmm2ar6aFTbyUgh4&pullRequest=107

Check failure on line 68 in api/src/services/progress.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "Course progress not found" 5 times.

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0kjms5ar6aFTbyUgjE&open=AZ0kjms5ar6aFTbyUgjE&pullRequest=107

Check warning on line 70 in web/src/components/courses/assign/UserGroupSelectionStep.tsx

See this annotation in the file changed.

@sonarqubecloud 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=PEI-SecureLearning_core&issues=AZ0kjmmear6aFTbyUghy&open=AZ0kjmmear6aFTbyUghy&pullRequest=107

Check warning on line 174 in web/src/routes/courses/assign.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Handle this exception or don't catch it at all.

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0kjmrAar6aFTbyUgiq&open=AZ0kjmrAar6aFTbyUgiq&pullRequest=107

Check warning on line 84 in web/src/components/courses/courseList.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unexpected negated condition.

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0kjmnJar6aFTbyUgiG&open=AZ0kjmnJar6aFTbyUgiG&pullRequest=107

Check warning on line 9 in api/src/services/progress.py

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=PEI-SecureLearning_core&issues=AZ0kjms5ar6aFTbyUgjF&open=AZ0kjms5ar6aFTbyUgjF&pullRequest=107

Check warning on line 147 in web/src/components/courses/ModuleLearner.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This assertion is unnecessary since it does not change the type of the expression.

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0kjmnVar6aFTbyUgiL&open=AZ0kjmnVar6aFTbyUgiL&pullRequest=107

Check warning on line 39 in web/src/services/progressApi.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=PEI-SecureLearning_core&issues=AZ0kjmsHar6aFTbyUgjD&open=AZ0kjmsHar6aFTbyUgjD&pullRequest=107

Check failure on line 204 in web/src/components/courses/CourseCard.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 21 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0kjmm2ar6aFTbyUgh3&open=AZ0kjmm2ar6aFTbyUgh3&pullRequest=107

Check failure on line 831 in web/src/components/courses/ModuleLearner.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this code to not nest functions more than 4 levels deep.

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0kjmnVar6aFTbyUgiT&open=AZ0kjmnVar6aFTbyUgiT&pullRequest=107

Check warning on line 2 in web/src/components/content-manager/courses/AvailableModuleList.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'lucide-react' imported multiple times.

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0kjmluar6aFTbyUghm&open=AZ0kjmluar6aFTbyUghm&pullRequest=107

Check warning on line 267 in web/src/components/courses/courseList.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0kjmnJar6aFTbyUgiK&open=AZ0kjmnJar6aFTbyUgiK&pullRequest=107

Check warning on line 194 in web/src/components/courses/ModuleLearner.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0kjmnVar6aFTbyUgiP&open=AZ0kjmnVar6aFTbyUgiP&pullRequest=107

Check warning on line 36 in web/src/lib/use-query.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `globalThis` over `window`.

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0kjmr3ar6aFTbyUgi_&open=AZ0kjmr3ar6aFTbyUgi_&pullRequest=107

Check warning on line 74 in web/src/routes/courses/$courseId/modules/$moduleId.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This assertion is unnecessary since the receiver accepts the original type of the expression.

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0kjmrRar6aFTbyUgi3&open=AZ0kjmrRar6aFTbyUgi3&pullRequest=107

Check warning on line 81 in web/src/routes/courses/$courseId/modules/$moduleId.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Handle this exception or don't catch it at all.

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0kjmrRar6aFTbyUgi4&open=AZ0kjmrRar6aFTbyUgi4&pullRequest=107

Check failure on line 159 in api/src/services/progress.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Don't use `datetime.datetime.utcnow` to create this datetime object.

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0kjms5ar6aFTbyUgjJ&open=AZ0kjms5ar6aFTbyUgjJ&pullRequest=107

Check warning on line 406 in web/src/components/courses/CourseCard.tsx

See this annotation in the file changed.

@sonarqubecloud 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=PEI-SecureLearning_core&issues=AZ0kjmm2ar6aFTbyUgiC&open=AZ0kjmm2ar6aFTbyUgiC&pullRequest=107

Check failure on line 75 in web/src/components/courses/userCourseList.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this code to not nest functions more than 4 levels deep.

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0kjmqLar6aFTbyUgiW&open=AZ0kjmqLar6aFTbyUgiW&pullRequest=107

Check warning on line 155 in web/src/components/courses/ModuleLearner.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This assertion is unnecessary since it does not change the type of the expression.

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0kjmnVar6aFTbyUgiN&open=AZ0kjmnVar6aFTbyUgiN&pullRequest=107