SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Method createUI has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void createUI() {

      FPanel simulationPanel = new FPanel();
      simulationPanel.setLayout(new BorderLayout());
      JScrollPane parametersPane = new JScrollPane(

Method loadPortObject has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        @Override
        public FskPortObject loadPortObject(PortObjectZipInputStream in, PortObjectSpec spec, ExecutionMonitor exec)
                throws IOException, CanceledExecutionException {

            FskPortObject portObj = new FskPortObject();

Method createUI has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void createUI() {

      FPanel simulationPanel = new FPanel();
      simulationPanel.setLayout(new BorderLayout());
      JScrollPane parametersPane = new JScrollPane(

Method getParameter has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  public DataArray getParameter() {
    try {
      if (isOutputClosed) {
        // open Json file stream if it isn't already open
        if (isInputClosed) {

Method manageColor has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      private void manageColor() {
          Color fg = Color.BLACK;
          Color bg = Color.WHITE;
          if (object != null) {
              String param = object.toString();

Method loadSettingsFrom has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    protected void loadSettingsFrom(NodeSettingsRO settings,
            PortObject[] inObjects) throws NotConfigurableException { 
        PCMLPortObject pcmlPortObject = (PCMLPortObject) inObjects[0];
        PCMLDocument pcmlDoc = pcmlPortObject.getPcmlDoc();

Method waitWhile has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected void waitWhile(final NodeContainer nc,
            final Hold hold) throws Exception {
        if (!hold.shouldHold()) {
            return;
        }
Severity: Minor
Found in de.bund.bfr.knime.testflows/src/WorkflowTestCase.java - About 1 hr to fix

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

  function x86(_parserConfig) {
    lineCommentStartSymbol = "#";

    registers.ax  = "variable";
    registers.eax = "variable-2";
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/gas/gas.js - About 1 hr to fix

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

  function tokenBase(stream, state) {
    var ch = stream.next();

    if (/[\d\.]/.test(ch)) {
      if (ch == ".") {
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/fcl/fcl.js - About 1 hr to fix

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

    function tokenBase(stream, state) {
      var ch = stream.next();
      if (ch == '"' || ch == "'") {
        state.tokenize = tokenString(ch);
        return state.tokenize(stream, state);
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/asn.1/asn.1.js - About 1 hr to fix

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") {
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 1 hr to fix

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
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 1 hr to fix

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

  MultipleSelection.prototype.update = function (data) {
    this.clear();

    if (data.length === 0) {
      return;
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/lib/select2.full.js - About 1 hr to fix

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

    constructor(settings, $container, metadata, uploadDates, executionTimes) {
        let O = this;
        O._$container = $container;
        O._$wrapper = null;
        O.totalRows = 0;
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/app/app.table.js - About 1 hr to fix

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

        _create(name, mandatory, helperText, value) {
            let O = this;
            // formgroup
            let $formGroup = $( '<div class="form-group row"></div>' );

Severity: Minor
Found in de.bund.bfr.knime.js/src/js/app/app.editable.mt.TextareaForm.js - About 1 hr to fix

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

        makeArray: function(data) {
            var count, obj, result = [], item, iterateItem;
            if(!data || typeof data === 'string') {
                return null; 
            }

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

  function d3_rgb_parse(format, rgb, hsl) {
    var r = 0, g = 0, b = 0, m1, m2, name;
    m1 = /([a-z]+)\((.*)\)/i.exec(format);
    if (m1) {
      m2 = m1[2].split(",");

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

    function deleteFunctionObject(internalId,dbuuid)
    {
        deleteMetaDataSection(internalId,dbuuid);
        removeModel(internalId,dbuuid);
        updateParameterSliders();

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

    _slide: function( event, index, newVal ) {
        var otherVal,
            newValues,
            allowed;

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
Severity
Category
Status
Source
Language