SiLeBAT/FSK-Lab

View on GitHub

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));

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")

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 {

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
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/app/app.editable.mt.ArrayForm.js - About 35 mins to fix

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;

Avoid too many return statements within this method.
Open

                return result;

Avoid too many return statements within this method.
Open

                return result;

Avoid too many return statements within this method.
Open

                return result;

Avoid too many return statements within this method.
Open

                return result;

Avoid too many return statements within this method.
Open

                return result;

Avoid too many return statements within this method.
Open

                return result;

Avoid too many return statements within this method.
Open

                return result;

Avoid too many return statements within this method.
Open

            default: return defaultCase(theEObject);

Avoid too many return statements within this method.
Open

                return result;

Avoid too many return statements within this method.
Open

                return result;

Avoid too many return statements within this method.
Open

                return result;

Avoid too many return statements within this method.
Open

                return result;

Avoid too many return statements within this method.
Open

                return result;

Avoid too many return statements within this method.
Open

                return result;

Avoid too many return statements within this method.
Open

                return result;
Severity
Category
Status
Source
Language