Fork me on GitHub

Résultats PMD

Le document suivant contient les résultats de PMD 5.3.5.

Fichiers

fr/paris/lutece/plugins/address/service/AddressServiceProvider.java

Violation Ligne
Avoid variables with short names like id 96
Avoid variables with short names like id 123

fr/paris/lutece/plugins/address/service/DummyAddressService.java

Violation Ligne
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 101
Avoid variables with short names like jc 111
Avoid variables with short names like u 117
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 179
Avoid variables with short names like jc 189
Avoid variables with short names like u 195
Avoid variables with short names like id 245
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 259
Avoid variables with short names like jc 269
Avoid variables with short names like u 275
String.indexOf(char) is faster than String.indexOf(String). 293
String.indexOf(char) is faster than String.indexOf(String). 296
String.indexOf(char) is faster than String.indexOf(String). 297
Avoid variables with short names like id 326
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 339
Avoid variables with short names like jc 349
Avoid variables with short names like u 355
A method/constructor shouldnt explicitly throw java.lang.Exception 397
A method/constructor shouldnt explicitly throw java.lang.Exception 397
Avoid variables with short names like fc 401
Avoid variables with short names like bb 403

fr/paris/lutece/plugins/address/service/IAddressService.java

Violation Ligne
Avoid variables with short names like id 90
Avoid modifiers which are implied by the context 102103
Avoid variables with short names like id 113

fr/paris/lutece/plugins/address/service/WebServiceAddressService.java

Violation Ligne
Possible God class (WMC=69, ATFD=70, TCC=0.043478260869565216) 34817
The class 'WebServiceAddressService' has a Standard Cyclomatic Complexity of 3 (Highest = 15). 73817
The class 'WebServiceAddressService' has a Modified Cyclomatic Complexity of 3 (Highest = 15). 73817
The class 'WebServiceAddressService' has a Cyclomatic Complexity of 3 (Highest = 17). 73817
Avoid variables with short names like id 128
Avoid variables with short names like id 188
Avoid variables with short names like jc 233
Avoid variables with short names like u 239
The method 'searchAddress' has a Standard Cyclomatic Complexity of 12. 293419
Avoid really long methods. 293419
The method 'searchAddress' has a Cyclomatic Complexity of 14. 293419
The method searchAddress() has an NPath complexity of 270 293419
The method 'searchAddress' has a Modified Cyclomatic Complexity of 12. 293419
Avoid variables with short names like jc 345
Avoid variables with short names like u 351
The method 'searchAddress' has a Modified Cyclomatic Complexity of 15. 445591
The method 'searchAddress' has a Standard Cyclomatic Complexity of 15. 445591
Avoid really long methods. 445591
The method searchAddress() has an NPath complexity of 1026 445591
The method 'searchAddress' has a Cyclomatic Complexity of 17. 445591
Avoid variables with short names like jc 497
Avoid variables with short names like u 503
String.indexOf(char) is faster than String.indexOf(String). 559
Avoid using Literals in Conditional Statements 560
String.indexOf(char) is faster than String.indexOf(String). 563
These nested if statements could be combined 580583
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 727
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 741
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 754
Private field '_idAdresse' could be made final; it is only initialized in the declaration or constructor. 764
Private field '_labelAdresse' could be made final; it is only initialized in the declaration or constructor. 765
Avoid variables with short names like o 810

fr/paris/lutece/plugins/address/util/LibraryAddressUtils.java

Violation Ligne
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 204
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 220
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 221