Next major release #103
Next major release #103
8 issues fixed. 24 issues found. Autofix available.
Annotations
codefactor-io / CodeFactor
src/main/kotlin/trik/testsys/webapp/backoffice/data/service/impl/StudentGroupServiceImpl.kt#L208
Parentheses in (s.task.id == task.id) are unnecessary and can be replaced with: s.task.id == task.id. (detekt.UnnecessaryParentheses)
codefactor-io / CodeFactor
src/main/kotlin/trik/testsys/webapp/backoffice/controller/impl/user/developer/DeveloperContestController.kt#L314-L396
Complex Method
codefactor-io / CodeFactor
src/main/kotlin/trik/testsys/webapp/backoffice/service/impl/FileManagerImpl.kt#L145
Forbidden TODO todo marker in comment, please do the changes. (detekt.ForbiddenComment)
Check warning on line 17 in src/main/kotlin/trik/testsys/webapp/grading/BalancingUtils.kt
codefactor-io / CodeFactor
src/main/kotlin/trik/testsys/webapp/grading/BalancingUtils.kt#L17
Parentheses in (status as? Grader.NodeStatus.Alive) are unnecessary and can be replaced with: status as? Grader.NodeStatus.Alive. (detekt.UnnecessaryParentheses)
codefactor-io / CodeFactor
src/main/kotlin/trik/testsys/webapp/backoffice/data/service/impl/SolutionServiceImpl.kt#L16
Unnecessary block ("{}") (detekt.NoEmptyClassBody)
codefactor-io / CodeFactor
src/main/kotlin/trik/testsys/webapp/backoffice/controller/impl/user/developer/DeveloperTaskController.kt#L233
Parentheses in (s.id!!) are unnecessary and can be replaced with: s.id!! (detekt.UnnecessaryParentheses)
codefactor-io / CodeFactor
src/main/kotlin/trik/testsys/webapp/backoffice/data/service/impl/StudentGroupServiceImpl.kt#L208
Parentheses in (s.contest?.id == contest.id) are unnecessary and can be replaced with: s.contest?.id == contest.id. (detekt.UnnecessaryParentheses)
codefactor-io / CodeFactor
src/main/kotlin/trik/testsys/webapp/backoffice/utils/handler/GradingSystemErrorHandler.kt#L19
Parentheses in (httpResponse.statusCode.is4xxClientError || httpResponse.statusCode.is5xxServerError) are unnecessary and can be replaced with: httpResponse.statusCode.is4xxClientError || httpResponse.statusCode.is5xxServerError. (detekt.UnnecessaryParentheses)
codefactor-io / CodeFactor
src/main/kotlin/trik/testsys/webapp/backoffice/data/service/impl/StudentGroupServiceImpl.kt#L199
Parentheses in (admin?.name ?: "") are unnecessary and can be replaced with: admin?.name ?: "". (detekt.UnnecessaryParentheses)
codefactor-io / CodeFactor
src/main/kotlin/trik/testsys/webapp/backoffice/controller/impl/user/judge/JudgeController.kt#L73
Parentheses in (s.id!!) are unnecessary and can be replaced with: s.id!! (detekt.UnnecessaryParentheses)
codefactor-io / CodeFactor
src/main/kotlin/trik/testsys/webapp/backoffice/controller/impl/user/student/StudentContestsController.kt#L119
Parentheses in (totalSeconds % 3600) are unnecessary and can be replaced with: totalSeconds % 3600. (detekt.UnnecessaryParentheses)
codefactor-io / CodeFactor
src/main/kotlin/trik/testsys/webapp/backoffice/controller/impl/MainController.kt#L57
Parentheses in (request.getAttribute("accessToken") as? String) are unnecessary and can be replaced with: request.getAttribute("accessToken") as? String. (detekt.UnnecessaryParentheses)
codefactor-io / CodeFactor
src/main/kotlin/trik/testsys/webapp/backoffice/controller/impl/user/student/StudentContestController.kt#L122
Parentheses in (totalSeconds % 3600) are unnecessary and can be replaced with: totalSeconds % 3600. (detekt.UnnecessaryParentheses)
codefactor-io / CodeFactor
src/main/kotlin/trik/testsys/webapp/backoffice/data/repository/SolutionRepository.kt#L12
Unnecessary block ("{}") (detekt.NoEmptyClassBody)
codefactor-io / CodeFactor
src/main/kotlin/trik/testsys/webapp/backoffice/data/service/SolutionService.kt#L10
Unnecessary block ("{}") (detekt.NoEmptyClassBody)
codefactor-io / CodeFactor
src/main/kotlin/trik/testsys/webapp/grading/communication/GraderClient.kt#L46
Forbidden TODO todo marker in comment, please do the changes. (detekt.ForbiddenComment)
codefactor-io / CodeFactor
src/main/kotlin/trik/testsys/webapp/backoffice/data/entity/impl/Contest.kt#L67
Parentheses in (++idx) are unnecessary and can be replaced with: ++idx. (detekt.UnnecessaryParentheses)
codefactor-io / CodeFactor
src/main/kotlin/trik/testsys/webapp/backoffice/controller/impl/user/student/StudentTaskController.kt#L90
Parentheses in (s.id!!) are unnecessary and can be replaced with: s.id!! (detekt.UnnecessaryParentheses)
codefactor-io / CodeFactor
src/main/kotlin/trik/testsys/webapp/backoffice/controller/impl/user/developer/DeveloperContestController.kt#L431-L506
Complex Method
codefactor-io / CodeFactor
src/main/kotlin/trik/testsys/webapp/backoffice/controller/impl/user/developer/DeveloperTaskController.kt#L979
Private class TaskFileListItem is unused. (detekt.UnusedPrivateClass)
codefactor-io / CodeFactor
src/main/kotlin/trik/testsys/webapp/backoffice/controller/impl/user/judge/JudgeController.kt#L140
Parentheses in (fileManager.getSolution(solution) != null) are unnecessary and can be replaced with: fileManager.getSolution(solution) != null. (detekt.UnnecessaryParentheses)
codefactor-io / CodeFactor
src/main/kotlin/trik/testsys/webapp/backoffice/controller/impl/user/judge/JudgeController.kt#L77
Parentheses in (s.id!!) are unnecessary and can be replaced with: s.id!! (detekt.UnnecessaryParentheses)
codefactor-io / CodeFactor
src/main/kotlin/trik/testsys/webapp/backoffice/controller/impl/user/developer/DeveloperTaskController.kt#L249
Parentheses in (s.id!!) are unnecessary and can be replaced with: s.id!! (detekt.UnnecessaryParentheses)
codefactor-io / CodeFactor
src/main/kotlin/trik/testsys/webapp/backoffice/controller/impl/user/judge/JudgeController.kt#L139
Parentheses in (fileManager.getVerdicts(solution).isNotEmpty() || fileManager.getRecording(solution).isNotEmpty()) are unnecessary and can be replaced with: fileManager.getVerdicts(solution).isNotEmpty() || fileManager.getRecording(solution).isNotEmpty() (detekt.UnnecessaryParentheses)