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.
Category | Rule | Violations | Severity |
---|---|---|---|
coding | AvoidInlineConditionals | 17 | Warning |
DeclarationOrder | 29 | Warning | |
IllegalCatch | 9 | Warning | |
MagicNumber | 14 | Warning | |
MultipleStringLiterals | 105 | Warning | |
ParameterAssignment | 1 | Warning | |
ReturnCount
|
1 | Warning | |
design | VisibilityModifier | 2 | Warning |
imports | AvoidStaticImport | 33 | Warning |
UnusedImports | 1 | Warning | |
indentation | Indentation | 1 | Warning |
javadoc | JavadocMethod
|
24 | Warning |
JavadocVariable | 1 | Warning | |
metrics | BooleanExpressionComplexity | 1 | Warning |
CyclomaticComplexity
|
1 | Warning | |
misc | UncommentedMain | 1 | Warning |
naming | TypeName | 2 | Warning |
sizes | LineLength
|
45 | Warning |
MethodLength
|
1 | Warning |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Warning | coding | MultipleStringLiterals | The String "realm" appears 2 times in the file. | 139 |
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 |
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 |
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 |
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 |
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 |
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 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Warning | coding | AvoidInlineConditionals | Avoid inline conditionals. | 189 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Warning | sizes | LineLength | Line is longer than 100 characters (found 101). | 66 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Warning | javadoc | JavadocVariable | Missing a Javadoc comment. | 28 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Warning | coding | MultipleStringLiterals | The String "\n" appears 2 times in the file. | 121 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Warning | coding | DeclarationOrder | Constructor definition in wrong order. | 48 |
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 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Warning | javadoc | JavadocMethod | Missing a Javadoc comment. | 33 |
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 |
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 |
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 |
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 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Warning | javadoc | JavadocMethod | Missing a Javadoc comment. | 35 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Warning | coding | AvoidInlineConditionals | Avoid inline conditionals. | 74 |
Warning | coding | IllegalCatch | Catching 'Exception' is not allowed. | 96 |
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 |
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 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Warning | design | VisibilityModifier | Variable 'LOG' must be private and have accessor methods. | 55 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Warning | coding | DeclarationOrder | Constructor definition in wrong order. | 91 |
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 |
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 |
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 |
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 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Warning | coding | MultipleStringLiterals | The String "Parameters {}," appears 2 times in the file. | 96 |
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 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Warning | javadoc | JavadocMethod | Missing a Javadoc comment. | 60 |
Warning | coding | IllegalCatch | Catching 'Exception' is not allowed. | 116 |
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 |
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 |
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 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Warning | coding | MultipleStringLiterals | The String ":" appears 2 times in the file. | 248 |
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 |
Severity | Category | Rule | Message | Line |
---|---|---|---|---|
Warning | sizes | LineLength | Line is longer than 100 characters (found 101). | 245 |
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 |