Showing 34 of 78 total issues
Method whitespace
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
public <T extends Exception> void whitespace(final String runStateJsonMapKey,
final String path,
final Integer prefix,
final Integer suffix,
final Class<T> t,
Method setUnsupportedDataTypeException
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public void setUnsupportedDataTypeException(final String runStateJsonMapKey,
final String path,
final String value,
final String type,
final String expectedExceptionMessageRaw)
Method transformationCheck
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public <T extends Exception> void transformationCheck(final String runStateJsonMapKey,
final String path,
final Class<T> t,
final String expectedExceptionMessageRaw,
final Transformation transformation)
Method whitespaceIllegalPathOperationException
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public void whitespaceIllegalPathOperationException(final String runStateJsonMapKey,
final String path,
final int prefix,
final int suffix,
final String expectedExceptionMessageRaw)
Method setIllegalOperationException
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public void setIllegalOperationException(final String runStateJsonMapKey,
final String path,
final String value,
final String type,
final String expectedExceptionMessageRaw)
Method transform
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
private Map<String, Object> transform(final int depth,
final Map<String, Object> input,
final String previousPath,
final List<PathElement> pathElements,
final Transformation transformation)
Method whitespaceUnsupportedDataTypeException
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public void whitespaceUnsupportedDataTypeException(final String runStateJsonMapKey,
final String path,
final int prefix,
final int suffix,
final String expectedExceptionMessageRaw)
Avoid too many return
statements within this method. Open
return;
Avoid too many return
statements within this method. Open
return;
Avoid too many return
statements within this method. Open
return;
Avoid too many return
statements within this method. Open
return;
Method propertySet
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
@Override
protected void propertySet(Bean bean, String propertyName, Object newValue, boolean quiet) {
switch (propertyName.hashCode()) {
case 3575610: // type
if (quiet) {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method pad
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
@VisibleForTesting
String pad(final Object input,
final int prefix,
final int suffix,
final String currentPath)
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method reverse
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
@VisibleForTesting
public String reverse(final String currentPath,
final Object input)
throws IllegalPathOperationException {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"