PMD Results
The following document contains the results of PMD 7.17.0.
Violations By Priority
Priority 1
fr/univtln/bruno/samples/java101/tp1/factory/PersonSingleton.java
| Rule | Violation | Line |
|---|---|---|
| FieldNamingConventions | The static field name 'INSTANCE' doesn't match '[a-z][a-zA-Z0-9]*' | 35 |
| AvoidThrowingNullPointerException | Avoid throwing null pointer exceptions. | 57 |
| AvoidThrowingNullPointerException | Avoid throwing null pointer exceptions. | 58 |
fr/univtln/bruno/samples/java101/tp1/lombok/PersonLombokSecure.java
| Rule | Violation | Line |
|---|---|---|
| ClassWithOnlyPrivateConstructorsShouldBeFinal | This class has only private constructors and may be final | 36 |
Priority 3
fr/univtln/bruno/samples/java101/tp1/builder/AddressWithBuilder.java
| Rule | Violation | Line |
|---|---|---|
| AvoidFieldNameMatchingMethodName | Field street has the same name as a method | 13 |
| AvoidFieldNameMatchingMethodName | Field city has the same name as a method | 14 |
| AvoidFieldNameMatchingMethodName | Field zipCode has the same name as a method | 15 |
| MethodArgumentCouldBeFinal | Parameter 'b' is not assigned and could be declared final | 21 |
| AvoidFieldNameMatchingMethodName | Field street has the same name as a method | 67 |
| AvoidFieldNameMatchingMethodName | Field city has the same name as a method | 68 |
| AvoidFieldNameMatchingMethodName | Field zipCode has the same name as a method | 69 |
| UnnecessaryConstructor | Avoid unnecessary constructors - the compiler will generate these for you | 74 |
| MethodArgumentCouldBeFinal | Parameter 's' is not assigned and could be declared final | 83 |
| MethodArgumentCouldBeFinal | Parameter 'c' is not assigned and could be declared final | 90 |
| MethodArgumentCouldBeFinal | Parameter 'z' is not assigned and could be declared final | 97 |
fr/univtln/bruno/samples/java101/tp1/factory/PersonSingleton.java
| Rule | Violation | Line |
|---|---|---|
| MethodArgumentCouldBeFinal | Parameter 'firstName' is not assigned and could be declared final | 38 |
| MethodArgumentCouldBeFinal | Parameter 'lastName' is not assigned and could be declared final | 38 |
| MethodArgumentCouldBeFinal | Parameter 'age' is not assigned and could be declared final | 38 |
| MethodArgumentCouldBeFinal | Parameter 'firstName' is not assigned and could be declared final | 56 |
| MethodArgumentCouldBeFinal | Parameter 'lastName' is not assigned and could be declared final | 56 |
| MethodArgumentCouldBeFinal | Parameter 'age' is not assigned and could be declared final | 56 |
| ControlStatementBraces | This statement should have braces | 57 |
| ControlStatementBraces | This statement should have braces | 58 |
| ControlStatementBraces | This statement should have braces | 59 |
fr/univtln/bruno/samples/java101/tp1/factory/PersonWithFactory.java
| Rule | Violation | Line |
|---|---|---|
| MethodArgumentCouldBeFinal | Parameter 'firstName' is not assigned and could be declared final | 21 |
| MethodArgumentCouldBeFinal | Parameter 'lastName' is not assigned and could be declared final | 21 |
| MethodArgumentCouldBeFinal | Parameter 'age' is not assigned and could be declared final | 21 |
| ControlStatementBraces | This statement should have braces | 24 |
| ShortMethodName | Avoid using short method names | 36 |
| MethodArgumentCouldBeFinal | Parameter 'firstName' is not assigned and could be declared final | 36 |
| MethodArgumentCouldBeFinal | Parameter 'lastName' is not assigned and could be declared final | 36 |
| MethodArgumentCouldBeFinal | Parameter 'age' is not assigned and could be declared final | 36 |
| LocalVariableCouldBeFinal | Local variable 'fn' could be declared final | 37 |
| LocalVariableCouldBeFinal | Local variable 'ln' could be declared final | 38 |
| ControlStatementBraces | This statement should have braces | 39 |
| MethodArgumentCouldBeFinal | Parameter 'firstName' is not assigned and could be declared final | 59 |
| MethodArgumentCouldBeFinal | Parameter 'lastName' is not assigned and could be declared final | 59 |
| MethodArgumentCouldBeFinal | Parameter 'o' is not assigned and could be declared final | 90 |
| ControlStatementBraces | This statement should have braces | 91 |
| ControlStatementBraces | This statement should have braces | 92 |
| LocalVariableCouldBeFinal | Local variable 'that' could be declared final | 93 |
fr/univtln/bruno/samples/java101/tp1/immutable/PersonImmutable.java
| Rule | Violation | Line |
|---|---|---|
| MethodArgumentCouldBeFinal | Parameter 'firstName' is not assigned and could be declared final | 41 |
| MethodArgumentCouldBeFinal | Parameter 'lastName' is not assigned and could be declared final | 41 |
| MethodArgumentCouldBeFinal | Parameter 'age' is not assigned and could be declared final | 41 |
| MethodArgumentCouldBeFinal | Parameter 'o' is not assigned and could be declared final | 72 |
| ControlStatementBraces | This statement should have braces | 73 |
| ControlStatementBraces | This statement should have braces | 74 |
| LocalVariableCouldBeFinal | Local variable 'that' could be declared final | 75 |
| AvoidFieldNameMatchingMethodName | Field firstName has the same name as a method | 97 |
| AvoidFieldNameMatchingMethodName | Field lastName has the same name as a method | 98 |
| AvoidFieldNameMatchingMethodName | Field age has the same name as a method | 99 |
| UnnecessaryConstructor | Avoid unnecessary constructors - the compiler will generate these for you | 104 |
| MethodArgumentCouldBeFinal | Parameter 'f' is not assigned and could be declared final | 114 |
| MethodArgumentCouldBeFinal | Parameter 'l' is not assigned and could be declared final | 122 |
| MethodArgumentCouldBeFinal | Parameter 'a' is not assigned and could be declared final | 130 |
| ControlStatementBraces | This statement should have braces | 143 |
| LocalVariableCouldBeFinal | Local variable 'fn' could be declared final | 144 |
| LocalVariableCouldBeFinal | Local variable 'ln' could be declared final | 145 |
fr/univtln/bruno/samples/java101/tp1/immutable/PersonValueObject.java
| Rule | Violation | Line |
|---|---|---|
| ControlStatementBraces | This statement should have braces | 41 |
| ShortMethodName | Avoid using short method names | 55 |
| MethodArgumentCouldBeFinal | Parameter 'id' is not assigned and could be declared final | 55 |
| MethodArgumentCouldBeFinal | Parameter 'name' is not assigned and could be declared final | 55 |
| MethodArgumentCouldBeFinal | Parameter 'email' is not assigned and could be declared final | 55 |
| MethodArgumentCouldBeFinal | Parameter 'age' is not assigned and could be declared final | 55 |
| MethodArgumentCouldBeFinal | Parameter 'newName' is not assigned and could be declared final | 66 |
| MethodArgumentCouldBeFinal | Parameter 'newEmail' is not assigned and could be declared final | 77 |
| MethodArgumentCouldBeFinal | Parameter 'newAge' is not assigned and could be declared final | 88 |
| ControlStatementBraces | This statement should have braces | 89 |
| MethodArgumentCouldBeFinal | Parameter 'other' is not assigned and could be declared final | 115 |
| ControlStatementBraces | This statement should have braces | 116 |
| LocalVariableCouldBeFinal | Local variable 'mergedName' could be declared final | 117 |
| LocalVariableCouldBeFinal | Local variable 'mergedEmail' could be declared final | 118 |
| LocalVariableCouldBeFinal | Local variable 'mergedAge' could be declared final | 119 |
fr/univtln/bruno/samples/java101/tp1/lombok/PersonLombokSecure.java
| Rule | Violation | Line |
|---|---|---|
| ShortMethodName | Avoid using short method names | 56 |
| MethodArgumentCouldBeFinal | Parameter 'firstName' is not assigned and could be declared final | 56 |
| MethodArgumentCouldBeFinal | Parameter 'lastName' is not assigned and could be declared final | 56 |
| MethodArgumentCouldBeFinal | Parameter 'age' is not assigned and could be declared final | 56 |
| ControlStatementBraces | This statement should have braces | 59 |
fr/univtln/bruno/samples/java101/tp1/builder/AddressWithBuilderTest.java
| Rule | Violation | Line |
|---|---|---|
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 18 |
| LocalVariableCouldBeFinal | Local variable 'a' could be declared final | 19 |
fr/univtln/bruno/samples/java101/tp1/factory/PersonWithFactoryTest.java
| Rule | Violation | Line |
|---|---|---|
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 16 |
| LocalVariableCouldBeFinal | Local variable 'p' could be declared final | 17 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 26 |
| LocalVariableCouldBeFinal | Local variable 't' could be declared final | 27 |
fr/univtln/bruno/samples/java101/tp1/immutable/PersonImmutableTest.java
| Rule | Violation | Line |
|---|---|---|
| LocalVariableCouldBeFinal | Local variable 'p' could be declared final | 16 |
fr/univtln/bruno/samples/java101/tp1/immutable/PersonValueObjectTest.java
| Rule | Violation | Line |
|---|---|---|
| TooManyMethods | This class has too many methods, consider refactoring it. | 10–188 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 16 |
| LocalVariableCouldBeFinal | Local variable 'p' could be declared final | 17 |
| AvoidDuplicateLiterals | The String literal "id1" appears 16 times in this file; the first occurrence is on line 17 | 17 |
| AvoidDuplicateLiterals | The String literal "Alice" appears 16 times in this file; the first occurrence is on line 17 | 17 |
| AvoidDuplicateLiterals | The String literal "alice@example.com" appears 16 times in this file; the first occurrence is on line 17 | 17 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 28 |
| LocalVariableCouldBeFinal | Local variable 'p' could be declared final | 29 |
| AvoidDuplicateLiterals | The String literal "Bob" appears 4 times in this file; the first occurrence is on line 29 | 29 |
| AvoidDuplicateLiterals | The String literal "bob@example.com" appears 4 times in this file; the first occurrence is on line 29 | 29 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 80 |
| LocalVariableCouldBeFinal | Local variable 'original' could be declared final | 81 |
| LocalVariableCouldBeFinal | Local variable 'updated' could be declared final | 82 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 95 |
| LocalVariableCouldBeFinal | Local variable 'original' could be declared final | 96 |
| LocalVariableCouldBeFinal | Local variable 'updated' could be declared final | 97 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 110 |
| LocalVariableCouldBeFinal | Local variable 'original' could be declared final | 111 |
| LocalVariableCouldBeFinal | Local variable 'updated' could be declared final | 112 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 125 |
| LocalVariableCouldBeFinal | Local variable 'original' could be declared final | 126 |
| LocalVariableCouldBeFinal | Local variable 'incremented' could be declared final | 127 |
| LocalVariableCouldBeFinal | Local variable 'original' could be declared final | 138 |
| LocalVariableCouldBeFinal | Local variable 'merged' could be declared final | 139 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 149 |
| LocalVariableCouldBeFinal | Local variable 'base' could be declared final | 150 |
| LocalVariableCouldBeFinal | Local variable 'other' could be declared final | 151 |
| LocalVariableCouldBeFinal | Local variable 'merged' could be declared final | 153 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 167 |
| LocalVariableCouldBeFinal | Local variable 'p1' could be declared final | 168 |
| LocalVariableCouldBeFinal | Local variable 'p2' could be declared final | 169 |
| LinguisticNaming | Linguistics Antipattern - The transform method 'toStringIncludesAllComponents' should not return void linguistically | 179 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 179 |
| LocalVariableCouldBeFinal | Local variable 'p' could be declared final | 180 |
| LocalVariableCouldBeFinal | Local variable 'str' could be declared final | 181 |
fr/univtln/bruno/samples/java101/tp1/lombok/PersonLombokTest.java
| Rule | Violation | Line |
|---|---|---|
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 18 |
| LocalVariableCouldBeFinal | Local variable 'p' could be declared final | 19 |
Files
fr/univtln/bruno/samples/java101/tp1/builder/AddressWithBuilder.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| AvoidFieldNameMatchingMethodName | Field street has the same name as a method | 3 | 13 |
| AvoidFieldNameMatchingMethodName | Field city has the same name as a method | 3 | 14 |
| AvoidFieldNameMatchingMethodName | Field zipCode has the same name as a method | 3 | 15 |
| MethodArgumentCouldBeFinal | Parameter 'b' is not assigned and could be declared final | 3 | 21 |
| AvoidFieldNameMatchingMethodName | Field street has the same name as a method | 3 | 67 |
| AvoidFieldNameMatchingMethodName | Field city has the same name as a method | 3 | 68 |
| AvoidFieldNameMatchingMethodName | Field zipCode has the same name as a method | 3 | 69 |
| UnnecessaryConstructor | Avoid unnecessary constructors - the compiler will generate these for you | 3 | 74 |
| MethodArgumentCouldBeFinal | Parameter 's' is not assigned and could be declared final | 3 | 83 |
| MethodArgumentCouldBeFinal | Parameter 'c' is not assigned and could be declared final | 3 | 90 |
| MethodArgumentCouldBeFinal | Parameter 'z' is not assigned and could be declared final | 3 | 97 |
fr/univtln/bruno/samples/java101/tp1/factory/PersonSingleton.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| FieldNamingConventions | The static field name 'INSTANCE' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 35 |
| MethodArgumentCouldBeFinal | Parameter 'firstName' is not assigned and could be declared final | 3 | 38 |
| MethodArgumentCouldBeFinal | Parameter 'lastName' is not assigned and could be declared final | 3 | 38 |
| MethodArgumentCouldBeFinal | Parameter 'age' is not assigned and could be declared final | 3 | 38 |
| MethodArgumentCouldBeFinal | Parameter 'firstName' is not assigned and could be declared final | 3 | 56 |
| MethodArgumentCouldBeFinal | Parameter 'lastName' is not assigned and could be declared final | 3 | 56 |
| MethodArgumentCouldBeFinal | Parameter 'age' is not assigned and could be declared final | 3 | 56 |
| AvoidThrowingNullPointerException | Avoid throwing null pointer exceptions. | 1 | 57 |
| ControlStatementBraces | This statement should have braces | 3 | 57 |
| AvoidThrowingNullPointerException | Avoid throwing null pointer exceptions. | 1 | 58 |
| ControlStatementBraces | This statement should have braces | 3 | 58 |
| ControlStatementBraces | This statement should have braces | 3 | 59 |
fr/univtln/bruno/samples/java101/tp1/factory/PersonWithFactory.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| MethodArgumentCouldBeFinal | Parameter 'firstName' is not assigned and could be declared final | 3 | 21 |
| MethodArgumentCouldBeFinal | Parameter 'lastName' is not assigned and could be declared final | 3 | 21 |
| MethodArgumentCouldBeFinal | Parameter 'age' is not assigned and could be declared final | 3 | 21 |
| ControlStatementBraces | This statement should have braces | 3 | 24 |
| ShortMethodName | Avoid using short method names | 3 | 36 |
| MethodArgumentCouldBeFinal | Parameter 'firstName' is not assigned and could be declared final | 3 | 36 |
| MethodArgumentCouldBeFinal | Parameter 'lastName' is not assigned and could be declared final | 3 | 36 |
| MethodArgumentCouldBeFinal | Parameter 'age' is not assigned and could be declared final | 3 | 36 |
| LocalVariableCouldBeFinal | Local variable 'fn' could be declared final | 3 | 37 |
| LocalVariableCouldBeFinal | Local variable 'ln' could be declared final | 3 | 38 |
| ControlStatementBraces | This statement should have braces | 3 | 39 |
| MethodArgumentCouldBeFinal | Parameter 'firstName' is not assigned and could be declared final | 3 | 59 |
| MethodArgumentCouldBeFinal | Parameter 'lastName' is not assigned and could be declared final | 3 | 59 |
| MethodArgumentCouldBeFinal | Parameter 'o' is not assigned and could be declared final | 3 | 90 |
| ControlStatementBraces | This statement should have braces | 3 | 91 |
| ControlStatementBraces | This statement should have braces | 3 | 92 |
| LocalVariableCouldBeFinal | Local variable 'that' could be declared final | 3 | 93 |
fr/univtln/bruno/samples/java101/tp1/immutable/PersonImmutable.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| MethodArgumentCouldBeFinal | Parameter 'firstName' is not assigned and could be declared final | 3 | 41 |
| MethodArgumentCouldBeFinal | Parameter 'lastName' is not assigned and could be declared final | 3 | 41 |
| MethodArgumentCouldBeFinal | Parameter 'age' is not assigned and could be declared final | 3 | 41 |
| MethodArgumentCouldBeFinal | Parameter 'o' is not assigned and could be declared final | 3 | 72 |
| ControlStatementBraces | This statement should have braces | 3 | 73 |
| ControlStatementBraces | This statement should have braces | 3 | 74 |
| LocalVariableCouldBeFinal | Local variable 'that' could be declared final | 3 | 75 |
| AvoidFieldNameMatchingMethodName | Field firstName has the same name as a method | 3 | 97 |
| AvoidFieldNameMatchingMethodName | Field lastName has the same name as a method | 3 | 98 |
| AvoidFieldNameMatchingMethodName | Field age has the same name as a method | 3 | 99 |
| UnnecessaryConstructor | Avoid unnecessary constructors - the compiler will generate these for you | 3 | 104 |
| MethodArgumentCouldBeFinal | Parameter 'f' is not assigned and could be declared final | 3 | 114 |
| MethodArgumentCouldBeFinal | Parameter 'l' is not assigned and could be declared final | 3 | 122 |
| MethodArgumentCouldBeFinal | Parameter 'a' is not assigned and could be declared final | 3 | 130 |
| ControlStatementBraces | This statement should have braces | 3 | 143 |
| LocalVariableCouldBeFinal | Local variable 'fn' could be declared final | 3 | 144 |
| LocalVariableCouldBeFinal | Local variable 'ln' could be declared final | 3 | 145 |
fr/univtln/bruno/samples/java101/tp1/immutable/PersonValueObject.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| ControlStatementBraces | This statement should have braces | 3 | 41 |
| ShortMethodName | Avoid using short method names | 3 | 55 |
| MethodArgumentCouldBeFinal | Parameter 'id' is not assigned and could be declared final | 3 | 55 |
| MethodArgumentCouldBeFinal | Parameter 'name' is not assigned and could be declared final | 3 | 55 |
| MethodArgumentCouldBeFinal | Parameter 'email' is not assigned and could be declared final | 3 | 55 |
| MethodArgumentCouldBeFinal | Parameter 'age' is not assigned and could be declared final | 3 | 55 |
| MethodArgumentCouldBeFinal | Parameter 'newName' is not assigned and could be declared final | 3 | 66 |
| MethodArgumentCouldBeFinal | Parameter 'newEmail' is not assigned and could be declared final | 3 | 77 |
| MethodArgumentCouldBeFinal | Parameter 'newAge' is not assigned and could be declared final | 3 | 88 |
| ControlStatementBraces | This statement should have braces | 3 | 89 |
| MethodArgumentCouldBeFinal | Parameter 'other' is not assigned and could be declared final | 3 | 115 |
| ControlStatementBraces | This statement should have braces | 3 | 116 |
| LocalVariableCouldBeFinal | Local variable 'mergedName' could be declared final | 3 | 117 |
| LocalVariableCouldBeFinal | Local variable 'mergedEmail' could be declared final | 3 | 118 |
| LocalVariableCouldBeFinal | Local variable 'mergedAge' could be declared final | 3 | 119 |
fr/univtln/bruno/samples/java101/tp1/lombok/PersonLombokSecure.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| ClassWithOnlyPrivateConstructorsShouldBeFinal | This class has only private constructors and may be final | 1 | 36 |
| ShortMethodName | Avoid using short method names | 3 | 56 |
| MethodArgumentCouldBeFinal | Parameter 'firstName' is not assigned and could be declared final | 3 | 56 |
| MethodArgumentCouldBeFinal | Parameter 'lastName' is not assigned and could be declared final | 3 | 56 |
| MethodArgumentCouldBeFinal | Parameter 'age' is not assigned and could be declared final | 3 | 56 |
| ControlStatementBraces | This statement should have braces | 3 | 59 |
fr/univtln/bruno/samples/java101/tp1/builder/AddressWithBuilderTest.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 3 | 18 |
| LocalVariableCouldBeFinal | Local variable 'a' could be declared final | 3 | 19 |
fr/univtln/bruno/samples/java101/tp1/factory/PersonWithFactoryTest.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 3 | 16 |
| LocalVariableCouldBeFinal | Local variable 'p' could be declared final | 3 | 17 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 3 | 26 |
| LocalVariableCouldBeFinal | Local variable 't' could be declared final | 3 | 27 |
fr/univtln/bruno/samples/java101/tp1/immutable/PersonImmutableTest.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| LocalVariableCouldBeFinal | Local variable 'p' could be declared final | 3 | 16 |
fr/univtln/bruno/samples/java101/tp1/immutable/PersonValueObjectTest.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 10–188 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 3 | 16 |
| LocalVariableCouldBeFinal | Local variable 'p' could be declared final | 3 | 17 |
| AvoidDuplicateLiterals | The String literal "id1" appears 16 times in this file; the first occurrence is on line 17 | 3 | 17 |
| AvoidDuplicateLiterals | The String literal "Alice" appears 16 times in this file; the first occurrence is on line 17 | 3 | 17 |
| AvoidDuplicateLiterals | The String literal "alice@example.com" appears 16 times in this file; the first occurrence is on line 17 | 3 | 17 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 3 | 28 |
| LocalVariableCouldBeFinal | Local variable 'p' could be declared final | 3 | 29 |
| AvoidDuplicateLiterals | The String literal "Bob" appears 4 times in this file; the first occurrence is on line 29 | 3 | 29 |
| AvoidDuplicateLiterals | The String literal "bob@example.com" appears 4 times in this file; the first occurrence is on line 29 | 3 | 29 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 3 | 80 |
| LocalVariableCouldBeFinal | Local variable 'original' could be declared final | 3 | 81 |
| LocalVariableCouldBeFinal | Local variable 'updated' could be declared final | 3 | 82 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 3 | 95 |
| LocalVariableCouldBeFinal | Local variable 'original' could be declared final | 3 | 96 |
| LocalVariableCouldBeFinal | Local variable 'updated' could be declared final | 3 | 97 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 3 | 110 |
| LocalVariableCouldBeFinal | Local variable 'original' could be declared final | 3 | 111 |
| LocalVariableCouldBeFinal | Local variable 'updated' could be declared final | 3 | 112 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 3 | 125 |
| LocalVariableCouldBeFinal | Local variable 'original' could be declared final | 3 | 126 |
| LocalVariableCouldBeFinal | Local variable 'incremented' could be declared final | 3 | 127 |
| LocalVariableCouldBeFinal | Local variable 'original' could be declared final | 3 | 138 |
| LocalVariableCouldBeFinal | Local variable 'merged' could be declared final | 3 | 139 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 3 | 149 |
| LocalVariableCouldBeFinal | Local variable 'base' could be declared final | 3 | 150 |
| LocalVariableCouldBeFinal | Local variable 'other' could be declared final | 3 | 151 |
| LocalVariableCouldBeFinal | Local variable 'merged' could be declared final | 3 | 153 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 3 | 167 |
| LocalVariableCouldBeFinal | Local variable 'p1' could be declared final | 3 | 168 |
| LocalVariableCouldBeFinal | Local variable 'p2' could be declared final | 3 | 169 |
| LinguisticNaming | Linguistics Antipattern - The transform method 'toStringIncludesAllComponents' should not return void linguistically | 3 | 179 |
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 3 | 179 |
| LocalVariableCouldBeFinal | Local variable 'p' could be declared final | 3 | 180 |
| LocalVariableCouldBeFinal | Local variable 'str' could be declared final | 3 | 181 |
fr/univtln/bruno/samples/java101/tp1/lombok/PersonLombokTest.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnitTestContainsTooManyAsserts | Unit tests should not contain more than 1 assert(s). | 3 | 18 |
| LocalVariableCouldBeFinal | Local variable 'p' could be declared final | 3 | 19 |
