PMD Results
The following document contains the results of PMD 7.17.0.
Violations By Priority
Priority 2
fr/univtln/bruno/samples/java101/tp2/api/Drivable.java
| Rule | Violation | Line |
|---|---|---|
| ImplicitFunctionalInterface | Annotate this interface with @FunctionalInterface or with @SuppressWarnings("PMD.ImplicitFunctionalInterface") to clarify your intent. | 7 |
fr/univtln/bruno/samples/java101/tp2/api/Electric.java
| Rule | Violation | Line |
|---|---|---|
| ImplicitFunctionalInterface | Annotate this interface with @FunctionalInterface or with @SuppressWarnings("PMD.ImplicitFunctionalInterface") to clarify your intent. | 7 |
fr/univtln/bruno/samples/java101/tp2/app/DemoVehicle.java
| Rule | Violation | Line |
|---|---|---|
| SystemPrintln | Usage of System.out/err | 23 |
| SystemPrintln | Usage of System.out/err | 26 |
| SystemPrintln | Usage of System.out/err | 27 |
| SystemPrintln | Usage of System.out/err | 29 |
| SystemPrintln | Usage of System.out/err | 30 |
| SystemPrintln | Usage of System.out/err | 31 |
| SystemPrintln | Usage of System.out/err | 32 |
| SystemPrintln | Usage of System.out/err | 34 |
| SystemPrintln | Usage of System.out/err | 37 |
| SystemPrintln | Usage of System.out/err | 40 |
| SystemPrintln | Usage of System.out/err | 42 |
| SystemPrintln | Usage of System.out/err | 45 |
| SystemPrintln | Usage of System.out/err | 46 |
| SystemPrintln | Usage of System.out/err | 48 |
| SystemPrintln | Usage of System.out/err | 51 |
| SystemPrintln | Usage of System.out/err | 53 |
| SystemPrintln | Usage of System.out/err | 55 |
| SystemPrintln | Usage of System.out/err | 58 |
Priority 3
fr/univtln/bruno/samples/java101/tp2/app/DemoVehicle.java
| Rule | Violation | Line |
|---|---|---|
| LocalVariableCouldBeFinal | Local variable 'v1' could be declared final | 24 |
| LocalVariableCouldBeFinal | Local variable 'v2' could be declared final | 25 |
| LocalVariableCouldBeFinal | Local variable 'c' could be declared final | 35 |
| LocalVariableCouldBeFinal | Local variable 'cCopy' could be declared final | 36 |
| LocalVariableCouldBeFinal | Local variable 'ec' could be declared final | 38 |
| LocalVariableCouldBeFinal | Local variable 'ecCopy' could be declared final | 39 |
| LocalVariableCouldBeFinal | Local variable 'svc' could be declared final | 43 |
| LocalVariableCouldBeFinal | Local variable 'alice' could be declared final | 44 |
| LocalVariableCouldBeFinal | Local variable 'maker' could be declared final | 49 |
| LocalVariableCouldBeFinal | Local variable 'prod' could be declared final | 50 |
fr/univtln/bruno/samples/java101/tp2/impl/Bike.java
| Rule | Violation | Line |
|---|---|---|
| MethodArgumentCouldBeFinal | Parameter 'id' is not assigned and could be declared final | 11 |
fr/univtln/bruno/samples/java101/tp2/impl/Car.java
| Rule | Violation | Line |
|---|---|---|
| MethodArgumentCouldBeFinal | Parameter 'id' is not assigned and could be declared final | 15 |
| MethodArgumentCouldBeFinal | Parameter 'id' is not assigned and could be declared final | 20 |
| MethodArgumentCouldBeFinal | Parameter 'make' is not assigned and could be declared final | 20 |
| MethodArgumentCouldBeFinal | Parameter 'model' is not assigned and could be declared final | 20 |
| MethodArgumentCouldBeFinal | Parameter 'year' is not assigned and could be declared final | 20 |
| ControlStatementBraces | This statement should have braces | 28 |
| MissingOverride | The method 'getFuelLevel()' is missing an @Override annotation. | 44 |
| MissingOverride | The method 'refuel(double)' is missing an @Override annotation. | 52 |
| MethodArgumentCouldBeFinal | Parameter 'percent' is not assigned and could be declared final | 52 |
| ControlStatementBraces | This statement should have braces | 62 |
| LocalVariableCouldBeFinal | Local variable 'c' could be declared final | 80 |
fr/univtln/bruno/samples/java101/tp2/impl/ElectricBike.java
| Rule | Violation | Line |
|---|---|---|
| MethodArgumentCouldBeFinal | Parameter 'id' is not assigned and could be declared final | 16 |
| MethodArgumentCouldBeFinal | Parameter 'id' is not assigned and could be declared final | 21 |
| MethodArgumentCouldBeFinal | Parameter 'make' is not assigned and could be declared final | 21 |
| MethodArgumentCouldBeFinal | Parameter 'model' is not assigned and could be declared final | 21 |
| MethodArgumentCouldBeFinal | Parameter 'year' is not assigned and could be declared final | 21 |
| ControlStatementBraces | This statement should have braces | 29 |
| ControlStatementBraces | This statement should have braces | 43 |
| MissingOverride | The method 'getBatteryLevel()' is missing an @Override annotation. | 58 |
| LocalVariableCouldBeFinal | Local variable 'eb' could be declared final | 76 |
fr/univtln/bruno/samples/java101/tp2/impl/ElectricCar.java
| Rule | Violation | Line |
|---|---|---|
| MethodArgumentCouldBeFinal | Parameter 'id' is not assigned and could be declared final | 15 |
| MethodArgumentCouldBeFinal | Parameter 'id' is not assigned and could be declared final | 20 |
| MethodArgumentCouldBeFinal | Parameter 'make' is not assigned and could be declared final | 20 |
| MethodArgumentCouldBeFinal | Parameter 'model' is not assigned and could be declared final | 20 |
| MethodArgumentCouldBeFinal | Parameter 'year' is not assigned and could be declared final | 20 |
| ControlStatementBraces | This statement should have braces | 35 |
| ControlStatementBraces | This statement should have braces | 49 |
| MissingOverride | The method 'getBatteryLevel()' is missing an @Override annotation. | 57 |
| LocalVariableCouldBeFinal | Local variable 'ec' could be declared final | 75 |
fr/univtln/bruno/samples/java101/tp2/impl/ServiceCar.java
| Rule | Violation | Line |
|---|---|---|
| MethodArgumentCouldBeFinal | Parameter 'id' is not assigned and could be declared final | 12 |
| LocalVariableCouldBeFinal | Local variable 'm' could be declared final | 24 |
| LocalVariableCouldBeFinal | Local variable 'd' could be declared final | 25 |
fr/univtln/bruno/samples/java101/tp2/model/MotorVehicle.java
| Rule | Violation | Line |
|---|---|---|
| MethodArgumentCouldBeFinal | Parameter 'id' is not assigned and could be declared final | 10 |
| MethodArgumentCouldBeFinal | Parameter 'id' is not assigned and could be declared final | 14 |
| MethodArgumentCouldBeFinal | Parameter 'make' is not assigned and could be declared final | 14 |
| MethodArgumentCouldBeFinal | Parameter 'model' is not assigned and could be declared final | 14 |
| MethodArgumentCouldBeFinal | Parameter 'year' is not assigned and could be declared final | 14 |
fr/univtln/bruno/samples/java101/tp2/model/Vehicle.java
| Rule | Violation | Line |
|---|---|---|
| MethodArgumentCouldBeFinal | Parameter 'id' is not assigned and could be declared final | 14 |
| MethodArgumentCouldBeFinal | Parameter 'id' is not assigned and could be declared final | 18 |
| MethodArgumentCouldBeFinal | Parameter 'make' is not assigned and could be declared final | 18 |
| MethodArgumentCouldBeFinal | Parameter 'model' is not assigned and could be declared final | 18 |
| MethodArgumentCouldBeFinal | Parameter 'year' is not assigned and could be declared final | 18 |
| LocalVariableCouldBeFinal | Local variable 'sb' could be declared final | 61 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 62 |
| ControlStatementBraces | This statement should have braces | 65 |
| ControlStatementBraces | This statement should have braces | 66 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 66 |
| ControlStatementBraces | This statement should have braces | 67 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 67 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 68 |
fr/univtln/bruno/samples/java101/tp2/service/Driver.java
| Rule | Violation | Line |
|---|---|---|
| MethodArgumentCouldBeFinal | Parameter 'name' is not assigned and could be declared final | 13 |
| MethodArgumentCouldBeFinal | Parameter 'vehicle' is not assigned and could be declared final | 13 |
fr/univtln/bruno/samples/java101/tp2/service/Manufacturer.java
| Rule | Violation | Line |
|---|---|---|
| UnusedPrivateField | Avoid unused private fields such as 'name'. | 10 |
| ImmutableField | Field 'name' may be declared final | 10 |
| MethodArgumentCouldBeFinal | Parameter 'name' is not assigned and could be declared final | 12 |
| MethodArgumentCouldBeFinal | Parameter 'id' is not assigned and could be declared final | 22 |
fr/univtln/bruno/samples/java101/tp2/CompositionTest.java
| Rule | Violation | Line |
|---|---|---|
| JUnit5TestShouldBePackagePrivate | JUnit 5 tests should be package-private. | 10 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 13 |
| LocalVariableCouldBeFinal | Local variable 'm' could be declared final | 14 |
| LocalVariableCouldBeFinal | Local variable 'v' could be declared final | 15 |
fr/univtln/bruno/samples/java101/tp2/CovariantReturnTest.java
| Rule | Violation | Line |
|---|---|---|
| JUnit5TestShouldBePackagePrivate | JUnit 5 tests should be package-private. | 10 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 13 |
| LocalVariableCouldBeFinal | Local variable 'c' could be declared final | 14 |
| LocalVariableCouldBeFinal | Local variable 'c2' could be declared final | 15 |
| LocalVariableCouldBeFinal | Local variable 'e' could be declared final | 18 |
| LocalVariableCouldBeFinal | Local variable 'e2' could be declared final | 19 |
fr/univtln/bruno/samples/java101/tp2/DefaultMethodConflictTest.java
| Rule | Violation | Line |
|---|---|---|
| JUnit5TestShouldBePackagePrivate | JUnit 5 tests should be package-private. | 8 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 11 |
| LocalVariableCouldBeFinal | Local variable 'sc' could be declared final | 12 |
fr/univtln/bruno/samples/java101/tp2/DelegationTest.java
| Rule | Violation | Line |
|---|---|---|
| JUnit5TestShouldBePackagePrivate | JUnit 5 tests should be package-private. | 9 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 12 |
| LocalVariableCouldBeFinal | Local variable 'car' could be declared final | 13 |
| LocalVariableCouldBeFinal | Local variable 'driver' could be declared final | 14 |
fr/univtln/bruno/samples/java101/tp2/DescriptionTest.java
| Rule | Violation | Line |
|---|---|---|
| JUnit5TestShouldBePackagePrivate | JUnit 5 tests should be package-private. | 11 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 14 |
| LocalVariableCouldBeFinal | Local variable 'v1' could be declared final | 15 |
| LocalVariableCouldBeFinal | Local variable 'v2' could be declared final | 18 |
fr/univtln/bruno/samples/java101/tp2/InterfaceSegregationTest.java
| Rule | Violation | Line |
|---|---|---|
| JUnit5TestShouldBePackagePrivate | JUnit 5 tests should be package-private. | 20 |
| LocalVariableCouldBeFinal | Local variable 'car' could be declared final | 25 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 34 |
| LocalVariableCouldBeFinal | Local variable 'ec' could be declared final | 36 |
| LocalVariableCouldBeFinal | Local variable 'eb' could be declared final | 37 |
| LocalVariableCouldBeFinal | Local variable 'result1' could be declared final | 49 |
| LocalVariableCouldBeFinal | Local variable 'result2' could be declared final | 50 |
| LocalVariableCouldBeFinal | Local variable 'fleet' could be declared final | 60 |
| LocalVariableCouldBeFinal | Local variable 'vehicle' could be declared final | 75 |
| MethodArgumentCouldBeFinal | Parameter 'vehicle' is not assigned and could be declared final | 86 |
| MethodArgumentCouldBeFinal | Parameter 'minLevel' is not assigned and could be declared final | 86 |
fr/univtln/bruno/samples/java101/tp2/PolymorphismTest.java
| Rule | Violation | Line |
|---|---|---|
| JUnit5TestShouldBePackagePrivate | JUnit 5 tests should be package-private. | 10 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 13 |
| LocalVariableCouldBeFinal | Local variable 'v' could be declared final | 14 |
| LocalVariableCouldBeFinal | Local variable 'ec' could be declared final | 19 |
| LocalVariableCouldBeFinal | Local variable 'car' could be declared final | 25 |
| UnusedLocalVariable | Avoid unused local variables such as 'e'. | 27 |
fr/univtln/bruno/samples/java101/tp2/ResourceStateTest.java
| Rule | Violation | Line |
|---|---|---|
| JUnit5TestShouldBePackagePrivate | JUnit 5 tests should be package-private. | 9 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 12 |
| LocalVariableCouldBeFinal | Local variable 'car' could be declared final | 13 |
| LocalVariableCouldBeFinal | Local variable 'action' could be declared final | 18 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 32 |
| LocalVariableCouldBeFinal | Local variable 'ec' could be declared final | 33 |
| LocalVariableCouldBeFinal | Local variable 'action' could be declared final | 37 |
| LocalVariableCouldBeFinal | Local variable 'charge' could be declared final | 42 |
fr/univtln/bruno/samples/java101/tp2/StaticHidingTest.java
| Rule | Violation | Line |
|---|---|---|
| JUnit5TestShouldBePackagePrivate | JUnit 5 tests should be package-private. | 10 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 13 |
fr/univtln/bruno/samples/java101/tp2/VehicleTest.java
| Rule | Violation | Line |
|---|---|---|
| JUnit5TestShouldBePackagePrivate | JUnit 5 tests should be package-private. | 11 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 14 |
| LocalVariableCouldBeFinal | Local variable 'car' could be declared final | 15 |
| LocalVariableCouldBeFinal | Local variable 'bike' could be declared final | 16 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 23 |
| LocalVariableCouldBeFinal | Local variable 'ec' could be declared final | 24 |
Priority 4
fr/univtln/bruno/samples/java101/tp2/impl/Bike.java
| Rule | Violation | Line |
|---|---|---|
| ShortClassName | Avoid short class names like Bike | 9 |
fr/univtln/bruno/samples/java101/tp2/impl/Car.java
| Rule | Violation | Line |
|---|---|---|
| ShortClassName | Avoid short class names like Car | 11 |
Files
fr/univtln/bruno/samples/java101/tp2/api/Drivable.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| ImplicitFunctionalInterface | Annotate this interface with @FunctionalInterface or with @SuppressWarnings("PMD.ImplicitFunctionalInterface") to clarify your intent. | 2 | 7 |
fr/univtln/bruno/samples/java101/tp2/api/Electric.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| ImplicitFunctionalInterface | Annotate this interface with @FunctionalInterface or with @SuppressWarnings("PMD.ImplicitFunctionalInterface") to clarify your intent. | 2 | 7 |
fr/univtln/bruno/samples/java101/tp2/app/DemoVehicle.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| SystemPrintln | Usage of System.out/err | 2 | 23 |
| LocalVariableCouldBeFinal | Local variable 'v1' could be declared final | 3 | 24 |
| LocalVariableCouldBeFinal | Local variable 'v2' could be declared final | 3 | 25 |
| SystemPrintln | Usage of System.out/err | 2 | 26 |
| SystemPrintln | Usage of System.out/err | 2 | 27 |
| SystemPrintln | Usage of System.out/err | 2 | 29 |
| SystemPrintln | Usage of System.out/err | 2 | 30 |
| SystemPrintln | Usage of System.out/err | 2 | 31 |
| SystemPrintln | Usage of System.out/err | 2 | 32 |
| SystemPrintln | Usage of System.out/err | 2 | 34 |
| LocalVariableCouldBeFinal | Local variable 'c' could be declared final | 3 | 35 |
| LocalVariableCouldBeFinal | Local variable 'cCopy' could be declared final | 3 | 36 |
| SystemPrintln | Usage of System.out/err | 2 | 37 |
| LocalVariableCouldBeFinal | Local variable 'ec' could be declared final | 3 | 38 |
| LocalVariableCouldBeFinal | Local variable 'ecCopy' could be declared final | 3 | 39 |
| SystemPrintln | Usage of System.out/err | 2 | 40 |
| SystemPrintln | Usage of System.out/err | 2 | 42 |
| LocalVariableCouldBeFinal | Local variable 'svc' could be declared final | 3 | 43 |
| LocalVariableCouldBeFinal | Local variable 'alice' could be declared final | 3 | 44 |
| SystemPrintln | Usage of System.out/err | 2 | 45 |
| SystemPrintln | Usage of System.out/err | 2 | 46 |
| SystemPrintln | Usage of System.out/err | 2 | 48 |
| LocalVariableCouldBeFinal | Local variable 'maker' could be declared final | 3 | 49 |
| LocalVariableCouldBeFinal | Local variable 'prod' could be declared final | 3 | 50 |
| SystemPrintln | Usage of System.out/err | 2 | 51 |
| SystemPrintln | Usage of System.out/err | 2 | 53 |
| SystemPrintln | Usage of System.out/err | 2 | 55 |
| SystemPrintln | Usage of System.out/err | 2 | 58 |
fr/univtln/bruno/samples/java101/tp2/impl/Bike.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| ShortClassName | Avoid short class names like Bike | 4 | 9 |
| MethodArgumentCouldBeFinal | Parameter 'id' is not assigned and could be declared final | 3 | 11 |
fr/univtln/bruno/samples/java101/tp2/impl/Car.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| ShortClassName | Avoid short class names like Car | 4 | 11 |
| MethodArgumentCouldBeFinal | Parameter 'id' is not assigned and could be declared final | 3 | 15 |
| MethodArgumentCouldBeFinal | Parameter 'id' is not assigned and could be declared final | 3 | 20 |
| MethodArgumentCouldBeFinal | Parameter 'make' is not assigned and could be declared final | 3 | 20 |
| MethodArgumentCouldBeFinal | Parameter 'model' is not assigned and could be declared final | 3 | 20 |
| MethodArgumentCouldBeFinal | Parameter 'year' is not assigned and could be declared final | 3 | 20 |
| ControlStatementBraces | This statement should have braces | 3 | 28 |
| MissingOverride | The method 'getFuelLevel()' is missing an @Override annotation. | 3 | 44 |
| MissingOverride | The method 'refuel(double)' is missing an @Override annotation. | 3 | 52 |
| MethodArgumentCouldBeFinal | Parameter 'percent' is not assigned and could be declared final | 3 | 52 |
| ControlStatementBraces | This statement should have braces | 3 | 62 |
| LocalVariableCouldBeFinal | Local variable 'c' could be declared final | 3 | 80 |
fr/univtln/bruno/samples/java101/tp2/impl/ElectricBike.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| MethodArgumentCouldBeFinal | Parameter 'id' is not assigned and could be declared final | 3 | 16 |
| MethodArgumentCouldBeFinal | Parameter 'id' is not assigned and could be declared final | 3 | 21 |
| MethodArgumentCouldBeFinal | Parameter 'make' is not assigned and could be declared final | 3 | 21 |
| MethodArgumentCouldBeFinal | Parameter 'model' is not assigned and could be declared final | 3 | 21 |
| MethodArgumentCouldBeFinal | Parameter 'year' is not assigned and could be declared final | 3 | 21 |
| ControlStatementBraces | This statement should have braces | 3 | 29 |
| ControlStatementBraces | This statement should have braces | 3 | 43 |
| MissingOverride | The method 'getBatteryLevel()' is missing an @Override annotation. | 3 | 58 |
| LocalVariableCouldBeFinal | Local variable 'eb' could be declared final | 3 | 76 |
fr/univtln/bruno/samples/java101/tp2/impl/ElectricCar.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| MethodArgumentCouldBeFinal | Parameter 'id' is not assigned and could be declared final | 3 | 15 |
| MethodArgumentCouldBeFinal | Parameter 'id' is not assigned and could be declared final | 3 | 20 |
| MethodArgumentCouldBeFinal | Parameter 'make' is not assigned and could be declared final | 3 | 20 |
| MethodArgumentCouldBeFinal | Parameter 'model' is not assigned and could be declared final | 3 | 20 |
| MethodArgumentCouldBeFinal | Parameter 'year' is not assigned and could be declared final | 3 | 20 |
| ControlStatementBraces | This statement should have braces | 3 | 35 |
| ControlStatementBraces | This statement should have braces | 3 | 49 |
| MissingOverride | The method 'getBatteryLevel()' is missing an @Override annotation. | 3 | 57 |
| LocalVariableCouldBeFinal | Local variable 'ec' could be declared final | 3 | 75 |
fr/univtln/bruno/samples/java101/tp2/impl/ServiceCar.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| MethodArgumentCouldBeFinal | Parameter 'id' is not assigned and could be declared final | 3 | 12 |
| LocalVariableCouldBeFinal | Local variable 'm' could be declared final | 3 | 24 |
| LocalVariableCouldBeFinal | Local variable 'd' could be declared final | 3 | 25 |
fr/univtln/bruno/samples/java101/tp2/model/MotorVehicle.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| MethodArgumentCouldBeFinal | Parameter 'id' is not assigned and could be declared final | 3 | 10 |
| MethodArgumentCouldBeFinal | Parameter 'id' is not assigned and could be declared final | 3 | 14 |
| MethodArgumentCouldBeFinal | Parameter 'make' is not assigned and could be declared final | 3 | 14 |
| MethodArgumentCouldBeFinal | Parameter 'model' is not assigned and could be declared final | 3 | 14 |
| MethodArgumentCouldBeFinal | Parameter 'year' is not assigned and could be declared final | 3 | 14 |
fr/univtln/bruno/samples/java101/tp2/model/Vehicle.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| MethodArgumentCouldBeFinal | Parameter 'id' is not assigned and could be declared final | 3 | 14 |
| MethodArgumentCouldBeFinal | Parameter 'id' is not assigned and could be declared final | 3 | 18 |
| MethodArgumentCouldBeFinal | Parameter 'make' is not assigned and could be declared final | 3 | 18 |
| MethodArgumentCouldBeFinal | Parameter 'model' is not assigned and could be declared final | 3 | 18 |
| MethodArgumentCouldBeFinal | Parameter 'year' is not assigned and could be declared final | 3 | 18 |
| LocalVariableCouldBeFinal | Local variable 'sb' could be declared final | 3 | 61 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 62 |
| ControlStatementBraces | This statement should have braces | 3 | 65 |
| ControlStatementBraces | This statement should have braces | 3 | 66 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 66 |
| ControlStatementBraces | This statement should have braces | 3 | 67 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 67 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 68 |
fr/univtln/bruno/samples/java101/tp2/service/Driver.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| MethodArgumentCouldBeFinal | Parameter 'name' is not assigned and could be declared final | 3 | 13 |
| MethodArgumentCouldBeFinal | Parameter 'vehicle' is not assigned and could be declared final | 3 | 13 |
fr/univtln/bruno/samples/java101/tp2/service/Manufacturer.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnusedPrivateField | Avoid unused private fields such as 'name'. | 3 | 10 |
| ImmutableField | Field 'name' may be declared final | 3 | 10 |
| MethodArgumentCouldBeFinal | Parameter 'name' is not assigned and could be declared final | 3 | 12 |
| MethodArgumentCouldBeFinal | Parameter 'id' is not assigned and could be declared final | 3 | 22 |
fr/univtln/bruno/samples/java101/tp2/CompositionTest.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| JUnit5TestShouldBePackagePrivate | JUnit 5 tests should be package-private. | 3 | 10 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 3 | 13 |
| LocalVariableCouldBeFinal | Local variable 'm' could be declared final | 3 | 14 |
| LocalVariableCouldBeFinal | Local variable 'v' could be declared final | 3 | 15 |
fr/univtln/bruno/samples/java101/tp2/CovariantReturnTest.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| JUnit5TestShouldBePackagePrivate | JUnit 5 tests should be package-private. | 3 | 10 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 3 | 13 |
| LocalVariableCouldBeFinal | Local variable 'c' could be declared final | 3 | 14 |
| LocalVariableCouldBeFinal | Local variable 'c2' could be declared final | 3 | 15 |
| LocalVariableCouldBeFinal | Local variable 'e' could be declared final | 3 | 18 |
| LocalVariableCouldBeFinal | Local variable 'e2' could be declared final | 3 | 19 |
fr/univtln/bruno/samples/java101/tp2/DefaultMethodConflictTest.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| JUnit5TestShouldBePackagePrivate | JUnit 5 tests should be package-private. | 3 | 8 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 3 | 11 |
| LocalVariableCouldBeFinal | Local variable 'sc' could be declared final | 3 | 12 |
fr/univtln/bruno/samples/java101/tp2/DelegationTest.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| JUnit5TestShouldBePackagePrivate | JUnit 5 tests should be package-private. | 3 | 9 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 3 | 12 |
| LocalVariableCouldBeFinal | Local variable 'car' could be declared final | 3 | 13 |
| LocalVariableCouldBeFinal | Local variable 'driver' could be declared final | 3 | 14 |
fr/univtln/bruno/samples/java101/tp2/DescriptionTest.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| JUnit5TestShouldBePackagePrivate | JUnit 5 tests should be package-private. | 3 | 11 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 3 | 14 |
| LocalVariableCouldBeFinal | Local variable 'v1' could be declared final | 3 | 15 |
| LocalVariableCouldBeFinal | Local variable 'v2' could be declared final | 3 | 18 |
fr/univtln/bruno/samples/java101/tp2/InterfaceSegregationTest.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| JUnit5TestShouldBePackagePrivate | JUnit 5 tests should be package-private. | 3 | 20 |
| LocalVariableCouldBeFinal | Local variable 'car' could be declared final | 3 | 25 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 3 | 34 |
| LocalVariableCouldBeFinal | Local variable 'ec' could be declared final | 3 | 36 |
| LocalVariableCouldBeFinal | Local variable 'eb' could be declared final | 3 | 37 |
| LocalVariableCouldBeFinal | Local variable 'result1' could be declared final | 3 | 49 |
| LocalVariableCouldBeFinal | Local variable 'result2' could be declared final | 3 | 50 |
| LocalVariableCouldBeFinal | Local variable 'fleet' could be declared final | 3 | 60 |
| LocalVariableCouldBeFinal | Local variable 'vehicle' could be declared final | 3 | 75 |
| MethodArgumentCouldBeFinal | Parameter 'vehicle' is not assigned and could be declared final | 3 | 86 |
| MethodArgumentCouldBeFinal | Parameter 'minLevel' is not assigned and could be declared final | 3 | 86 |
fr/univtln/bruno/samples/java101/tp2/PolymorphismTest.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| JUnit5TestShouldBePackagePrivate | JUnit 5 tests should be package-private. | 3 | 10 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 3 | 13 |
| LocalVariableCouldBeFinal | Local variable 'v' could be declared final | 3 | 14 |
| LocalVariableCouldBeFinal | Local variable 'ec' could be declared final | 3 | 19 |
| LocalVariableCouldBeFinal | Local variable 'car' could be declared final | 3 | 25 |
| UnusedLocalVariable | Avoid unused local variables such as 'e'. | 3 | 27 |
fr/univtln/bruno/samples/java101/tp2/ResourceStateTest.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| JUnit5TestShouldBePackagePrivate | JUnit 5 tests should be package-private. | 3 | 9 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 3 | 12 |
| LocalVariableCouldBeFinal | Local variable 'car' could be declared final | 3 | 13 |
| LocalVariableCouldBeFinal | Local variable 'action' could be declared final | 3 | 18 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 3 | 32 |
| LocalVariableCouldBeFinal | Local variable 'ec' could be declared final | 3 | 33 |
| LocalVariableCouldBeFinal | Local variable 'action' could be declared final | 3 | 37 |
| LocalVariableCouldBeFinal | Local variable 'charge' could be declared final | 3 | 42 |
fr/univtln/bruno/samples/java101/tp2/StaticHidingTest.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| JUnit5TestShouldBePackagePrivate | JUnit 5 tests should be package-private. | 3 | 10 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 3 | 13 |
fr/univtln/bruno/samples/java101/tp2/VehicleTest.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| JUnit5TestShouldBePackagePrivate | JUnit 5 tests should be package-private. | 3 | 11 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 3 | 14 |
| LocalVariableCouldBeFinal | Local variable 'car' could be declared final | 3 | 15 |
| LocalVariableCouldBeFinal | Local variable 'bike' could be declared final | 3 | 16 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 3 | 23 |
| LocalVariableCouldBeFinal | Local variable 'ec' could be declared final | 3 | 24 |
