SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Function findPosH has 52 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function findPosH(doc, pos, dir, unit, visually) {
  var oldPos = pos
  var origDir = dir
  var lineObj = getLine(doc, pos.line)
  function findNextLine() {

Function onDrop has 52 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function onDrop(e) {
  var cm = this
  clearDragCursor(cm)
  if (signalDOMEvent(cm, e) || eventInWidget(cm.display, e))
    { return }

Function findPosH has 52 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function findPosH(doc, pos, dir, unit, visually) {
  var oldPos = pos
  var origDir = dir
  var lineObj = getLine(doc, pos.line)
  function findNextLine() {

Function onDrop has 52 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function onDrop(e) {
  var cm = this
  clearDragCursor(cm)
  if (signalDOMEvent(cm, e) || eventInWidget(cm.display, e))
    { return }

Function addKeyword has 52 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function addKeyword(keyword, definition) {
  /* jshint validthis: true */
  /* eslint no-shadow: 0 */
  var RULES = this.RULES;
  if (RULES.keywords[keyword])

Function createBody has 52 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function createBody() {

    $('body').html(`<div class="container-fluid">
    <nav class="navbar navbar-default">
     <div class="navbar-collapse collapse">

Function editModelsPool has 52 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function editModelsPool(key, modelParameters, modelName, individualMetadata, modelType, modelScript, vis, Location, simulation, downloadURL) {
    _simulationMap[escapeHtmlChars(modelName.trim())] = { "selectedSimulation": "defaultSimulation", "simulationList":simulation };
    updatesFinalSimulation();
    modelsPool[key]['modelScript'] = modelScript;
    modelsPool[key]['simulation'] = simulation;

File MyTrigger.java has 253 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*******************************************************************************
 * Copyright (c) 2015 Federal Institute for Risk Assessment (BfR), Germany
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/MyTrigger.java - About 2 hrs to fix

File vbscript.js has 253 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE

/*
For extra ASP classic objects, initialize CodeMirror instance with this option:

Method convertStudy has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    static Study convertStudy(JsonNode node) {

        Study study = new Study();

        if (node.has("studyIdentifier")) {

Method convert has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private JsonNode convert(JsonNode originalMetadata, Map<String, Object> originalClass,
            Map<String, Object> targetClass) {
          if(originalMetadata == null) {
          return null;
        }

Method eSet has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public void eSet(int featureID, Object newValue) {
        switch (featureID) {
            case MetadataPackage.STUDY__STUDY_IDENTIFIER:
                setStudyIdentifier((String)newValue);

Method eUnset has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public void eUnset(int featureID) {
        switch (featureID) {
            case MetadataPackage.STUDY__STUDY_IDENTIFIER:
                setStudyIdentifier(STUDY_IDENTIFIER_EDEFAULT);

Method initDialog has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private Component initDialog() {
    JPanel panel = new JPanel(new GridBagLayout());
    GridBagConstraints c = new GridBagConstraints();
    c.insets = new Insets(5, 5, 5, 5);
    c.gridx = 0;

Method updateAgentPanel has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void updateAgentPanel() {
        agentButtons.clear();
        agentBox = new JComboBox<>(new String[] { DO_NOT_USE, OTHER_PARAMETER });
        agentButton = new JButton(OTHER_PARAMETER);

Method createPanel has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        private JPanel createPanel(Map<String, String> concentrationParameters,
                Map<String, String> lagParameters) {
            initBoxes = new LinkedHashMap<>();
            lagBoxes = new LinkedHashMap<>();
            okButton = new JButton("OK");

Method updateMatrixPanel has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void updateMatrixPanel() {
        matrixButtons.clear();
        matrixBox = new JComboBox<>(new String[] { DO_NOT_USE, OTHER_PARAMETER });
        matrixButton = new JButton(OTHER_PARAMETER);

Method doCheckState has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        @Override
        protected boolean doCheckState() {
            final String rHome = getStringValue();

            final Path rHomePath = Paths.get(rHome);

Function tokenBaseInner has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function tokenBaseInner(stream, state) {
      if (stream.eatSpace()) return null;

      // Handle Comments
      if (stream.match(/^#.*/)) return "comment";
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/python/python.js - About 2 hrs to fix

Function _updateSimForm has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _updateSimForm ( simIndex ) {
        let O = this;
        _log( 'PANEL SIM / _updateSimForm: '+ simIndex );

        simIndex = ! _isNull( simIndex ) ? simIndex : O._simSelectedIndex;
Severity: Major
Found in de.bund.bfr.knime.js/src/js/app/app.simulation.js - About 2 hrs to fix
Severity
Category
Status
Source
Language