SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Function _makeDraggable has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _makeDraggable: function() {
        var that = this,
            options = this.options;

        function filteredUi( ui ) {

Function _eventHandler has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _eventHandler: function( event ) {
        var options = this.options,
            active = this.active,
            anchor = $( event.currentTarget ),
            tab = anchor.closest( "li" ),

Function extendTo has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function extendTo(pos) {
    if (cmp(lastPos, pos) == 0) { return }
    lastPos = pos

    if (behavior.unit == "rectangle") {

Function patchDisplay has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function patchDisplay(cm, updateNumbersFrom, dims) {
  var display = cm.display, lineNumbers = cm.options.lineNumbers
  var container = display.lineDiv, cur = container.firstChild

  function rm(node) {

Function extendTo has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function extendTo(pos) {
    if (cmp(lastPos, pos) == 0) { return }
    lastPos = pos

    if (behavior.unit == "rectangle") {

Function patchDisplay has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function patchDisplay(cm, updateNumbersFrom, dims) {
  var display = cm.display, lineNumbers = cm.options.lineNumbers
  var container = display.lineDiv, cur = container.firstChild

  function rm(node) {

Function highlightLine has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function highlightLine(cm, line, context, forceToEnd) {
  // A styles array always starts with a number identifying the
  // mode/overlays that it is based on (for easy invalidation).
  var st = [cm.state.modeGen], lineClasses = {}
  // Compute the base array of styles

Function ReactElement has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var ReactElement = function (type, key, ref, self, source, owner, props) {
  var element = {
    // This tag allows us to uniquely identify this as a React Element
    $$typeof: REACT_ELEMENT_TYPE,

Function createWrapper has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function createWrapper(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {
      var isBindKey = bitmask & BIND_KEY_FLAG;
      if (!isBindKey && typeof func != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }

Function baseMergeDeep has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function baseMergeDeep(object, source, key, mergeFunc, customizer, stackA, stackB) {
      var length = stackA.length,
          srcValue = source[key];

      while (length--) {

Function throttle has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  _.throttle = function(func, wait, options) {
    var timeout, context, args, result;
    var previous = 0;
    if (!options) options = {};

Consider simplifying this complex logical expression.
Open

                    if (selected.equals(XLSReader.ID_COLUMN) || selected.equals("Comment")
                            || selected.equals(AttributeUtilities.TIME)
                            || selected.equals(AttributeUtilities.CONCENTRATION)
                            || selected.equals(XLSReader.CONCENTRATION_STDDEV_COLUMN)
                            || selected.equals(XLSReader.CONCENTRATION_MEASURE_NUMBER)

Consider simplifying this complex logical expression.
Open

        if (thePM.getRsquared() != null && !Double.isNaN(thePM.getRsquared()) ||
                thePM.getRms() != null && !Double.isNaN(thePM.getRms()) ||
                thePM.getAic() != null && !Double.isNaN(thePM.getAic()) ||
                thePM.getBic() != null && !Double.isNaN(thePM.getBic()))
            return true;

Consider simplifying this complex logical expression.
Open

                                    if (tn2.equals("Literatur") && id <= 231 || tn2.equals("Methoden") && id <= 1481 ||
                                            tn2.equals("Kontakte") && id <= 119 || tn2.equals("Messwerte") && id <= 18) {
                                        
                                    }
                                    else {
Severity: Critical
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/actions/PlausibleAction.java - About 1 hr to fix

Consider simplifying this complex logical expression.
Open

            if ((conn == null || conn.isClosed() || !isAdminConnection && doAdmin) && dbUsername != null && dbPassword != null && dbPath != null && path2XmlFile != null) {
                establishDefaultAdminConn();
                isAdminConnection = true;
            }
Severity: Critical
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/MyDBI.java - About 1 hr to fix

Consider simplifying this complex logical expression.
Open

            if ((conn == null || conn.isClosed() || isAdminConnection && !doAdmin) && dbUsername != null && dbPassword != null && dbPath != null && path2XmlFile != null) {
                establishDBConnection(dbUsername, dbPassword);
                isAdminConnection = false;
            }
Severity: Critical
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/MyDBI.java - About 1 hr to fix

Consider simplifying this complex logical expression.
Open

                if (toksT.length > 0) {
                    Category modelUnitCat = modelUnit == null ? null : Categories.getCategoryByUnit(modelUnit);
                    Category timeUnitCat = timeUnit == null ? null : Categories.getCategoryByUnit(timeUnit);
                    int i=0;
                    for (Object time : toksT) {
Severity: Critical
Found in de.bund.bfr.knime.pmm.common/src/de/bund/bfr/knime/pmm/common/DbIo.java - About 1 hr to fix

Consider simplifying this complex logical expression.
Open

    if (type == "async" ||
        (type == "variable" &&
         (value == "static" || value == "get" || value == "set" || (isTS && isModifier(value))) &&
         cx.stream.match(/^\s+[\w$\xa1-\uffff]/, false))) {
      cx.marked = "keyword";

Consider simplifying this complex logical expression.
Open

          if (/@|\$|\d/.test(ch) ||
              /^\{/.test(textAfter) ||
/^\s*\/(\/|\*)/.test(textAfter) ||
              /^\s*\/\*/.test(prevLineFirstWord) ||
              /^\s*[\w-\.\[\]\'\"]+\s*(\?|:|\+)?=/i.test(textAfter) ||
Severity: Critical
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/stylus/stylus.js - About 1 hr to fix

Consider simplifying this complex logical expression.
Open

        if ((state.prevToken == "operator" && textAfter != "}" && state.context.type != "}") ||
          state.prevToken == "variable" && firstChar == "." ||
          (state.prevToken == "}" || state.prevToken == ")") && firstChar == ".")
          return indentUnit * 2 + ctx.indented;
Severity: Critical
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/clike/clike.js - About 1 hr to fix
Severity
Category
Status
Source
Language