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 |