SiLeBAT/FSK-Lab

View on GitHub

Showing 14,752 of 14,752 total issues

Method setRms has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    public void setRms(final Double rms) throws PmmException {
        if (rms == null)
            this.rms = Double.NaN;
        else {
            if (Double.isInfinite(rms)) {

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 setRss has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    public void setRss(final Double rss) throws PmmException {
        if (rss == null)
            this.rss = Double.NaN;
        else {
            if (Double.isInfinite(rss)) {

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 updateXUnitBox has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    private void updateXUnitBox() {
        String var = (String) xBox.getSelectedItem();

        xUnitBox.removeActionListener(this);
        xUnitBox.removeAllItems();

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 removeIndepVar has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    public void removeIndepVar(final String varName) {
        for (PmmXmlElementConvertable el : independent.getElementSet()) {
            if (el instanceof IndepXml) {
                IndepXml ix = (IndepXml) el;
                if (ix.name.equals(varName)) {

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 updateYUnitBox has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    private void updateYUnitBox() {
        String var = (String) yBox.getSelectedItem();

        yUnitBox.removeActionListener(this);
        yUnitBox.removeAllItems();

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 findIndep has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    private IndepXml findIndep(final String name) {
        for (PmmXmlElementConvertable el : independent.getElementSet()) {
            if (el instanceof IndepXml) {
                IndepXml indep = (IndepXml) el;
                if (indep.name.equals(name)) {

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 getChecked has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    public Boolean getChecked() throws PmmException {
        PmmXmlDoc mdInfoXmlDoc = getMdInfo();
        if (mdInfoXmlDoc != null) {
            MdInfoXml mdix = null;
            for (PmmXmlElementConvertable el : mdInfoXmlDoc.getElementSet()) {

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 getQualityScore has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    public Integer getQualityScore() throws PmmException {
        PmmXmlDoc mdInfoXmlDoc = getMdInfo();
        if (mdInfoXmlDoc != null) {
            MdInfoXml mdix = null;
            for (PmmXmlElementConvertable el : mdInfoXmlDoc.getElementSet()) {

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 evaluateFunction has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    public static List<Double> evaluateFunction(String formula, List<String> parameters, List<Double> parameterValues,
            List<String> variables, List<List<Double>> variableValues) {
        List<Double> values = new ArrayList<>();
        DJep parser = createParser();

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 isEndOfFile has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    private boolean isEndOfFile(Sheet sheet, int i) {
        Row row = sheet.getRow(i);

        if (row == null) {
            return true;

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 setShapeLists has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    public void setShapeLists(Map<String, List<Shape>> shapeLists) {
        Map<Shape, String> shapeMap = colorAndShapes.getNameByShapeMap();

        for (int i = 0; i < selectTable.getRowCount(); i++) {
            List<Shape> shapeList = shapeLists

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 getComment has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    public String getComment() throws PmmException {
        PmmXmlDoc mdInfoXmlDoc = getMdInfo();
        if (mdInfoXmlDoc != null) {
            MdInfoXml mdix = null;
            for (PmmXmlElementConvertable el : mdInfoXmlDoc.getElementSet()) {

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 performCopy has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    private void performCopy() {
        StringBuilder sbf = new StringBuilder();
        int numcols = getSelectedColumnCount();
        int numrows = getSelectedRowCount();
        int[] rowsselected = getSelectedRows();

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 getVarParMap has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    public static LinkedHashMap<String, String> getVarParMap(String varparStr) {
        LinkedHashMap<String, String> ret = new LinkedHashMap<>();
        if (varparStr != null) {
            String[] t1 = varparStr.split(",");
Severity: Minor
Found in de.bund.bfr.knime.pmm.common/src/de/bund/bfr/knime/pmm/common/DbIo.java - About 25 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

Method checkInWindowsFolders has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    private static void checkInWindowsFolders(File[] folders) {
        for (File folder : folders) {
            File binDir = new File(folder, "bin");
            if (binDir.isDirectory()) {
                File executable = new File(binDir, "R.exe");

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 findSystemRUnix has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    private static void findSystemRUnix() {
        String[] searchPaths = { "/usr/bin/R", "/usr/local/bin/R" };
        for (String s : searchPaths) {
            File f = new File(s);
            if (f.canExecute()) {

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 getSeconds has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    public static double getSeconds(String unit) {
        if (unit == null) return 1;
        if (unit.equalsIgnoreCase("min")) return 60;
        if (unit.equalsIgnoreCase("h")) return 60*60;
        if (unit.equalsIgnoreCase("d")) return 24*60*60;

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 getRBinPath has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    @Override
    public Path getRBinPath(final String command) {
        Path binPath = Paths.get(getRHome(), "bin");

        if (Platform.getOS().equals(Platform.OS_WIN32)) {

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 importDataType has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

  private static DataType importDataType(final REXP column) {
    if (column.isNull()) {
      return StringCell.TYPE;
    } else if (column.isLogical()) {
      return BooleanCell.TYPE;

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 executeAndWait has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

    protected void executeAndWait(final NodeID... ids)
            throws Exception {
            NodeID prefix = null;
            WorkflowManager parent = null;
            for (NodeID id : ids) {
Severity: Minor
Found in de.bund.bfr.knime.testflows/src/WorkflowTestCase.java - About 25 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

Severity
Category
Status
Source
Language