SiLeBAT/FSK-Lab

View on GitHub

Showing 14,752 of 14,752 total issues

Avoid deeply nested control flow statements.
Open

                        if (q < t) {
                            break;
                        }

Avoid deeply nested control flow statements.
Open

          if (arr1) {
            var $propertyKey, i1 = -1,
              l1 = arr1.length - 1;
            while (i1 < l1) {
              $propertyKey = arr1[i1 += 1];

Avoid deeply nested control flow statements.
Open

          if (it.async) {
            out += ' throw new ValidationError([' + (__err) + ']); ';
          } else {
            out += ' validate.errors = [' + (__err) + ']; return false; ';
          }

Avoid deeply nested control flow statements.
Open

          if (it.opts.messages !== false) {
            out += ' , message: \'should be ';
            if ($typeIsArray) {
              out += '' + ($typeSchema.join(","));
            } else {

Avoid deeply nested control flow statements.
Open

          if (it.opts.useDefaults && !it.compositeRule) {
            if ($rulesGroup.type == 'object' && it.schema.properties) {
              var $schema = it.schema.properties,
                $schemaKeys = Object.keys($schema);
              var arr3 = $schemaKeys;

Avoid deeply nested control flow statements.
Open

        if (sch && typeof sch == 'object') {
          for (var prop in sch)
            _traverse(opts, pre, post, sch[prop], jsonPtr + '/' + key + '/' + escapeJsonPtr(prop), rootSchema, jsonPtr, key, schema, prop);
        }

Avoid deeply nested control flow statements.
Open

                      else if (e.keyCode === 37 || e.keyCode === 39){
                          newViewDate = this.moveAvailableDate(focusDate, dir, 'moveDay');
                      }
                      else if (!this.weekOfDateIsDisabled(focusDate)){
                          newViewDate = this.moveAvailableDate(focusDate, dir, 'moveWeek');

Avoid deeply nested control flow statements.
Open

            if (e.keyCode === 38 || e.keyCode === 40) {
              dir = dir * 4;
            }

Avoid deeply nested control flow statements.
Open

                                                    if (Percentage >= 100) {
                                                        // process
                                                        // completed
                                                    }

Avoid deeply nested control flow statements.
Open

                          if (newViewDate)
                              this._trigger('changeMonth', this.viewDate);

Function preapareParametersForReorder has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

  function preapareParametersForReorder(oldModelName, newMmodelName, newParams, newSuffix, oldParams, oldSuffix) {

Function iterateAndExtend has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

  function iterateAndExtend(reference, model1, model2, model3, model4,vocabularyReferencekey) {

Avoid deeply nested control flow statements.
Open

                    if(firtModelSimulationInfo['name'] !='defaultSimulation' || secondModelSimulationInfo['name'] !='defaultSimulation' ||  thirdModelSimulationInfo['name'] !='defaultSimulation' ){
                        simulationSenarioName = firtModelSimulationInfo['name']+'_'+ secondModelSimulationInfo['name']+'_'+ thirdModelSimulationInfo['name']
                    } 

Function validateConnection has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

      validateConnection: function (cellViewS, magnetS, cellViewT, magnetT, end, linkView) {

Avoid deeply nested control flow statements.
Open

                        if(firtModelSimulationInfo['name'] !='defaultSimulation' || secondModelSimulationInfo['name'] !='defaultSimulation' ||  thirdModelSimulationInfo['name'] !='defaultSimulation' || fourthModelSimulationInfo['name'] !='defaultSimulation'){
                            simulationSenarioName = firtModelSimulationInfo['name']+'_'+ secondModelSimulationInfo['name']+'_'+ thirdModelSimulationInfo['name']+'_'+ fourthModelSimulationInfo['name']
                        } 

Identical blocks of code found in 2 locations. Consider refactoring.
Open

  @Override
  public void setWorkingDirectory(Path workingDirectory, ExecutionContext exec) throws Exception {
    String cmd = "import os\n";
    String directory = workingDirectory.toString().replaceAll("\\\\", "/");
de.bund.bfr.knime.fsklab.deprecatednodes/src-1_7_2/de/bund/bfr/knime/fsklab/nodes/PythonScriptHandler.java on lines 98..106

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 55.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 4 locations. Consider refactoring.
Open

    @Test
    public void testXmlAttribute() {

        final KnimeAttribute attribute = new KnimeAttribute("attr", KnimeAttribute.TYPE_XML);
        assertEquals("attr", attribute.name);
de.bund.bfr.knime.pmm.common.tests/src/de/bund/bfr/knime/pmm/common/generictablemodel/KnimeAttributeTest.java on lines 14..23
de.bund.bfr.knime.pmm.common.tests/src/de/bund/bfr/knime/pmm/common/generictablemodel/KnimeAttributeTest.java on lines 25..34
de.bund.bfr.knime.pmm.common.tests/src/de/bund/bfr/knime/pmm/common/generictablemodel/KnimeAttributeTest.java on lines 36..45

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 55.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

  @Override
  public void setWorkingDirectory(Path workingDirectory, ExecutionContext exec) throws Exception {
    String cmd = "import os\n";
    String directory = workingDirectory.toString().replaceAll("\\\\", "/");
de.bund.bfr.knime.fsklab.deprecatednodes/src-1_9_0/de/bund/bfr/knime/fsklab/nodes/v1_9/PythonScriptHandler.java on lines 102..110

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 55.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 4 locations. Consider refactoring.
Open

    @Test
    public void testDoubleAttribute() {

        final KnimeAttribute attribute = new KnimeAttribute("attr", KnimeAttribute.TYPE_DOUBLE);
        assertEquals("attr", attribute.name);
de.bund.bfr.knime.pmm.common.tests/src/de/bund/bfr/knime/pmm/common/generictablemodel/KnimeAttributeTest.java on lines 14..23
de.bund.bfr.knime.pmm.common.tests/src/de/bund/bfr/knime/pmm/common/generictablemodel/KnimeAttributeTest.java on lines 25..34
de.bund.bfr.knime.pmm.common.tests/src/de/bund/bfr/knime/pmm/common/generictablemodel/KnimeAttributeTest.java on lines 47..56

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 55.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 4 locations. Consider refactoring.
Open

    @Test
    public void testIntAttribute() {

        final KnimeAttribute attribute = new KnimeAttribute("attr", KnimeAttribute.TYPE_INT);
        assertEquals("attr", attribute.name);
de.bund.bfr.knime.pmm.common.tests/src/de/bund/bfr/knime/pmm/common/generictablemodel/KnimeAttributeTest.java on lines 14..23
de.bund.bfr.knime.pmm.common.tests/src/de/bund/bfr/knime/pmm/common/generictablemodel/KnimeAttributeTest.java on lines 36..45
de.bund.bfr.knime.pmm.common.tests/src/de/bund/bfr/knime/pmm/common/generictablemodel/KnimeAttributeTest.java on lines 47..56

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 55.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Severity
Category
Status
Source
Language