Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lecture: Allow instructors to remove solution slides when processing units #6895

Merged
merged 12 commits into from
Jul 29, 2023

Merge branch 'develop' into feature/remove-solution-slides

e72ec95
Select commit
Loading
Failed to load commit list.
Merged

Lecture: Allow instructors to remove solution slides when processing units #6895

Merge branch 'develop' into feature/remove-solution-slides
e72ec95
Select commit
Loading
Failed to load commit list.
Teamscale / teamscale-findings required action Jul 28, 2023 in 0s

Teamscale

This pull request would introduce 7 new findings

Details

Teamscale's logo 7 added, 12 in changed code, 0 removed 9 Test Gaps (100%) tested changes: 0|untested changes: 7|untested additions: 2

  • src/test/java/de/tum/in/www1/artemis/lecture/AttachmentUnitIntegrationTest.java#131: Clone with 2 instances of length 13 (view in Teamscale)
  • src/main/java/de/tum/in/www1/artemis/service/LectureUnitProcessingService.java#117: Statements in Conditional Expression are equal (view in Teamscale)
  • src/test/java/de/tum/in/www1/artemis/lecture/AttachmentUnitsIntegrationTest.java#255: Violation of nesting depth threshold of 3: 4 (view in Teamscale)
  • src/main/java/de/tum/in/www1/artemis/service/LectureUnitProcessingService.java#120: Statements in Conditional Expression are equal (view in Teamscale)
  • src/test/java/de/tum/in/www1/artemis/lecture/AttachmentUnitsIntegrationTest.java#180: Clone with 3 instances of length 10 (view in Teamscale)
  • src/test/java/de/tum/in/www1/artemis/lecture/AttachmentUnitsIntegrationTest.java#179: Method splitLectureFile_asInstructor_shouldRemoveSolutionSlides_and_removeBreakSlides violates naming convention. Should be one of [a-z][a-zA-Z0-9]* (view in Teamscale)
  • src/test/java/de/tum/in/www1/artemis/lecture/AttachmentUnitsIntegrationTest.java#238: Clone with 2 instances of length 13 (view in Teamscale)

Annotations

Check warning on line 117 in src/main/java/de/tum/in/www1/artemis/service/LectureUnitProcessingService.java

See this annotation in the file changed.

@teamscale teamscale / teamscale-findings

src/main/java/de/tum/in/www1/artemis/service/LectureUnitProcessingService.java#L117

Statements in Conditional Expression are equal
https://teamscale.io/findings.html#details/GitHub-ls1intum-Artemis?t=feature%2Fremove-solution-slides%3AHEAD&id=4550D7B64DFB214A8B491E90EB4C70F2

Check warning on line 120 in src/main/java/de/tum/in/www1/artemis/service/LectureUnitProcessingService.java

See this annotation in the file changed.

@teamscale teamscale / teamscale-findings

src/main/java/de/tum/in/www1/artemis/service/LectureUnitProcessingService.java#L120

Statements in Conditional Expression are equal
https://teamscale.io/findings.html#details/GitHub-ls1intum-Artemis?t=feature%2Fremove-solution-slides%3AHEAD&id=B332CE47A6FFAEFE33DC5ABAFDCA8AD7

Check warning on line 267 in src/test/java/de/tum/in/www1/artemis/lecture/AttachmentUnitsIntegrationTest.java

See this annotation in the file changed.

@teamscale teamscale / teamscale-findings

src/test/java/de/tum/in/www1/artemis/lecture/AttachmentUnitsIntegrationTest.java#L255-L267

This method is a bit lengthy [0] and deeply nested in multiple places [1, 2, 3] which can make it hard to understand and maintain. Consider extracting helper methods or reducing the nesting by using early breaks or returns.

[0] https://teamscale.io/findings.html#details/GitHub-ls1intum-Artemis?t=feature%2Fremove-solution-slides%3AHEAD&id=58F014C2BE72AFC421B170242789C78A
[1] https://teamscale.io/findings.html#details/GitHub-ls1intum-Artemis?t=feature%2Fremove-solution-slides%3AHEAD&id=8C12B73771ADE5E7462437CE8A7CC72E
[2] https://teamscale.io/findings.html#details/GitHub-ls1intum-Artemis?t=feature%2Fremove-solution-slides%3AHEAD&id=8B275A51C6264D1544AEECE5158AFD28
[3] https://teamscale.io/findings.html#details/GitHub-ls1intum-Artemis?t=feature%2Fremove-solution-slides%3AHEAD&id=596FAA0A2084B6C5F4DD8DF99E590B8E

Check warning on line 194 in src/test/java/de/tum/in/www1/artemis/lecture/AttachmentUnitsIntegrationTest.java

See this annotation in the file changed.

@teamscale teamscale / teamscale-findings

src/test/java/de/tum/in/www1/artemis/lecture/AttachmentUnitsIntegrationTest.java#L180-L194

Clone with 3 instances of length 10
https://teamscale.io/findings.html#details/GitHub-ls1intum-Artemis?t=feature%2Fremove-solution-slides%3AHEAD&id=4A23D5B88955B75EA3150273DD76C250

Check warning on line 179 in src/test/java/de/tum/in/www1/artemis/lecture/AttachmentUnitsIntegrationTest.java

See this annotation in the file changed.

@teamscale teamscale / teamscale-findings

src/test/java/de/tum/in/www1/artemis/lecture/AttachmentUnitsIntegrationTest.java#L179

Method `splitLectureFile_asInstructor_shouldRemoveSolutionSlides_and_removeBreakSlides` violates naming convention. Should be one of `[a-z][a-zA-Z0-9]*`
https://teamscale.io/findings.html#details/GitHub-ls1intum-Artemis?t=feature%2Fremove-solution-slides%3AHEAD&id=D1A876899A6DF40483B0139E7B0730D9

Check warning on line 252 in src/test/java/de/tum/in/www1/artemis/lecture/AttachmentUnitsIntegrationTest.java

See this annotation in the file changed.

@teamscale teamscale / teamscale-findings

src/test/java/de/tum/in/www1/artemis/lecture/AttachmentUnitsIntegrationTest.java#L238-L252

Clone with 2 instances of length 13
https://teamscale.io/findings.html#details/GitHub-ls1intum-Artemis?t=feature%2Fremove-solution-slides%3AHEAD&id=D875A33EAE8EB7D0879F06D566C5D73B