Checkstyle Results

The following document contains the results of Checkstyle 6.11.2 with /home/malapert/DOI/DOI-server/server/ConfTools/Checkstyle_7.2.0_CNES_C_2016.12.05.xml ruleset. rss feed

Summary

Files  Info  Warnings  Errors
116 0 289 0

Files

File  I  W  E
fr/cnes/doi/application/AbstractApplication.java 0 1 0
fr/cnes/doi/application/AdminApplication.java 0 2 0
fr/cnes/doi/application/DoiMdsApplication.java 0 5 0
fr/cnes/doi/client/ClientLandingPage.java 0 2 0
fr/cnes/doi/client/ClientMDS.java 0 26 0
fr/cnes/doi/db/MyMemoryRealm.java 0 8 0
fr/cnes/doi/exception/ClientCrossCiteException.java 0 3 0
fr/cnes/doi/exception/ClientMdsException.java 0 1 0
fr/cnes/doi/exception/DoiServerException.java 0 1 0
fr/cnes/doi/exception/ValidationMetadataException.java 0 1 0
fr/cnes/doi/logging/api/MonitoringLogFilter.java 0 1 0
fr/cnes/doi/plugin/PluginFactory.java 0 2 0
fr/cnes/doi/plugin/impl/db/DefaultLDAPImpl.java 0 9 0
fr/cnes/doi/plugin/impl/db/DefaultProjectSuffixImpl.java 0 8 0
fr/cnes/doi/plugin/impl/db/DefaultTokenImpl.java 0 6 0
fr/cnes/doi/plugin/impl/db/DefaultUserRoleImpl.java 0 14 0
fr/cnes/doi/plugin/impl/db/impl/DOIDbDataAccessServiceImpl.java 0 19 0
fr/cnes/doi/plugin/impl/db/impl/JDBCConnector.java 0 8 0
fr/cnes/doi/plugin/impl/db/service/DatabaseSingleton.java 0 1 0
fr/cnes/doi/resource/AbstractResource.java 0 2 0
fr/cnes/doi/resource/admin/AuthenticateResource.java 0 1 0
fr/cnes/doi/resource/admin/ManageProjectsResource.java 0 6 0
fr/cnes/doi/resource/admin/ManageSuperUserResource.java 0 3 0
fr/cnes/doi/resource/admin/ManageSuperUsersResource.java 0 2 0
fr/cnes/doi/resource/admin/ManageUsersResource.java 0 2 0
fr/cnes/doi/resource/admin/RedirectingResource.java 0 1 0
fr/cnes/doi/resource/admin/SuffixProjectsDoisResource.java 0 2 0
fr/cnes/doi/resource/admin/SuffixProjectsResource.java 0 2 0
fr/cnes/doi/resource/admin/TokenResource.java 0 4 0
fr/cnes/doi/resource/citation/BaseCitationResource.java 0 1 0
fr/cnes/doi/resource/citation/FormatCitationResource.java 0 4 0
fr/cnes/doi/resource/citation/LanguageCitationResource.java 0 2 0
fr/cnes/doi/resource/citation/StyleCitationResource.java 0 2 0
fr/cnes/doi/resource/mds/BaseMdsResource.java 0 6 0
fr/cnes/doi/resource/mds/DoiResource.java 0 2 0
fr/cnes/doi/resource/mds/DoisResource.java 0 8 0
fr/cnes/doi/resource/mds/MediaResource.java 0 6 0
fr/cnes/doi/resource/mds/MetadataResource.java 0 7 0
fr/cnes/doi/resource/mds/MetadatasResource.java 0 3 0
fr/cnes/doi/resource/mds/package-info.java 0 4 0
fr/cnes/doi/security/AllowerIP.java 0 3 0
fr/cnes/doi/security/LoginBasedVerifier.java 0 3 0
fr/cnes/doi/security/RoleAuthorizer.java 0 1 0
fr/cnes/doi/security/TokenSecurity.java 0 16 0
fr/cnes/doi/security/UtilsCryptography.java 0 3 0
fr/cnes/doi/server/DoiServer.java 0 7 0
fr/cnes/doi/server/Starter.java 0 22 0
fr/cnes/doi/services/DOIUsersUpdate.java 0 1 0
fr/cnes/doi/services/DoiMonitoring.java 0 2 0
fr/cnes/doi/services/LandingPageMonitoring.java 0 2 0
fr/cnes/doi/settings/DoiSettings.java 0 19 0
fr/cnes/doi/settings/EmailSettings.java 0 4 0
fr/cnes/doi/settings/JettySettings.java 0 7 0
fr/cnes/doi/settings/ProxySettings.java 0 1 0
fr/cnes/doi/utils/UniqueProjectName.java 0 2 0
org/restlet/ext/httpclient4/HttpDOIClientHelper.java 0 1 0
org/restlet/ext/httpclient4/HttpMethodCall.java 0 7 0

Rules

Category Rule Violations Severity
coding AvoidInlineConditionals 17  Warning
DeclarationOrder 29  Warning
IllegalCatch 9  Warning
MagicNumber 14  Warning
MultipleStringLiterals 105  Warning
ParameterAssignment 1  Warning
ReturnCount
  • max: "1"
1  Warning
design VisibilityModifier 2  Warning
imports AvoidStaticImport 33  Warning
UnusedImports 1  Warning
indentation Indentation 1  Warning
javadoc JavadocMethod
  • validateThrows: "true"
  • suppressLoadErrors: "true"
24  Warning
JavadocVariable 1  Warning
metrics BooleanExpressionComplexity 1  Warning
CyclomaticComplexity
  • max: "12"
1  Warning
misc UncommentedMain 1  Warning
naming TypeName 2  Warning
sizes LineLength
  • max: "100"
45  Warning
MethodLength
  • max: "110"
1  Warning

Details

fr/cnes/doi/application/AbstractApplication.java

Severity Category Rule Message Line
 Warning coding MultipleStringLiterals The String "realm" appears 2 times in the file. 139

fr/cnes/doi/application/AdminApplication.java

Severity Category Rule Message Line
 Warning coding MultipleStringLiterals The String "/{" appears 3 times in the file. 175
 Warning coding MultipleStringLiterals The String "}" appears 3 times in the file. 175

fr/cnes/doi/application/DoiMdsApplication.java

Severity Category Rule Message Line
 Warning imports AvoidStaticImport Using a static member import should be avoided - fr.cnes.doi.client.ClientMDS.SCHEMA_DATACITE. 21
 Warning imports UnusedImports Unused import - fr.cnes.doi.exception.DoiRuntimeException. 44
 Warning javadoc JavadocMethod Unused @throws tag for 'DoiRuntimeException'. 174
 Warning naming TypeName Name 'API_MDS' must match pattern '^[A-Z][a-zA-Z0-9]*$'. 441
 Warning sizes LineLength Line is longer than 100 characters (found 102). 468

fr/cnes/doi/client/ClientLandingPage.java

Severity Category Rule Message Line
 Warning coding MagicNumber '5' is a magic number. 69
 Warning coding MultipleStringLiterals The String "Checking landing pages" appears 2 times in the file. 91

fr/cnes/doi/client/ClientMDS.java

Severity Category Rule Message Line
 Warning imports AvoidStaticImport Using a static member import should be avoided - fr.cnes.doi.client.ClientMDS.METADATA_RESOURCE. 21
 Warning coding MultipleStringLiterals The String "doi" appears 2 times in the file. 85
 Warning sizes LineLength Line is longer than 100 characters (found 108). 120
 Warning javadoc JavadocMethod Unused @throws tag for 'IllegalArgumentException'. 150
 Warning coding DeclarationOrder Instance variable definition in wrong order. 162
 Warning coding DeclarationOrder Instance variable definition in wrong order. 166
 Warning coding DeclarationOrder Constructor definition in wrong order. 197
 Warning coding AvoidInlineConditionals Avoid inline conditionals. 200
 Warning coding DeclarationOrder Constructor definition in wrong order. 229
 Warning coding MultipleStringLiterals The String "Authentication with HTTP_BASIC : {}/{}" appears 2 times in the file. 233
 Warning coding DeclarationOrder Constructor definition in wrong order. 246
 Warning coding MultipleStringLiterals The String "/" appears 5 times in the file. 271
 Warning coding AvoidInlineConditionals Avoid inline conditionals. 331
 Warning coding MultipleStringLiterals The String "\n" appears 12 times in the file. 393
 Warning coding AvoidInlineConditionals Avoid inline conditionals. 430
 Warning javadoc JavadocMethod Missing a Javadoc comment. 439
 Warning coding MultipleStringLiterals The String "=" appears 3 times in the file. 510
 Warning coding MultipleStringLiterals The String "charset" appears 2 times in the file. 517
 Warning coding MultipleStringLiterals The String "Content-Type" appears 2 times in the file. 518
 Warning coding MultipleStringLiterals The String "GET {}" appears 3 times in the file. 586
 Warning naming TypeName Name 'DATACITE_API_RESPONSE' must match pattern '^[A-Z][a-zA-Z0-9]*$'. 940
 Warning coding MultipleStringLiterals The String "Operation successful" appears 2 times in the file. 945
 Warning sizes LineLength Line is longer than 100 characters (found 108). 954
 Warning sizes LineLength Line is longer than 100 characters (found 128). 960
 Warning sizes LineLength Line is longer than 100 characters (found 103). 971
 Warning javadoc JavadocMethod Missing a Javadoc comment. 1103

fr/cnes/doi/db/MyMemoryRealm.java

Severity Category Rule Message Line
 Warning javadoc JavadocMethod Unused @throws tag for 'IllegalArgumentException'. 145
 Warning coding MultipleStringLiterals The String "The application argument can't be null" appears 3 times in the file. 150
 Warning javadoc JavadocMethod Unused @throws tag for 'IllegalArgumentException'. 175
 Warning javadoc JavadocMethod Unused @throws tag for 'IllegalArgumentException'. 205
 Warning javadoc JavadocMethod Unused @throws tag for 'IllegalArgumentException'. 356
 Warning javadoc JavadocMethod Unused @throws tag for 'IllegalArgumentException'. 415
 Warning javadoc JavadocMethod Unused @throws tag for 'IllegalArgumentException'. 458
 Warning coding AvoidInlineConditionals Avoid inline conditionals. 547

fr/cnes/doi/exception/ClientCrossCiteException.java

Severity Category Rule Message Line
 Warning coding MagicNumber '200' is a magic number. 109
 Warning coding MagicNumber '404' is a magic number. 112
 Warning coding MagicNumber '400' is a magic number. 115

fr/cnes/doi/exception/ClientMdsException.java

Severity Category Rule Message Line
 Warning coding AvoidInlineConditionals Avoid inline conditionals. 189

fr/cnes/doi/exception/DoiServerException.java

Severity Category Rule Message Line
 Warning sizes LineLength Line is longer than 100 characters (found 101). 66

fr/cnes/doi/exception/ValidationMetadataException.java

Severity Category Rule Message Line
 Warning javadoc JavadocVariable Missing a Javadoc comment. 28

fr/cnes/doi/logging/api/MonitoringLogFilter.java

Severity Category Rule Message Line
 Warning coding MultipleStringLiterals The String "\n" appears 2 times in the file. 121

fr/cnes/doi/plugin/PluginFactory.java

Severity Category Rule Message Line
 Warning sizes LineLength Line is longer than 100 characters (found 169). 146
 Warning coding DeclarationOrder Constructor definition in wrong order. 195

fr/cnes/doi/plugin/impl/db/DefaultLDAPImpl.java

Severity Category Rule Message Line
 Warning coding MultipleStringLiterals The String "LDAPAccessImpl: Unable to connect to Ldap" appears 2 times in the file. 172
 Warning coding MultipleStringLiterals The String "com.sun.jndi.ldap.LdapCtxFactory" appears 4 times in the file. 239
 Warning coding MultipleStringLiterals The String "simple" appears 4 times in the file. 241
 Warning coding IllegalCatch Catching 'Exception' is not allowed. 290
 Warning coding MultipleStringLiterals The String "Parameters : {}" appears 2 times in the file. 316
 Warning coding MultipleStringLiterals The String "gidNumber" appears 2 times in the file. 322
 Warning coding MultipleStringLiterals The String "cn=" appears 2 times in the file. 325
 Warning coding MultipleStringLiterals The String "LDAP search : OK" appears 2 times in the file. 328
 Warning coding MultipleStringLiterals The String "\n" appears 9 times in the file. 482

fr/cnes/doi/plugin/impl/db/DefaultProjectSuffixImpl.java

Severity Category Rule Message Line
 Warning imports AvoidStaticImport Using a static member import should be avoided - fr.cnes.doi.plugin.impl.db.impl.DOIDbDataAccessServiceImpl.DB_MAX_ACTIVE_CONNECTIONS. 34
 Warning imports AvoidStaticImport Using a static member import should be avoided - fr.cnes.doi.plugin.impl.db.impl.DOIDbDataAccessServiceImpl.DB_MAX_IDLE_CONNECTIONS. 35
 Warning imports AvoidStaticImport Using a static member import should be avoided - fr.cnes.doi.plugin.impl.db.impl.DOIDbDataAccessServiceImpl.DB_MIN_IDLE_CONNECTIONS. 36
 Warning imports AvoidStaticImport Using a static member import should be avoided - fr.cnes.doi.plugin.impl.db.impl.DOIDbDataAccessServiceImpl.DB_PWD. 37
 Warning imports AvoidStaticImport Using a static member import should be avoided - fr.cnes.doi.plugin.impl.db.impl.DOIDbDataAccessServiceImpl.DB_URL. 38
 Warning imports AvoidStaticImport Using a static member import should be avoided - fr.cnes.doi.plugin.impl.db.impl.DOIDbDataAccessServiceImpl.DB_USER. 39
 Warning sizes LineLength Line is longer than 100 characters (found 101). 55
 Warning coding MultipleStringLiterals The String "The id " appears 2 times in the file. 148

fr/cnes/doi/plugin/impl/db/DefaultTokenImpl.java

Severity Category Rule Message Line
 Warning imports AvoidStaticImport Using a static member import should be avoided - fr.cnes.doi.plugin.impl.db.impl.DOIDbDataAccessServiceImpl.DB_MAX_ACTIVE_CONNECTIONS. 32
 Warning imports AvoidStaticImport Using a static member import should be avoided - fr.cnes.doi.plugin.impl.db.impl.DOIDbDataAccessServiceImpl.DB_MAX_IDLE_CONNECTIONS. 33
 Warning imports AvoidStaticImport Using a static member import should be avoided - fr.cnes.doi.plugin.impl.db.impl.DOIDbDataAccessServiceImpl.DB_MIN_IDLE_CONNECTIONS. 34
 Warning imports AvoidStaticImport Using a static member import should be avoided - fr.cnes.doi.plugin.impl.db.impl.DOIDbDataAccessServiceImpl.DB_PWD. 35
 Warning imports AvoidStaticImport Using a static member import should be avoided - fr.cnes.doi.plugin.impl.db.impl.DOIDbDataAccessServiceImpl.DB_URL. 36
 Warning imports AvoidStaticImport Using a static member import should be avoided - fr.cnes.doi.plugin.impl.db.impl.DOIDbDataAccessServiceImpl.DB_USER. 37

fr/cnes/doi/plugin/impl/db/DefaultUserRoleImpl.java

Severity Category Rule Message Line
 Warning imports AvoidStaticImport Using a static member import should be avoided - fr.cnes.doi.plugin.impl.db.impl.DOIDbDataAccessServiceImpl.DB_MAX_ACTIVE_CONNECTIONS. 27
 Warning imports AvoidStaticImport Using a static member import should be avoided - fr.cnes.doi.plugin.impl.db.impl.DOIDbDataAccessServiceImpl.DB_MAX_IDLE_CONNECTIONS. 28
 Warning imports AvoidStaticImport Using a static member import should be avoided - fr.cnes.doi.plugin.impl.db.impl.DOIDbDataAccessServiceImpl.DB_MIN_IDLE_CONNECTIONS. 29
 Warning imports AvoidStaticImport Using a static member import should be avoided - fr.cnes.doi.plugin.impl.db.impl.DOIDbDataAccessServiceImpl.DB_PWD. 30
 Warning imports AvoidStaticImport Using a static member import should be avoided - fr.cnes.doi.plugin.impl.db.impl.DOIDbDataAccessServiceImpl.DB_URL. 31
 Warning imports AvoidStaticImport Using a static member import should be avoided - fr.cnes.doi.plugin.impl.db.impl.DOIDbDataAccessServiceImpl.DB_USER. 32
 Warning sizes LineLength Line is longer than 100 characters (found 107). 181
 Warning coding MultipleStringLiterals The String "An error occured while trying to add user " appears 2 times in the file. 193
 Warning coding MultipleStringLiterals The String "An error occured while trying to remove user " appears 2 times in the file. 220
 Warning coding MultipleStringLiterals The String "[DOI] Admin group" appears 2 times in the file. 235
 Warning coding MultipleStringLiterals The String "The user " appears 2 times in the file. 236
 Warning coding MultipleStringLiterals The String " to admin group" appears 2 times in the file. 255
 Warning coding MultipleStringLiterals The String "The user {} is added to database." appears 2 times in the file. 312
 Warning coding MultipleStringLiterals The String "Cannot add the user {}" appears 2 times in the file. 315

fr/cnes/doi/plugin/impl/db/impl/DOIDbDataAccessServiceImpl.java

Severity Category Rule Message Line
 Warning coding MultipleStringLiterals The String "%s WHERE %s=?" appears 4 times in the file. 130
 Warning coding MultipleStringLiterals The String "WHERE %s IN (" appears 2 times in the file. 138
 Warning coding MultipleStringLiterals The String ")" appears 2 times in the file. 142
 Warning coding MultipleStringLiterals The String "Parameter\n\tdbUrl : {}\n\tdbPwd : {}\n\toptions : {}" appears 2 times in the file. 303
 Warning coding MultipleStringLiterals The String "Parameter\n\t statement: {}" appears 5 times in the file. 335
 Warning coding MultipleStringLiterals The String "An exception occured when calling getAllDOIusers" appears 2 times in the file. 487
 Warning coding MultipleStringLiterals The String "An exception occured when calling addDOIUser" appears 2 times in the file. 597
 Warning coding MultipleStringLiterals The String "An exception occured when calling addDOIProject" appears 2 times in the file. 622
 Warning coding MultipleStringLiterals The String "Parameters:\n\tusername:{}\n\tsuffix:{}" appears 2 times in the file. 640
 Warning sizes LineLength Line is longer than 100 characters (found 105). 660
 Warning coding MultipleStringLiterals The String " don't exist in doi database" appears 2 times in the file. 661
 Warning coding MultipleStringLiterals The String "Parameters:\n\tusername:{}" appears 6 times in the file. 715
 Warning coding MultipleStringLiterals The String "An exception occured when calling setAdmin" appears 3 times in the file. 739
 Warning coding MultipleStringLiterals The String "Parameters:\n\tsuffix:{}" appears 2 times in the file. 807
 Warning coding AvoidInlineConditionals Avoid inline conditionals. 824
 Warning coding MultipleStringLiterals The String "Parameters:\n\ttoken:{}" appears 2 times in the file. 834
 Warning coding MagicNumber '3' is a magic number. 954
 Warning coding MultipleStringLiterals The String "An exception occured when calling removeDOIProject" appears 2 times in the file. 988
 Warning coding AvoidInlineConditionals Avoid inline conditionals. 1040

fr/cnes/doi/plugin/impl/db/impl/JDBCConnector.java

Severity Category Rule Message Line
 Warning imports AvoidStaticImport Using a static member import should be avoided - fr.cnes.doi.plugin.impl.db.impl.DOIDbDataAccessServiceImpl.DB_MAX_ACTIVE_CONNECTIONS. 22
 Warning imports AvoidStaticImport Using a static member import should be avoided - fr.cnes.doi.plugin.impl.db.impl.DOIDbDataAccessServiceImpl.DB_MAX_IDLE_CONNECTIONS. 23
 Warning imports AvoidStaticImport Using a static member import should be avoided - fr.cnes.doi.plugin.impl.db.impl.DOIDbDataAccessServiceImpl.DB_MIN_IDLE_CONNECTIONS. 24
 Warning coding DeclarationOrder Variable access definition in wrong order. 80
 Warning coding DeclarationOrder Variable access definition in wrong order. 84
 Warning coding DeclarationOrder Variable access definition in wrong order. 88
 Warning javadoc JavadocMethod Unused @throws tag for 'DoiRuntimeException'. 117
 Warning coding IllegalCatch Catching 'Exception' is not allowed. 146

fr/cnes/doi/plugin/impl/db/service/DatabaseSingleton.java

Severity Category Rule Message Line
 Warning coding DeclarationOrder Constructor definition in wrong order. 48

fr/cnes/doi/resource/AbstractResource.java

Severity Category Rule Message Line
 Warning coding MultipleStringLiterals The String "Parameters : {} and {}" appears 2 times in the file. 76
 Warning coding MultipleStringLiterals The String "Parameter : {}" appears 2 times in the file. 107

fr/cnes/doi/resource/admin/AuthenticateResource.java

Severity Category Rule Message Line
 Warning javadoc JavadocMethod Missing a Javadoc comment. 33

fr/cnes/doi/resource/admin/ManageProjectsResource.java

Severity Category Rule Message Line
 Warning imports AvoidStaticImport Using a static member import should be avoided - fr.cnes.doi.application.AdminApplication.SUFFIX_PROJECT_NAME_TEMPLATE. 33
 Warning coding MultipleStringLiterals The String "Parameters\n\tmediaForm : {}" appears 2 times in the file. 90
 Warning coding IllegalCatch Catching 'Exception' is not allowed. 118
 Warning coding MultipleStringLiterals The String "projectID" appears 2 times in the file. 164
 Warning coding MultipleStringLiterals The String "xs:integer" appears 2 times in the file. 164
 Warning coding MultipleStringLiterals The String "Operation successful" appears 2 times in the file. 167

fr/cnes/doi/resource/admin/ManageSuperUserResource.java

Severity Category Rule Message Line
 Warning imports AvoidStaticImport Using a static member import should be avoided - fr.cnes.doi.application.AdminApplication.USERS_NAME_TEMPLATE. 27
 Warning coding MultipleStringLiterals The String "user name" appears 2 times in the file. 116
 Warning coding MultipleStringLiterals The String "xs:string" appears 2 times in the file. 116

fr/cnes/doi/resource/admin/ManageSuperUsersResource.java

Severity Category Rule Message Line
 Warning coding MultipleStringLiterals The String "Parameters\n\tmediaForm : {}" appears 2 times in the file. 83
 Warning sizes LineLength Line is longer than 100 characters (found 101). 120

fr/cnes/doi/resource/admin/ManageUsersResource.java

Severity Category Rule Message Line
 Warning sizes LineLength Line is longer than 100 characters (found 101). 107
 Warning coding MultipleStringLiterals The String "Parameters\n\tmediaForm : {}" appears 2 times in the file. 120

fr/cnes/doi/resource/admin/RedirectingResource.java

Severity Category Rule Message Line
 Warning javadoc JavadocMethod Missing a Javadoc comment. 35

fr/cnes/doi/resource/admin/SuffixProjectsDoisResource.java

Severity Category Rule Message Line
 Warning coding AvoidInlineConditionals Avoid inline conditionals. 74
 Warning coding IllegalCatch Catching 'Exception' is not allowed. 96

fr/cnes/doi/resource/admin/SuffixProjectsResource.java

Severity Category Rule Message Line
 Warning coding MultipleStringLiterals The String "Parameters\n\tmediaForm : {}" appears 2 times in the file. 139
 Warning coding MultipleStringLiterals The String "Operation successful" appears 2 times in the file. 195

fr/cnes/doi/resource/admin/TokenResource.java

Severity Category Rule Message Line
 Warning imports AvoidStaticImport Using a static member import should be avoided - fr.cnes.doi.application.AdminApplication.TOKEN_TEMPLATE. 22
 Warning coding AvoidInlineConditionals Avoid inline conditionals. 136
 Warning coding MultipleStringLiterals The String "xs:string" appears 3 times in the file. 288
 Warning coding MultipleStringLiterals The String "Operation successful" appears 2 times in the file. 291

fr/cnes/doi/resource/citation/BaseCitationResource.java

Severity Category Rule Message Line
 Warning design VisibilityModifier Variable 'LOG' must be private and have accessor methods. 55

fr/cnes/doi/resource/citation/FormatCitationResource.java

Severity Category Rule Message Line
 Warning coding MultipleStringLiterals The String " value is not set." appears 3 times in the file. 129
 Warning coding MultipleStringLiterals The String "xs:string" appears 3 times in the file. 158
 Warning coding MultipleStringLiterals The String "Error representation" appears 2 times in the file. 173
 Warning coding MultipleStringLiterals The String "Error" appears 2 times in the file. 174

fr/cnes/doi/resource/citation/LanguageCitationResource.java

Severity Category Rule Message Line
 Warning coding MultipleStringLiterals The String "Operation successful" appears 2 times in the file. 90
 Warning coding MultipleStringLiterals The String "Language representation" appears 2 times in the file. 91

fr/cnes/doi/resource/citation/StyleCitationResource.java

Severity Category Rule Message Line
 Warning coding MultipleStringLiterals The String "Operation successful" appears 2 times in the file. 93
 Warning coding MultipleStringLiterals The String "Style representation" appears 2 times in the file. 94

fr/cnes/doi/resource/mds/BaseMdsResource.java

Severity Category Rule Message Line
 Warning imports AvoidStaticImport Using a static member import should be avoided - fr.cnes.doi.security.UtilsHeader.SELECTED_ROLE_PARAMETER. 25
 Warning design VisibilityModifier Variable 'LOG' must be private and have accessor methods. 59
 Warning coding MultipleStringLiterals The String "Parameter : {}" appears 5 times in the file. 87
 Warning coding MultipleStringLiterals The String "/" appears 5 times in the file. 219
 Warning coding MultipleStringLiterals The String "explainRepresentationID" appears 8 times in the file. 251
 Warning coding AvoidInlineConditionals Avoid inline conditionals. 321

fr/cnes/doi/resource/mds/DoiResource.java

Severity Category Rule Message Line
 Warning sizes LineLength Line is longer than 100 characters (found 101). 111
 Warning coding MultipleStringLiterals The String "explainRepresentationID" appears 4 times in the file. 208

fr/cnes/doi/resource/mds/DoisResource.java

Severity Category Rule Message Line
 Warning imports AvoidStaticImport Using a static member import should be avoided - fr.cnes.doi.client.ClientMDS.POST_DOI. 24
 Warning imports AvoidStaticImport Using a static member import should be avoided - fr.cnes.doi.client.ClientMDS.POST_URL. 25
 Warning imports AvoidStaticImport Using a static member import should be avoided - fr.cnes.doi.security.UtilsHeader.SELECTED_ROLE_PARAMETER. 28
 Warning indentation Indentation 'catch' child have incorrect indentation level 16, expected level should be 12. 95
 Warning sizes LineLength Line is longer than 100 characters (found 101). 158
 Warning coding MultipleStringLiterals The String " value is not set." appears 2 times in the file. 190
 Warning coding MultipleStringLiterals The String "xs:string" appears 3 times in the file. 302
 Warning coding MultipleStringLiterals The String "explainRepresentationID" appears 3 times in the file. 351

fr/cnes/doi/resource/mds/MediaResource.java

Severity Category Rule Message Line
 Warning imports AvoidStaticImport Using a static member import should be avoided - fr.cnes.doi.security.UtilsHeader.SELECTED_ROLE_PARAMETER. 27
 Warning sizes LineLength Line is longer than 100 characters (found 101). 100
 Warning sizes LineLength Line is longer than 100 characters (found 117). 175
 Warning coding MultipleStringLiterals The String "xs:string" appears 3 times in the file. 231
 Warning coding MultipleStringLiterals The String "explainRepresentationID" appears 5 times in the file. 241
 Warning sizes LineLength Line is longer than 100 characters (found 126). 270

fr/cnes/doi/resource/mds/MetadataResource.java

Severity Category Rule Message Line
 Warning sizes LineLength Line is longer than 100 characters (found 101). 136
 Warning sizes LineLength Line is longer than 100 characters (found 106). 164
 Warning sizes LineLength Line is longer than 100 characters (found 101). 202
 Warning coding MultipleStringLiterals The String "DOI name" appears 2 times in the file. 235
 Warning coding MultipleStringLiterals The String "xs:string" appears 3 times in the file. 235
 Warning coding MultipleStringLiterals The String "metadataRepresentation" appears 2 times in the file. 241
 Warning coding MultipleStringLiterals The String "explainRepresentationID" appears 5 times in the file. 246

fr/cnes/doi/resource/mds/MetadatasResource.java

Severity Category Rule Message Line
 Warning coding MultipleStringLiterals The String "invalid XML" appears 2 times in the file. 112
 Warning coding MultipleStringLiterals The String "Parameter : " appears 2 times in the file. 138
 Warning coding MultipleStringLiterals The String "explainRepresentationID" appears 4 times in the file. 209

fr/cnes/doi/resource/mds/package-info.java

Severity Category Rule Message Line
 Warning sizes LineLength Line is longer than 100 characters (found 106). 28
 Warning sizes LineLength Line is longer than 100 characters (found 136). 35
 Warning sizes LineLength Line is longer than 100 characters (found 140). 42
 Warning sizes LineLength Line is longer than 100 characters (found 103). 55

fr/cnes/doi/security/AllowerIP.java

Severity Category Rule Message Line
 Warning sizes LineLength Line is longer than 100 characters (found 137). 38
 Warning coding DeclarationOrder Variable access definition in wrong order. 55
 Warning coding DeclarationOrder Variable access definition in wrong order. 59

fr/cnes/doi/security/LoginBasedVerifier.java

Severity Category Rule Message Line
 Warning sizes LineLength Line is longer than 100 characters (found 101). 91
 Warning coding ReturnCount Return count is 2 (max allowed is 1). 91
 Warning coding AvoidInlineConditionals Avoid inline conditionals. 108

fr/cnes/doi/security/RoleAuthorizer.java

Severity Category Rule Message Line
 Warning coding DeclarationOrder Constructor definition in wrong order. 91

fr/cnes/doi/security/TokenSecurity.java

Severity Category Rule Message Line
 Warning coding DeclarationOrder Static variable definition in wrong order. 69
 Warning coding DeclarationOrder Variable access definition in wrong order. 69
 Warning coding DeclarationOrder Static variable definition in wrong order. 74
 Warning coding DeclarationOrder Variable access definition in wrong order. 74
 Warning coding DeclarationOrder Static variable definition in wrong order. 79
 Warning coding DeclarationOrder Variable access definition in wrong order. 79
 Warning coding DeclarationOrder Static variable definition in wrong order. 84
 Warning coding DeclarationOrder Variable access definition in wrong order. 84
 Warning coding DeclarationOrder Static variable definition in wrong order. 89
 Warning coding DeclarationOrder Static variable definition in wrong order. 94
 Warning coding DeclarationOrder Constructor definition in wrong order. 121
 Warning coding AvoidInlineConditionals Avoid inline conditionals. 133
 Warning coding MultipleStringLiterals The String "token generated : %s" appears 2 times in the file. 183
 Warning coding MultipleStringLiterals The String "Parameters : {}, {} and {}" appears 2 times in the file. 198
 Warning coding MultipleStringLiterals The String "Parameter : {}" appears 2 times in the file. 233
 Warning sizes LineLength Line is longer than 100 characters (found 118). 267

fr/cnes/doi/security/UtilsCryptography.java

Severity Category Rule Message Line
 Warning sizes LineLength Line is longer than 100 characters (found 148). 108
 Warning sizes LineLength Line is longer than 100 characters (found 175). 145
 Warning coding DeclarationOrder Constructor definition in wrong order. 153

fr/cnes/doi/server/DoiServer.java

Severity Category Rule Message Line
 Warning imports AvoidStaticImport Using a static member import should be avoided - fr.cnes.doi.plugin.Utils.addPath. 66
 Warning imports AvoidStaticImport Using a static member import should be avoided - fr.cnes.doi.settings.Consts.USE_FORWARDED_FOR_HEADER. 69
 Warning coding MultipleStringLiterals The String "-1" appears 2 times in the file. 154
 Warning javadoc JavadocMethod Expected @throws tag for 'ClientMdsException'. 232
 Warning javadoc JavadocMethod Expected @throws tag for 'ClientMdsException'. 314
 Warning javadoc JavadocMethod Expected @throws tag for 'ClientMdsException'. 374
 Warning coding MultipleStringLiterals The String "true" appears 3 times in the file. 424

fr/cnes/doi/server/Starter.java

Severity Category Rule Message Line
 Warning javadoc JavadocMethod Missing a Javadoc comment. 78
 Warning coding MultipleStringLiterals The String "\n" appears 4 times in the file. 83
 Warning coding MultipleStringLiterals The String "-" appears 5 times in the file. 84
 Warning sizes LineLength Line is longer than 100 characters (found 104). 103
 Warning sizes LineLength Line is longer than 100 characters (found 101). 105
 Warning coding IllegalCatch Catching 'Exception' is not allowed. 123
 Warning coding MultipleStringLiterals The String ".jar" appears 4 times in the file. 145
 Warning coding IllegalCatch Catching 'Exception' is not allowed. 151
 Warning coding MultipleStringLiterals The String "-------------------------------------------------" appears 2 times in the file. 163
 Warning misc UncommentedMain Uncommented main method found. 305
 Warning metrics CyclomaticComplexity Cyclomatic Complexity is 31 (max allowed is 12). 305
 Warning sizes MethodLength Method length is 172 lines (max allowed is 110). 305
 Warning coding MagicNumber '10' is a magic number. 315
 Warning coding MagicNumber '3' is a magic number. 319
 Warning coding MagicNumber '4' is a magic number. 320
 Warning coding MagicNumber '5' is a magic number. 321
 Warning coding MagicNumber '6' is a magic number. 322
 Warning coding MagicNumber '7' is a magic number. 323
 Warning coding MagicNumber '8' is a magic number. 324
 Warning coding MagicNumber '8' is a magic number. 325
 Warning coding MultipleStringLiterals The String "Error: {}" appears 2 times in the file. 417
 Warning coding DeclarationOrder Constructor definition in wrong order. 481

fr/cnes/doi/services/DOIUsersUpdate.java

Severity Category Rule Message Line
 Warning coding MultipleStringLiterals The String "Parameters {}," appears 2 times in the file. 96

fr/cnes/doi/services/DoiMonitoring.java

Severity Category Rule Message Line
 Warning sizes LineLength Line is longer than 100 characters (found 120). 74
 Warning coding MultipleStringLiterals The String "Parameters : {} and {}" appears 3 times in the file. 94

fr/cnes/doi/services/LandingPageMonitoring.java

Severity Category Rule Message Line
 Warning javadoc JavadocMethod Missing a Javadoc comment. 60
 Warning coding IllegalCatch Catching 'Exception' is not allowed. 116

fr/cnes/doi/settings/DoiSettings.java

Severity Category Rule Message Line
 Warning sizes LineLength Line is longer than 100 characters (found 102). 72
 Warning coding DeclarationOrder Instance variable definition in wrong order. 87
 Warning coding DeclarationOrder Instance variable definition in wrong order. 92
 Warning coding DeclarationOrder Constructor definition in wrong order. 98
 Warning coding ParameterAssignment Assignment of parameter 'level' is not allowed. 111
 Warning coding AvoidInlineConditionals Avoid inline conditionals. 125
 Warning sizes LineLength Line is longer than 100 characters (found 101). 170
 Warning coding MultipleStringLiterals The String "\n" appears 8 times in the file. 185
 Warning coding MultipleStringLiterals The String "Parameters\n\tproperties : {}\n\tkeyword : {}" appears 2 times in the file. 230
 Warning metrics BooleanExpressionComplexity Boolean expression complexity is 9 (max allowed is 3). 277
 Warning coding MultipleStringLiterals The String "Parameter\n\tkey : {}" appears 6 times in the file. 287
 Warning coding AvoidInlineConditionals Avoid inline conditionals. 342
 Warning coding MultipleStringLiterals The String "true" appears 2 times in the file. 362
 Warning javadoc JavadocMethod Unused @throws tag for 'NumberFormatException'. 402
 Warning javadoc JavadocMethod Unused @throws tag for 'NumberFormatException'. 417
 Warning coding MultipleStringLiterals The String "Parameter\n\tkey : {}\n\tdefaultValue" appears 2 times in the file. 421
 Warning javadoc JavadocMethod Unused @throws tag for 'IllegalArgumentException'. 431
 Warning javadoc JavadocMethod Unused @throws tag for 'NumberFormatException'. 448
 Warning javadoc JavadocMethod Unused @throws tag for 'NumberFormatException'. 463

fr/cnes/doi/settings/EmailSettings.java

Severity Category Rule Message Line
 Warning sizes LineLength Line is longer than 100 characters (found 101). 139
 Warning coding IllegalCatch Catching 'RuntimeException' is not allowed. 198
 Warning coding MultipleStringLiterals The String "Cannot send the message with the subject {} : {}" appears 2 times in the file. 200
 Warning coding IllegalCatch Catching 'Exception' is not allowed. 202

fr/cnes/doi/settings/JettySettings.java

Severity Category Rule Message Line
 Warning sizes LineLength Line is longer than 100 characters (found 101). 164
 Warning sizes LineLength Line is longer than 100 characters (found 103). 270
 Warning sizes LineLength Line is longer than 100 characters (found 101). 313
 Warning sizes LineLength Line is longer than 100 characters (found 106). 335
 Warning sizes LineLength Line is longer than 100 characters (found 101). 356
 Warning sizes LineLength Line is longer than 100 characters (found 103). 506
 Warning javadoc JavadocMethod Unused @throws tag for 'IllegalArgumentException'. 552

fr/cnes/doi/settings/ProxySettings.java

Severity Category Rule Message Line
 Warning coding MultipleStringLiterals The String ":" appears 2 times in the file. 248

fr/cnes/doi/utils/UniqueProjectName.java

Severity Category Rule Message Line
 Warning coding MultipleStringLiterals The String "ID" appears 2 times in the file. 95
 Warning coding MagicNumber '9' is a magic number. 128

org/restlet/ext/httpclient4/HttpDOIClientHelper.java

Severity Category Rule Message Line
 Warning sizes LineLength Line is longer than 100 characters (found 101). 245

org/restlet/ext/httpclient4/HttpMethodCall.java

Severity Category Rule Message Line
 Warning coding AvoidInlineConditionals Avoid inline conditionals. 242
 Warning coding AvoidInlineConditionals Avoid inline conditionals. 243
 Warning sizes LineLength Line is longer than 100 characters (found 102). 258
 Warning coding MultipleStringLiterals The String "An error occurred during the communication with the remote HTTP server." appears 2 times in the file. 258
 Warning sizes LineLength Line is longer than 100 characters (found 109). 331
 Warning coding AvoidInlineConditionals Avoid inline conditionals. 357
 Warning sizes LineLength Line is longer than 100 characters (found 102). 399