Showing 6,856 of 14,752 total issues
Method compare
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
static void compare(Model1DataTuple actual, Model1DataTuple expected) {
assertThat(actual.condId, equalTo(expected.condId));
assertThat(actual.combaseId, equalTo(expected.combaseId));
assertThat(actual.miscList.getMiscs().length, equalTo(expected.miscList.getMiscs().length));
- Read upRead up
- Create a ticketCreate a ticket
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 monitor
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private REXP monitor(final Callable<REXP> task)
throws InterruptedException, RException, CanceledExecutionException {
final FutureTask<REXP> runningTask = new FutureTask<>(task);
final Thread t =
(m_useNodeContext) ? ThreadUtils.threadWithContext(runningTask, "R-Evaluation")
- Read upRead up
- Create a ticketCreate a ticket
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 finishOutputCapturing
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public void finishOutputCapturing(final ExecutionMonitor progress)
throws RException, CanceledExecutionException, InterruptedException {
String err = "", out = "";
REXP output = null;
try {
- Read upRead up
- Create a ticketCreate a ticket
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
Function _create
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
_create(name, mandatory, helperText) {
let O = this;
if ( name ) {
// formgroup
- Read upRead up
- Create a ticketCreate a ticket
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
Avoid too many return
statements within this method. Open
return result;
- Create a ticketCreate a ticket
Avoid too many return
statements within this method. Open
return result;
- Create a ticketCreate a ticket
Avoid too many return
statements within this method. Open
return result;
- Create a ticketCreate a ticket
Avoid too many return
statements within this method. Open
return result;
- Create a ticketCreate a ticket
Avoid too many return
statements within this method. Open
return result;
- Create a ticketCreate a ticket
Avoid too many return
statements within this method. Open
return result;
- Create a ticketCreate a ticket
Avoid too many return
statements within this method. Open
return result;
- Create a ticketCreate a ticket
Avoid too many return
statements within this method. Open
return result;
- Create a ticketCreate a ticket
Avoid too many return
statements within this method. Open
default: return defaultCase(theEObject);
- Create a ticketCreate a ticket
Avoid too many return
statements within this method. Open
return result;
- Create a ticketCreate a ticket
Avoid too many return
statements within this method. Open
return result;
- Create a ticketCreate a ticket
Avoid too many return
statements within this method. Open
return result;
- Create a ticketCreate a ticket
Avoid too many return
statements within this method. Open
return result;
- Create a ticketCreate a ticket
Avoid too many return
statements within this method. Open
return result;
- Create a ticketCreate a ticket
Avoid too many return
statements within this method. Open
return result;
- Create a ticketCreate a ticket
Avoid too many return
statements within this method. Open
return result;
- Create a ticketCreate a ticket