CARVIEW |
Navigation Menu
-
Notifications
You must be signed in to change notification settings - Fork 1
Add a buggy and unclean solution for assignment 1
GitHub Autograding Action - 462 of 500 (92%)
Modultests - 100 of 100: 100% successful (12 passed)
🚫 Architekturrichtlinien - 80 of 100: 80% successful (2 failed, 8 passed)
〰️ Zeilenüberdeckung - 96 of 100: 96% (2 missed lines)
➰ Zweigüberdeckung - 92 of 100: 92% (2 missed branches)
CheckStyle - 99 of 100: 1 warning (normal: 1)
PMD - 99 of 100: 1 warning (normal: 1)
SpotBugs - 95 of 100: 1 bug (low: 1)
🐛 Error Prone - 95 of 100: 1 bug (normal: 1)
Created by GitHub Autograding Action v5.2.0 (#eb88fff)
Details
🎓 GitHub Autograding Action - 462 of 500 (92%)
Modultests - 100 of 100
Icon | Name | Reports | Passed | Skipped | Failed | Total | Success % | Failure % | Impact |
---|---|---|---|---|---|---|---|---|---|
Modultests | 2 | 12 | 0 | 0 | 12 | 100 | 0 | 0 | |
💰 | ➖ | ➖ | - | - | - | ➖ | - | -1 | ➖ |
🚫 Verletzung der Architekturrichtlinien - 80 of 100
Icon | Name | Reports | Passed | Skipped | Failed | Total | Success % | Failure % | Impact |
---|---|---|---|---|---|---|---|---|---|
🚫 | Architekturrichtlinien | 1 | 8 | 0 | 2 | 10 | 80 | 20 | -20 |
💰 | ➖ | ➖ | - | - | - | ➖ | - | -1 | ➖ |
Failures
ArchitectureTest:ONLY_PACKAGE_PRIVATE_TEST_METHODS
Architecture Violation [Priority: MEDIUM] - Rule 'methods that are annotated with @Test or are annotated with @ParameterizedTest and are declared in classes that have simple name ending with 'Test' should be package private, because test methods are not part of the API and should be hidden in a package' was violated (1 times):
Method <edu.hm.hafner.java2.assignment1.AssignmentTest.shouldFixOneTest()> has modifier PUBLIC in (AssignmentTest.java:27)
Stack Trace
java.lang.AssertionError:
Architecture Violation [Priority: MEDIUM] - Rule 'methods that are annotated with @Test or are annotated with @ParameterizedTest and are declared in classes that have simple name ending with 'Test' should be package private, because test methods are not part of the API and should be hidden in a package' was violated (1 times):
Method <edu.hm.hafner.java2.assignment1.AssignmentTest.shouldFixOneTest()> has modifier PUBLIC in (AssignmentTest.java:27)
at com.tngtech.archunit.lang.ArchRule$Assertions.assertNoViolation(ArchRule.java:94)
at com.tngtech.archunit.lang.ArchRule$Assertions.check(ArchRule.java:86)
at com.tngtech.archunit.lang.ArchRule$Factory$SimpleArchRule.check(ArchRule.java:165)
at com.tngtech.archunit.junit.internal.ArchUnitTestDescriptor$ArchUnitRuleDescriptor.execute(ArchUnitTestDescriptor.java:168)
at com.tngtech.archunit.junit.internal.ArchUnitTestDescriptor$ArchUnitRuleDescriptor.execute(ArchUnitTestDescriptor.java:151)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
ArchitectureTest:NO_EXCEPTIONS_WITH_NO_ARG_CONSTRUCTOR
Architecture Violation [Priority: MEDIUM] - Rule 'no classes that have simple name not containing 'Benchmark' should call constructor where exception context is missing, because exceptions should include failure-capture information in detail messages (Effective Java Item 75)' was violated (1 times):
Method <edu.hm.hafner.java2.assignment1.Assignment.solve(int)> calls constructor <java.lang.IndexOutOfBoundsException.<init>()> in (Assignment.java:70)
Stack Trace
java.lang.AssertionError:
Architecture Violation [Priority: MEDIUM] - Rule 'no classes that have simple name not containing 'Benchmark' should call constructor where exception context is missing, because exceptions should include failure-capture information in detail messages (Effective Java Item 75)' was violated (1 times):
Method <edu.hm.hafner.java2.assignment1.Assignment.solve(int)> calls constructor <java.lang.IndexOutOfBoundsException.<init>()> in (Assignment.java:70)
at com.tngtech.archunit.lang.ArchRule$Assertions.assertNoViolation(ArchRule.java:94)
at com.tngtech.archunit.lang.ArchRule$Assertions.check(ArchRule.java:86)
at com.tngtech.archunit.lang.ArchRule$Factory$SimpleArchRule.check(ArchRule.java:165)
at com.tngtech.archunit.junit.internal.ArchUnitTestDescriptor$ArchUnitRuleDescriptor.execute(ArchUnitTestDescriptor.java:168)
at com.tngtech.archunit.junit.internal.ArchUnitTestDescriptor$ArchUnitRuleDescriptor.execute(ArchUnitTestDescriptor.java:151)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
⚠️ Verletzungen der Richtlinien - 98 of 100
Icon | Name | Reports | Errors | High | Normal | Low | Total | Impact |
---|---|---|---|---|---|---|---|---|
![]() |
CheckStyle | 2 | 0 | 0 | 1 | 0 | 1 | -1 |
PMD | 3 | 0 | 0 | 1 | 0 | 1 | -1 | |
➕ | Total | 5 | 0 | 0 | 2 | 0 | 2 | -2 |
💰 | ➖ | ➖ | -1 | -1 | -1 | -1 | ➖ | ➖ |
🐛 Potentielle Fehler - 90 of 100
Icon | Name | Reports | Errors | High | Normal | Low | Total | Impact |
---|---|---|---|---|---|---|---|---|
![]() |
SpotBugs | 1 | 0 | 0 | 0 | 1 | 1 | -5 |
🐛 | Error Prone | 1 | 0 | 0 | 1 | 0 | 1 | -5 |
➕ | Total | 2 | 0 | 0 | 1 | 1 | 2 | -10 |
💰 | ➖ | ➖ | -5 | -5 | -5 | -5 | ➖ | ➖ |
👣 Testüberdeckung - 94 of 100
Icon | Name | Covered % | Missed % | Impact |
---|---|---|---|---|
〰️ | Zeilenüberdeckung | 96 | 4 | -4 |
➰ | Zweigüberdeckung | 92 | 8 | -8 |
➕ | Total Ø | 94 | 6 | -6 |
💰 | ➖ | - | -1 | ➖ |
Annotations
Check warning on line 11 in src/main/java/edu/hm/hafner/java2/assignment1/Assignment.java
github-actions / GitHub Autograding Action
CheckStyle: MissingJavadocMethodCheck
Missing a Javadoc comment.
Check warning on line 20 in src/main/java/edu/hm/hafner/java2/assignment1/Exam.java
github-actions / GitHub Autograding Action
PMD: UnnecessaryConstructor
Avoid unnecessary constructors - the compiler will generate these for you.
Check warning on line 86 in src/main/java/edu/hm/hafner/java2/assignment1/Assignment.java
github-actions / GitHub Autograding Action
SpotBugs: NP_TOSTRING_COULD_RETURN_NULL
edu.hm.hafner.java2.assignment1.Assignment.toString() may return null
Check warning on line 86 in src/main/java/edu/hm/hafner/java2/assignment1/Assignment.java
github-actions / GitHub Autograding Action
Error Prone: NullAway
returning @Nullable expression from method with @NonNull return type.
Check warning on line 70 in edu/hm/hafner/java2/assignment1/Assignment.java
github-actions / GitHub Autograding Action
Not covered line
Line 70 is not covered by tests
Check warning on line 86 in edu/hm/hafner/java2/assignment1/Assignment.java
github-actions / GitHub Autograding Action
Not covered line
Line 86 is not covered by tests
Check warning on line 69 in edu/hm/hafner/java2/assignment1/Assignment.java
github-actions / GitHub Autograding Action
Partially covered line
Line 69 is only partially covered, 2 branches are missing