Fork me on GitHub

PMD Results

The following document contains the results of PMD 7.10.0.

Violations By Priority

Priority 3

gov/nist/secauto/metaschema/schemagen/json/impl/JsonGenerationState.java

Rule Violation Line
CouplingBetweenObjects A value of 38 may denote a high amount of coupling within the class (threshold: 20) 6324

gov/nist/secauto/metaschema/schemagen/json/impl/JsonSchemaHelper.java

Rule Violation Line
CouplingBetweenObjects A value of 34 may denote a high amount of coupling within the class (threshold: 20) 6398
GodClass Possible God Class (WMC=49, ATFD=33, TCC=0.000%) 50
CyclomaticComplexity The method 'toJsonValue(Object, IDataTypeAdapter<?>)' has a cyclomatic complexity of 18. 106

gov/nist/secauto/metaschema/schemagen/xml/impl/AbstractXmlDatatypeProvider.java

Rule Violation Line
AvoidSynchronizedStatement Use ReentrantLock rather than synchronization 3447

gov/nist/secauto/metaschema/schemagen/xml/impl/XmlGenerationState.java

Rule Violation Line
CouplingBetweenObjects A value of 21 may denote a high amount of coupling within the class (threshold: 20) 6265

Files

gov/nist/secauto/metaschema/schemagen/json/impl/JsonGenerationState.java

Rule Violation Priority Line
CouplingBetweenObjects A value of 38 may denote a high amount of coupling within the class (threshold: 20) 3 6324

gov/nist/secauto/metaschema/schemagen/json/impl/JsonSchemaHelper.java

Rule Violation Priority Line
CouplingBetweenObjects A value of 34 may denote a high amount of coupling within the class (threshold: 20) 3 6398
GodClass Possible God Class (WMC=49, ATFD=33, TCC=0.000%) 3 50
CyclomaticComplexity The method 'toJsonValue(Object, IDataTypeAdapter<?>)' has a cyclomatic complexity of 18. 3 106

gov/nist/secauto/metaschema/schemagen/xml/impl/AbstractXmlDatatypeProvider.java

Rule Violation Priority Line
AvoidSynchronizedStatement Use ReentrantLock rather than synchronization 3 3447

gov/nist/secauto/metaschema/schemagen/xml/impl/XmlGenerationState.java

Rule Violation Priority Line
CouplingBetweenObjects A value of 21 may denote a high amount of coupling within the class (threshold: 20) 3 6265

Suppressed Violations

Filename Rule message Suppression type Reason
gov/nist/secauto/metaschema/schemagen/AbstractSchemaGenerator.java Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block //nopmd need to catch close exception
gov/nist/secauto/metaschema/schemagen/AbstractSchemaGenerator.java A catch statement that catches an exception only to rethrow it should be avoided. //nopmd avoid nesting same exception
gov/nist/secauto/metaschema/schemagen/ModuleIndex.java If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation @suppresswarnings
gov/nist/secauto/metaschema/schemagen/datatype/AbstractDatatypeManager.java If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation //nopmd - intentional
gov/nist/secauto/metaschema/schemagen/json/impl/DataTypeRestrictionDefinitionJsonSchema.java The method 'generateEnumArray()' has a cyclomatic complexity of 11. @suppresswarnings
gov/nist/secauto/metaschema/schemagen/json/impl/DataTypeRestrictionDefinitionJsonSchema.java Avoid instantiating new objects inside loops //nopmd unavoidable
gov/nist/secauto/metaschema/schemagen/json/impl/DataTypeRestrictionDefinitionJsonSchema.java Avoid instantiating new objects inside loops //nopmd unavoidable
gov/nist/secauto/metaschema/schemagen/json/impl/IJsonGenerationState.java Rather than using a lot of String arguments, consider using a container object for those values. @suppresswarnings
gov/nist/secauto/metaschema/schemagen/json/impl/JsonGenerationState.java A method should have only one exit point, and that should be the last statement in the method @suppresswarnings
gov/nist/secauto/metaschema/schemagen/json/impl/JsonGenerationState.java A method should have only one exit point, and that should be the last statement in the method @suppresswarnings
gov/nist/secauto/metaschema/schemagen/json/impl/JsonGenerationState.java A method should have only one exit point, and that should be the last statement in the method @suppresswarnings
gov/nist/secauto/metaschema/schemagen/json/impl/JsonGenerationState.java Rather than using a lot of String arguments, consider using a container object for those values. @suppresswarnings
gov/nist/secauto/metaschema/schemagen/json/impl/JsonGenerationState.java Ensure that resources like this JsonGenerator object are closed after use //nopmd not closable here
gov/nist/secauto/metaschema/schemagen/xml/XmlSchemaGenerator.java A value of 22 may denote a high amount of coupling within the class (threshold: 20) //nopmd
gov/nist/secauto/metaschema/schemagen/xml/XmlSchemaGenerator.java If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation //nopmd concurrency not needed
gov/nist/secauto/metaschema/schemagen/xml/impl/DocumentationGenerator.java The method 'generateDocumentation(String, MarkupLine, List<MarkupMultiline>, String, XmlGenerationState)' has a cyclomatic complexity of 10. //nopmd acceptable complexity
gov/nist/secauto/metaschema/schemagen/xml/impl/schematype/XmlComplexTypeAssemblyDefinition.java The method 'generateModelInstance(IModelInstanceAbsolute, XmlGenerationState)' has a cyclomatic complexity of 13. //nopmd acceptable complexity
gov/nist/secauto/metaschema/schemagen/xml/impl/schematype/XmlSimpleTypeUnion.java The method 'generate(XmlGenerationState)' has a cyclomatic complexity of 10. //nopmd unavoidable complexity