Fork me on GitHub

Résultats PMD

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

Fichiers

fr/paris/lutece/plugins/deployment/business/Action.java

Violation Ligne
Abstract classes should be named AbstractXXX 38201

fr/paris/lutece/plugins/deployment/business/ApplicationDAO.java

Violation Ligne
Assigning an Object to null is a code smell. Consider refactoring. 149
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 149

fr/paris/lutece/plugins/deployment/business/CommandResult.java

Violation Ligne
The field name indicates a constant but its modifiers do not 53
Avoid using redundant field initializer for 'STATUS_ERROR' 53
The field name indicates a constant but its modifiers do not 54
The field name indicates a constant but its modifiers do not 55
Avoid using redundant field initializer for 'ERROR_TYPE_INFO' 55
The field name indicates a constant but its modifiers do not 56
StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time). 58
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 64

fr/paris/lutece/plugins/deployment/business/DefaultAction.java

Violation Ligne
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 64
Avoid variables with short names like jo 75
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead. 80
Deeply nested if..then statements are hard to read 8085

fr/paris/lutece/plugins/deployment/business/DeploymentAdminUserFieldListener.java

Violation Ligne
Document empty method 114115

fr/paris/lutece/plugins/deployment/business/DumpAction.java

Violation Ligne
Private field '_databaseService' could be made final; it is only initialized in the declaration or constructor. 59
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 90
Avoid variables with short names like jo 100
Deeply nested if..then statements are hard to read 102112
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead. 105

fr/paris/lutece/plugins/deployment/business/ExecuteAction.java

Violation Ligne
Avoid unused imports such as 'org.apache.commons.collections.CollectionUtils' 44
Avoid unused imports such as 'org.apache.commons.collections.CollectionUtils' 44
Avoid unused imports such as 'java.util.List' 48
Avoid unused imports such as 'java.util.List' 48
The class 'ExecuteAction' has a Cyclomatic Complexity of 14 (Highest = 13). 55140
The class 'ExecuteAction' has a Modified Cyclomatic Complexity of 13 (Highest = 12). 55140
The class 'ExecuteAction' has a Standard Cyclomatic Complexity of 13 (Highest = 12). 55140
The method 'run' has a Cyclomatic Complexity of 13. 58139
The method 'run' has a Standard Cyclomatic Complexity of 12. 58139
The method 'run' has a Modified Cyclomatic Complexity of 12. 58139
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 92
Avoid variables with short names like jo 99
Deeply nested if..then statements are hard to read 102134

fr/paris/lutece/plugins/deployment/business/InitAppContextAction.java

Violation Ligne
Avoid unused imports such as 'javax.inject.Inject' 41
Avoid unused imports such as 'javax.inject.Inject' 41
Avoid unused imports such as 'net.sf.json.JSONObject' 43
Avoid unused imports such as 'net.sf.json.JSONObject' 43
Avoid unused imports such as 'org.apache.commons.lang.StringUtils' 45
Avoid unused imports such as 'org.apache.commons.lang.StringUtils' 45
Avoid unused imports such as 'fr.paris.lutece.plugins.deployment.service.IDatabaseService' 48
Avoid unused imports such as 'fr.paris.lutece.plugins.deployment.service.IDatabaseService' 48
Avoid unused imports such as 'fr.paris.lutece.portal.service.util.AppLogService' 56
Avoid unused imports such as 'fr.paris.lutece.portal.service.util.AppLogService' 56
Avoid unused imports such as 'fr.paris.lutece.portal.service.util.AppPropertiesService' 57
Avoid unused imports such as 'fr.paris.lutece.portal.service.util.AppPropertiesService' 57
Use explicit scoping instead of the default package private level 68
Avoid declaring a variable if it is unreferenced before a possible exit point. 75
Avoid unused local variables such as 'plugin'. 75
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead. 103

fr/paris/lutece/plugins/deployment/business/InitMysqlDatabase.java

Violation Ligne
Avoid unused imports such as 'org.apache.commons.lang.StringUtils' 41
Avoid unused imports such as 'org.apache.commons.lang.StringUtils' 41
Private field '_ftpService' could be made final; it is only initialized in the declaration or constructor. 57
Private field '_actionService' could be made final; it is only initialized in the declaration or constructor. 58
Avoid declaring a variable if it is unreferenced before a possible exit point. 67
Avoid declaring a variable if it is unreferenced before a possible exit point. 68
Avoid unused local variables such as 'plugin'. 68
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead. 121

fr/paris/lutece/plugins/deployment/business/ServerApplicationInstance.java

Violation Ligne
Avoid using implementation types like 'HashMap'; use the interface instead 55
Avoid using implementation types like 'HashMap'; use the interface instead 55
These nested if statements could be combined 125128
Avoid using implementation types like 'HashMap'; use the interface instead 144
Avoid using implementation types like 'HashMap'; use the interface instead 144
Avoid using implementation types like 'HashMap'; use the interface instead 149
Avoid using implementation types like 'HashMap'; use the interface instead 149

fr/paris/lutece/plugins/deployment/business/SiteDeploy.java

Violation Ligne
Avoid unused imports such as 'fr.paris.lutece.plugins.deployment.service.vcs.IVCSService' 36
Avoid unused imports such as 'fr.paris.lutece.plugins.deployment.service.vcs.IVCSService' 36

fr/paris/lutece/plugins/deployment/business/WarInstallerAction.java

Violation Ligne
Avoid unused imports such as 'java.util.Iterator' 45
Avoid unused imports such as 'java.util.Iterator' 45
The class 'WarInstallerAction' has a Standard Cyclomatic Complexity of 10 (Highest = 9). 53126
The class 'WarInstallerAction' has a Cyclomatic Complexity of 11 (Highest = 10). 53126
The class 'WarInstallerAction' has a Modified Cyclomatic Complexity of 10 (Highest = 9). 53126
The method 'run' has a Cyclomatic Complexity of 10. 56125
Deeply nested if..then statements are hard to read 8892
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 98
Avoid variables with short names like jo 108
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead. 113
Deeply nested if..then statements are hard to read 113119

fr/paris/lutece/plugins/deployment/business/WorkflowDeploySiteContext.java

Violation Ligne
Too many fields 41301
Avoid using implementation types like 'HashMap'; use the interface instead 51
Avoid using implementation types like 'HashMap'; use the interface instead 51

fr/paris/lutece/plugins/deployment/business/vcs/SvnUser.java

Violation Ligne
It is a good practice to call super() in a constructor 4649

fr/paris/lutece/plugins/deployment/service/ActionService.java

Violation Ligne
Avoid using implementation types like 'HashMap'; use the interface instead 56
Avoid using implementation types like 'HashMap'; use the interface instead 56
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 89
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead. 157

fr/paris/lutece/plugins/deployment/service/ApplicationResourceIdService.java

Violation Ligne
No need to import a type that lives in the same package 41
No need to import a type that lives in the same package 42
Private field '_applicationService' could be made final; it is only initialized in the declaration or constructor. 58
It is a good practice to call super() in a constructor 9699
Avoid variables with short names like rt 108
Avoid variables with short names like p 119
Assigning an Object to null is a code smell. Consider refactoring. 193

fr/paris/lutece/plugins/deployment/service/ApplicationService.java

Violation Ligne
A class which only has private constructors should be final 48163
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 98
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 98
Document empty method 123124

fr/paris/lutece/plugins/deployment/service/DatabaseService.java

Violation Ligne
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 80
Avoid variables with short names like jo 89
Avoid appending characters as strings in StringBuffer.append. 130
Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). 132

fr/paris/lutece/plugins/deployment/service/EnvironmentResourceIdService.java

Violation Ligne
Avoid unused imports such as 'java.util.List' 36
Avoid unused imports such as 'java.util.List' 36
Avoid unused imports such as 'fr.paris.lutece.plugins.deployment.business.Application' 39
Avoid unused imports such as 'fr.paris.lutece.plugins.deployment.business.Application' 39
Avoid unused imports such as 'fr.paris.lutece.plugins.deployment.business.FilterDeployment' 41
Avoid unused imports such as 'fr.paris.lutece.plugins.deployment.business.FilterDeployment' 41
No need to import a type that lives in the same package 42
No need to import a type that lives in the same package 43
Avoid unused imports such as 'fr.paris.lutece.plugins.deployment.service.IApplicationService' 43
Avoid unused imports such as 'fr.paris.lutece.plugins.deployment.service.IApplicationService' 43
Avoid unused imports such as 'fr.paris.lutece.portal.service.plugin.PluginService' 44
Avoid unused imports such as 'fr.paris.lutece.portal.service.plugin.PluginService' 44
Private field '_environmentService' could be made final; it is only initialized in the declaration or constructor. 59
It is a good practice to call super() in a constructor 7073
Avoid variables with short names like rt 82
Avoid variables with short names like p 93

fr/paris/lutece/plugins/deployment/service/EnvironmentService.java

Violation Ligne
Avoid unused imports such as 'java.util.Iterator' 47
Avoid unused imports such as 'java.util.Iterator' 47
A class which only has private constructors should be final 51205
Class cannot be instantiated and does not provide any static methods or fields 51205
Avoid using implementation types like 'HashMap'; use the interface instead 54
Avoid using implementation types like 'HashMap'; use the interface instead 54
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 132
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 139
Assigning an Object to null is a code smell. Consider refactoring. 143
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 150
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 161
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 161
Deeply nested if..then statements are hard to read 164167

fr/paris/lutece/plugins/deployment/service/IApplicationService.java

Violation Ligne
Avoid unused imports such as 'fr.paris.lutece.util.ReferenceList' 39
Avoid unused imports such as 'fr.paris.lutece.util.ReferenceList' 39

fr/paris/lutece/plugins/deployment/service/IDatabaseService.java

Violation Ligne
Avoid modifiers which are implied by the context 56
Avoid modifiers which are implied by the context 6566
Avoid using implementation types like 'HashMap'; use the interface instead 65
Avoid using implementation types like 'HashMap'; use the interface instead 65
Avoid using implementation types like 'HashMap'; use the interface instead 66
Avoid using implementation types like 'HashMap'; use the interface instead 66

fr/paris/lutece/plugins/deployment/service/IMavenService.java

Violation Ligne
Rather than using a lot of String arguments, consider using a container object for those values. 63

fr/paris/lutece/plugins/deployment/service/IServerApplicationService.java

Violation Ligne
Avoid using implementation types like 'HashMap'; use the interface instead 53
Avoid using implementation types like 'HashMap'; use the interface instead 53

fr/paris/lutece/plugins/deployment/service/MavenService.java

Violation Ligne
A class which only has private constructors should be final 70260
Singleton is not thread safe 8490
Rather than using a lot of String arguments, consider using a container object for those values. 119
Avoid unused private methods such as 'getGoalToString(List)'. 158
Avoid unused method parameters such as 'strTagName'. 194
Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). 209
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 229
Avoid variables with short names like sw 231
Avoid variables with short names like pw 232

fr/paris/lutece/plugins/deployment/service/ServerApplicationService.java

Violation Ligne
Avoid using implementation types like 'HashMap'; use the interface instead 57
Avoid using implementation types like 'HashMap'; use the interface instead 57
Avoid using implementation types like 'HashMap'; use the interface instead 72
Avoid using implementation types like 'HashMap'; use the interface instead 72
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 112
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 124
Avoid unused method parameters such as 'locale'. 189
Avoid instantiating Integer objects. Call Integer.valueOf() instead. 204
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead. 204

fr/paris/lutece/plugins/deployment/service/WorkflowDeploySiteService.java

Violation Ligne
Avoid unused imports such as 'fr.paris.lutece.portal.service.util.AppException' 58
Avoid unused imports such as 'fr.paris.lutece.portal.service.util.AppException' 58
Avoid unused imports such as 'fr.paris.lutece.portal.service.util.AppPropertiesService' 60
Avoid unused imports such as 'fr.paris.lutece.portal.service.util.AppPropertiesService' 60
Avoid unused imports such as 'java.io.File' 61
Avoid unused imports such as 'java.io.File' 61
Avoid unused imports such as 'java.io.IOException' 62
Avoid unused imports such as 'java.io.IOException' 62
Avoid unused imports such as 'java.nio.file.Files' 63
Avoid unused imports such as 'java.nio.file.Files' 63
Avoid unused imports such as 'java.nio.file.Path' 64
Avoid unused imports such as 'java.nio.file.Path' 64
Avoid unused imports such as 'java.nio.file.Paths' 65
Avoid unused imports such as 'java.nio.file.Paths' 65
Avoid unused imports such as 'org.apache.commons.io.FileUtils' 66
Avoid unused imports such as 'org.apache.commons.io.FileUtils' 66
Avoid using implementation types like 'HashMap'; use the interface instead 70
Use explicit scoping instead of the default package private level 70
Avoid using implementation types like 'HashMap'; use the interface instead 70
Use explicit scoping instead of the default package private level 7273
Use explicit scoping instead of the default package private level 7475
Use explicit scoping instead of the default package private level 7677
Use explicit scoping instead of the default package private level 7879
Use block level rather than method level synchronization 8392
Avoid printStackTrace(); use a logger call instead. 144
Deeply nested if..then statements are hard to read 234240
Avoid throwing raw exception types. 238
Avoid throwing raw exception types. 255

fr/paris/lutece/plugins/deployment/service/vcs/AbstractGitService.java

Violation Ligne
Rather than using a lot of String arguments, consider using a container object for those values. 83
Avoid variables with short names like r 117
Avoid variables with short names like m 120
Document empty method 136137

fr/paris/lutece/plugins/deployment/service/vcs/IVCSService.java

Violation Ligne
Rather than using a lot of String arguments, consider using a container object for those values. 74

fr/paris/lutece/plugins/deployment/service/vcs/SvnService.java

Violation Ligne
Class cannot be instantiated and does not provide any static methods or fields 58248
A class which only has private constructors should be final 58248
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 115
Rather than using a lot of String arguments, consider using a container object for those values. 123
Avoid unused local variables such as 'strError'. 132
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 148
Avoid empty if statements 154169

fr/paris/lutece/plugins/deployment/uploadhandler/DeploymentSessionListener.java

Violation Ligne
Avoid variables with short names like se 50
Avoid variables with short names like se 59

fr/paris/lutece/plugins/deployment/uploadhandler/DeploymentUploadHandler.java

Violation Ligne
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 70
Use bitwise inversion to invert boolean values 99
Avoid declaring a variable if it is unreferenced before a possible exit point. 113
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 118

fr/paris/lutece/plugins/deployment/util/ConstanteUtils.java

Violation Ligne
Avoid excessively long variable names like CONSTANTE__ENVIRONMENT_SERVER_APPLICATION_INSTANCE_LIST 66
Avoid excessively long variable names like CONSTANTE__SERVER_APPLICATION_INSTANCE_FTP_WEBAPP_Url 70
Avoid excessively long variable names like CONSTANTE__SERVER_APPLICATION_INSTANCE_MAVEN_PROFILE 71
Avoid excessively long variable names like PROPERTY_LABEL_CODE_SERVER_APPLICATION_INSTANCE_TOMCAT 122
Avoid excessively long variable names like PROPERTY_LABEL_CODE_SERVER_APPLICATION_INSTANCE_MYSQL 123
Avoid excessively long variable names like PROPERTY_ID_WORKFLOW_TAG_AUTOMATICALLY_AND_DEPLOY_SITE 141
Avoid excessively long variable names like PROPERTY_WEBSERVICE_EVIRONMENTS_JSON_DICTIONARY_NAME 156
Avoid excessively long variable names like PROPERTY_WEBSERVICE_SERVER_APPLICATION_INSTANCES_JSON_OBJECT_NAME 157
Avoid excessively long variable names like PROPERTY_WEBSERVICE_SERVER_APPLICATION_INSTANCES_JSON_DICTIONARY_NAME 158
Avoid excessively long variable names like PROPERTY_WEBSERVICE_SERVER_ACTIONS_JSON_DICTIONARY_NAME 159
Avoid excessively long variable names like PROPERTY_WEBSERVICE_ACTION_RESULT_JSON_PROPERTY_RESULT 160
Avoid excessively long variable names like PROPERTY_WEBSERVICE_INSTALLABLE_WAR_ACTION_OBJECT_NAME 161
Avoid excessively long variable names like PROPERTY_WEBSERVICE_INSTALLABLE_WAR_ACTION_DICTIONARY_NAME 162
Avoid excessively long variable names like PROPERTY_DEPLOYMENT_SERVER_APPLICATION_FTP_USER_LOGIN 167
Avoid excessively long variable names like PROPERTY_DEPLOYMENT_SERVER_APPLICATION_FTP_USER_PASSWORD 168
Avoid excessively long variable names like PROPERTY_DEPLOYMENT_SERVER_APPLICATION_FTP_DPLOY_DIRECTORY_TARGET 169

fr/paris/lutece/plugins/deployment/util/DeploymentUtils.java

Violation Ligne
Possible God class (WMC=112, ATFD=237, TCC=0.0) 34898
A high number of imports can indicate a high degree of coupling within an object. 34898
Avoid unused imports such as 'fr.paris.lutece.plugins.deployment.service.DeploymentPlugin' 64
Avoid unused imports such as 'fr.paris.lutece.plugins.deployment.service.DeploymentPlugin' 64
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 86898
Avoid using Literals in Conditional Statements 120
Avoid variables with short names like jo 176
Avoid variables with short names like jo 191
Avoid variables with short names like jo 206
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 257
This statement may have some unnecessary parentheses 310
Avoid variables with short names like jo 441
The method getJSONForWorkflowAction() has an NPath complexity of 9376 496535
Avoid variables with short names like jo 499
Rather than using a lot of String arguments, consider using a container object for those values. 537538
Avoid variables with short names like jo 540
Avoid variables with short names like e 630
Return an empty array rather than null. 671690
Switch statements should have a default label 818826
Switch statements should have a default label 839847

fr/paris/lutece/plugins/deployment/util/FTPUtils.java

Violation Ligne
The class 'FTPUtils' has a Standard Cyclomatic Complexity of 8 (Highest = 10). 52300
The class 'FTPUtils' has a Cyclomatic Complexity of 8 (Highest = 10). 52300
The class 'FTPUtils' has a Modified Cyclomatic Complexity of 8 (Highest = 10). 52300
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 53300
The method 'uploadFile' has a Modified Cyclomatic Complexity of 10. 55129
The method 'uploadFile' has a Cyclomatic Complexity of 10. 55129
The method 'uploadFile' has a Standard Cyclomatic Complexity of 10. 55129
Avoid empty catch blocks 114117
Avoid empty catch blocks 191194
Avoid declaring a variable if it is unreferenced before a possible exit point. 211
Avoid unused local variables such as 'ftp'. 211
Avoid using final local variables, turn them into fields 234
debug logging that involves string concatenation should be guarded with isDebugEnabled() checks 264
Avoid empty catch blocks 288291

fr/paris/lutece/plugins/deployment/util/FileUtil.java

Violation Ligne
The class 'FileUtil' has a Cyclomatic Complexity of 4 (Highest = 10). 40108
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 41108
Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). 62
The method 'list' has a Cyclomatic Complexity of 10. 80106

fr/paris/lutece/plugins/deployment/util/MapperJsonUtil.java

Violation Ligne
Avoid variables with short names like t 73

fr/paris/lutece/plugins/deployment/util/MavenUtils.java

Violation Ligne
Avoid unused imports such as 'java.util.ArrayList' 36
Avoid unused imports such as 'java.util.ArrayList' 36
Avoid unused imports such as 'java.util.List' 37
Avoid unused imports such as 'java.util.List' 37
Class cannot be instantiated and does not provide any static methods or fields 3967
Avoid unused private fields such as 'RELEASE_PREPARE_BASE'. 46
Avoid unused private fields such as 'RELEASE_PREPARE_ARGS'. 47

fr/paris/lutece/plugins/deployment/util/ReleaseSVNCheckoutClient.java

Violation Ligne
Avoid unused imports such as 'org.tmatesoft.svn.core.SVNCancelException' 36
Avoid unused imports such as 'org.tmatesoft.svn.core.SVNCancelException' 36
Avoid unused imports such as 'org.tmatesoft.svn.core.SVNErrorCode' 37
Avoid unused imports such as 'org.tmatesoft.svn.core.SVNErrorCode' 37
Avoid unused imports such as 'org.tmatesoft.svn.core.SVNErrorMessage' 38
Avoid unused imports such as 'org.tmatesoft.svn.core.SVNErrorMessage' 38
Avoid unused private fields such as 'bCancelled'. 46
Perhaps 'bCancelled' could be replaced by a local variable. 46

fr/paris/lutece/plugins/deployment/util/ReleaseUtils.java

Violation Ligne
A high number of imports can indicate a high degree of coupling within an object. 34294
Avoid unused imports such as 'fr.paris.lutece.plugins.deployment.util.vcs.ReleaseSVNCommitClient' 38
Avoid unused imports such as 'fr.paris.lutece.plugins.deployment.util.vcs.ReleaseSVNCommitClient' 38
Avoid unused imports such as 'org.w3c.dom.Document' 46
Avoid unused imports such as 'org.w3c.dom.Document' 46
Avoid unused imports such as 'org.w3c.dom.Node' 47
Avoid unused imports such as 'org.w3c.dom.Node' 47
Avoid unused imports such as 'org.w3c.dom.NodeList' 48
Avoid unused imports such as 'org.w3c.dom.NodeList' 48
Avoid unused imports such as 'java.io.FileWriter' 56
Avoid unused imports such as 'java.io.FileWriter' 56
Avoid unused imports such as 'java.io.StringWriter' 60
Avoid unused imports such as 'java.io.StringWriter' 60
Avoid unused imports such as 'javax.xml.parsers.DocumentBuilder' 70
Avoid unused imports such as 'javax.xml.parsers.DocumentBuilder' 70
Avoid unused imports such as 'javax.xml.parsers.DocumentBuilderFactory' 71
Avoid unused imports such as 'javax.xml.parsers.DocumentBuilderFactory' 71
Avoid unused imports such as 'javax.xml.transform.Transformer' 73
Avoid unused imports such as 'javax.xml.transform.Transformer' 73
Avoid unused imports such as 'javax.xml.transform.TransformerFactory' 75
Avoid unused imports such as 'javax.xml.transform.TransformerFactory' 75
Avoid unused imports such as 'javax.xml.transform.dom.DOMSource' 76
Avoid unused imports such as 'javax.xml.transform.dom.DOMSource' 76
Avoid unused imports such as 'javax.xml.transform.stream.StreamResult' 77
Avoid unused imports such as 'javax.xml.transform.stream.StreamResult' 77
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 80294
Avoid variables with short names like jc 128
Avoid variables with short names like u 129
Avoid variables with short names like jc 141
Avoid variables with short names like m 142
Avoid reassigning parameters such as 'strVersion' 148
String.indexOf(char) is faster than String.indexOf(String). 157
Prefer StringBuffer over += for concatenating strings 164
Prefer StringBuffer over += for concatenating strings 165
Prefer StringBuffer over += for concatenating strings 166
Avoid printStackTrace(); use a logger call instead. 170
Avoid variables with short names like is 185
Avoid variables with short names like is 208
Consider simply returning the value vs storing it in local variable 'strVersion' 213
Avoid variables with short names like is 225
Consider simply returning the value vs storing it in local variable 'strVersion' 230
Avoid printStackTrace(); use a logger call instead. 287

fr/paris/lutece/plugins/deployment/util/RepositoryUtils.java

Violation Ligne
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 48182

fr/paris/lutece/plugins/deployment/util/URLUtils.java

Violation Ligne
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 42115
Consider simply returning the value vs storing it in local variable 'url' 89
Avoid unused local variables such as 'url'. 108
New exception is thrown in catch block, original stack trace may be lost 112

fr/paris/lutece/plugins/deployment/util/vcs/GitUtils.java

Violation Ligne
Possible God class (WMC=66, ATFD=37, TCC=0.029411764705882353) 1463
A high number of imports can indicate a high degree of coupling within an object. 1463
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 47463
Rather than using a lot of String arguments, consider using a container object for those values. 65
Consider simply returning the value vs storing it in local variable 'pPullResult' 223
Consider simply returning the value vs storing it in local variable 'mergeResult' 241
Avoid variables with short names like i 247
Prefer StringBuffer over += for concatenating strings 252
Prefer StringBuffer over += for concatenating strings 253
Prefer StringBuffer over += for concatenating strings 254
Avoid variables with short names like i 262
Rather than using a lot of String arguments, consider using a container object for those values. 314
Avoid using final local variables, turn them into fields 334
Avoid variables with short names like i 339
Avoid reassigning parameters such as 'strRepoUrl' 371
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 443

fr/paris/lutece/plugins/deployment/util/vcs/ReleaseSVNCommitClient.java

Violation Ligne
Avoid unused private fields such as 'bCancelled'. 42
Perhaps 'bCancelled' could be replaced by a local variable. 42

fr/paris/lutece/plugins/deployment/util/vcs/ReleaseSVNCopyClient.java

Violation Ligne
Perhaps 'bCancelled' could be replaced by a local variable. 42
Avoid unused private fields such as 'bCancelled'. 42

fr/paris/lutece/plugins/deployment/util/vcs/SVNUtils.java

Violation Ligne
A high number of imports can indicate a high degree of coupling within an object. 34263
The class 'SVNUtils' has a Modified Cyclomatic Complexity of 4 (Highest = 10). 72263
The class 'SVNUtils' has a Standard Cyclomatic Complexity of 4 (Highest = 10). 72263
The class 'SVNUtils' has a Cyclomatic Complexity of 4 (Highest = 10). 72263
Avoid variables with short names like o2 77
Avoid variables with short names like o1 77
The method 'doSvnCheckoutSite' has a Modified Cyclomatic Complexity of 10. 112209
The method 'doSvnCheckoutSite' has a Standard Cyclomatic Complexity of 10. 112209
The method 'doSvnCheckoutSite' has a Cyclomatic Complexity of 10. 112209
Avoid declaring a variable if it is unreferenced before a possible exit point. 115
These nested if statements could be combined 120125
Avoid variables with short names like sw 157
Avoid variables with short names like pw 158
Avoid unused local variables such as 'errorLog'. 161
Avoid empty catch blocks 170174
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 181
Avoid variables with short names like sw 185
Avoid variables with short names like pw 186
Avoid unused local variables such as 'errorLog'. 189
Avoid empty catch blocks 198202
Avoid using final local variables, turn them into fields 214
Avoid unused local variables such as 'referenceItem'. 225
These nested if statements could be combined 229232

fr/paris/lutece/plugins/deployment/web/DeploymentJspBean.java

Violation Ligne
Possible God class (WMC=165, ATFD=563, TCC=0.1693548387096774) 341515
A high number of imports can indicate a high degree of coupling within an object. 341515
The class 'DeploymentJspBean' has a Cyclomatic Complexity of 5 (Highest = 26). 1081515
The class 'DeploymentJspBean' has a Modified Cyclomatic Complexity of 4 (Highest = 17). 1081515
Avoid really long classes. 1081515
The class 'DeploymentJspBean' has a Standard Cyclomatic Complexity of 4 (Highest = 17). 1081515
Private field '_applicationService' could be made final; it is only initialized in the declaration or constructor. 112
Private field '_environmentService' could be made final; it is only initialized in the declaration or constructor. 113
Private field '_serverApplicationService' could be made final; it is only initialized in the declaration or constructor. 114
Private field '_databaseService' could be made final; it is only initialized in the declaration or constructor. 116
Private field '_workflowDeploySiteService' could be made final; it is only initialized in the declaration or constructor. 117
Private field '_ftpService' could be made final; it is only initialized in the declaration or constructor. 119
Avoid unused private fields such as '_ftpService'. 119
Private field '_actionService' could be made final; it is only initialized in the declaration or constructor. 121
Private field '_nDefaultItemsPerPage' could be made final; it is only initialized in the declaration or constructor. 125
Private field '_handler' could be made final; it is only initialized in the declaration or constructor. 127
The method getManageApplication() has an NPath complexity of 200 148208
Avoid declaring a variable if it is unreferenced before a possible exit point. 235
Avoid declaring a variable if it is unreferenced before a possible exit point. 265
Avoid declaring a variable if it is unreferenced before a possible exit point. 272
Avoid declaring a variable if it is unreferenced before a possible exit point. 372
Method names should not start with capital letters 433
Avoid really long methods. 450591
The method 'getFormDeployApplication' has a Cyclomatic Complexity of 25. 450591
The method getFormDeployApplication() has an NPath complexity of 16470 450591
The method 'getFormDeployApplication' has a Modified Cyclomatic Complexity of 14. 450591
The method 'getFormDeployApplication' has a Standard Cyclomatic Complexity of 14. 450591
Avoid declaring a variable if it is unreferenced before a possible exit point. 457
Avoid declaring a variable if it is unreferenced before a possible exit point. 458
Avoid declaring a variable if it is unreferenced before a possible exit point. 459
Avoid declaring a variable if it is unreferenced before a possible exit point. 460
New exception is thrown in catch block, original stack trace may be lost 484
Assigning an Object to null is a code smell. Consider refactoring. 523
Assigning an Object to null is a code smell. Consider refactoring. 557
Avoid unused local variables such as 'hashServerApplicationInstanceMysql'. 565
The method 'getProcessDeployApplication' has a Cyclomatic Complexity of 15. 593667
Avoid declaring a variable if it is unreferenced before a possible exit point. 597
Avoid declaring a variable if it is unreferenced before a possible exit point. 602
Avoid declaring a variable if it is unreferenced before a possible exit point. 606
Avoid declaring a variable if it is unreferenced before a possible exit point. 727728
The method 'doProcessAction' has a Cyclomatic Complexity of 13. 827881
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 867
Avoid unused method parameters such as 'plugin'. 900
Avoid unused local variables such as 'bHasSucceed'. 905
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 919
Avoid variables with short names like jo 940
Avoid unused local variables such as 'commandResult'. 995
Avoid declaring a variable if it is unreferenced before a possible exit point. 995
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1025
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1067
Avoid variables with short names like jo 1152
The method 'getFormDeployData' has a Modified Cyclomatic Complexity of 17. 11821308
The method 'getFormDeployData' has a Standard Cyclomatic Complexity of 17. 11821308
Avoid really long methods. 11821308
The method 'getFormDeployData' has a Cyclomatic Complexity of 26. 11821308
The method getFormDeployData() has an NPath complexity of 7040 11821308
Avoid declaring a variable if it is unreferenced before a possible exit point. 1197
Avoid unused local variables such as 'mRequest'. 1199
Avoid declaring a variable if it is unreferenced before a possible exit point. 1199
Avoid declaring a variable if it is unreferenced before a possible exit point. 1326
Rather than using a lot of String arguments, consider using a container object for those values. 14261427
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1482

fr/paris/lutece/plugins/deployment/web/DownloadServlet.java

Violation Ligne
Private field '_ftpService' could be made final; it is only initialized in the declaration or constructor. 66
Private field '_serverApplicationService' could be made final; it is only initialized in the declaration or constructor. 67
Private field '_applicationService' could be made final; it is only initialized in the declaration or constructor. 68