SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Function _runModelView has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    async _runModelView ( modelId ) {
        let O = this;
        _log( 'PANEL SIM / _runModelView : '+ O._modelId, 'secondary' );

        modelId = modelId || O._modelId;
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/app/app.simulation.js - About 1 hr to fix

Function _checkValue has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      function _checkValue() {
        var val, parsedval, returnval;

        val = settings.callback_before_calculation(originalinput.val());

Severity: Minor
Found in de.bund.bfr.knime.js/src/js/lib/bootstrap-touchspin.js - About 1 hr to fix

Function moveMonth has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        moveMonth: function(date, dir){
            if (!isValidDate(date))
                return this.o.defaultViewDate;
            if (!dir)
                return date;
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/lib/bootstrap-datepicker.js - About 1 hr to fix

Function gobbleNumericLiteral has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

                gobbleNumericLiteral = function() {
                    var number = '', ch, chCode;
                    while(isDecimalDigit(exprICode(index))) {
                        number += exprI(index++);
                    }
Severity: Minor
Found in de.bund.bfr.knime.pmm.nodes/js-lib/jsep/0_3_1/debug/js/jsep.js - About 1 hr to fix

Function initJQuery has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function initJQuery() 
    {
        $("#dataChoiceDiv").hide();
        $("#graphTypeDiv").hide();
        

Function clip has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var effectClip = $.effects.effect.clip = function( o, done ) {
    // Create element
    var el = $( this ),
        props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
        mode = $.effects.setMode( el, o.mode || "hide" ),

Function equal has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function equal(a, b) {
  if (a === b) return true;

  if (a && b && typeof a == 'object' && typeof b == 'object') {
    var arrA = isArray(a)

Function equalObjects has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function equalObjects(object, other, equalFunc, customizer, isLoose, stackA, stackB) {
      var objProps = keys(object),
          objLength = objProps.length,
          othProps = keys(other),
          othLength = othProps.length;

Function _compile has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function _compile(schemaObj, root) {
  if (schemaObj.compiling) {
    schemaObj.validate = callValidate;
    callValidate.schema = schemaObj.schema;
    callValidate.errors = null;

Function show has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Collapse.prototype.show = function () {
    if (this.transitioning || this.$element.hasClass('in')) return

    var activesData
    var actives = this.$parent && this.$parent.children('.panel').children('.in, .collapsing')

Method saveSettings has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
Open

    public void saveSettings(Config cM) {
        int[] iarr;
        String[] narr;
        if (forMatrices) {
            iarr = new int[lmat.size()];

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

    public String[] getNArr() {
        String[] narr;
        if (forMatrices) {
            narr = new String[lmat.size()];
            for (int i=0;i<lmat.size();i++) {

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

    public int[] getIArr() {
        int[] iarr;
        if (forMatrices) {
            iarr = new int[lmat.size()];
            for (int i=0;i<lmat.size();i++) {

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

    public void setSetting( final FoodProcessSetting fps ) {        
        int i;
        Double val;
        
        nameField.setText(fps.getProcessName());

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

    public AgentsSetting getSetting() throws InvalidSettingsException {        
        AgentsSetting as;

        as = new AgentsSetting();
        

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

    private static Double calculateWeightedMean(Double sum, final Double newVal, final Double partVol, final Double totalVol,
            final String defaultValue) {
        // hier erstmal trivial ohne grosse Mischerei...
        if (defaultValue != null && !defaultValue.isEmpty()) {
            try{sum = Double.parseDouble(defaultValue);}catch(Exception e){}

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

    public static void setModelId(Model model, String id) {

        final String modelType = model.getModelType();
        if (modelType.equalsIgnoreCase("genericModel")) {
            ((GenericModel) model).getGeneralInformation().setIdentifier(id);

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

  @Override
  public boolean equals(Object obj) {
    if (this == obj)
      return true;
    if (obj == null || getClass() != obj.getClass())

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

    @Override
    public boolean eIsSet(int featureID) {
        switch (featureID) {
            case MetadataPackage.DIETARY_ASSESSMENT_METHOD__COLLECTION_TOOL:
                return COLLECTION_TOOL_EDEFAULT == null ? collectionTool != null : !COLLECTION_TOOL_EDEFAULT.equals(collectionTool);

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

    @Override
    protected BufferedDataTable[] execute(final BufferedDataTable[] inData, final ExecutionContext exec)
            throws Exception {
        XLSReader xlsReader = new XLSReader();
        List<KnimeTuple> tuples = new ArrayList<>(xlsReader

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