SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Function inTag has 89 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function inTag (stream, state) {
      // Attempt to match a dot that precedes a property
      if (state.waitDot) {
        state.waitDot = false;

Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/django/django.js - About 3 hrs to fix

Function registerEventHandlers has 89 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function registerEventHandlers(cm) {
    var d = cm.display;
    on(d.scroller, "mousedown", operation(cm, onMouseDown));
    // Older IE's will not fire a second mousedown for a double click
    if (ie && ie_version < 11)
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 3 hrs to fix

Function tree has 89 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function tree(d, i) {
      var nodes = hierarchy.call(this, d, i), root = nodes[0];
      function firstWalk(node, previousSibling) {
        var children = node.children, layout = node._tree;
        if (children && (n = children.length)) {

Function parseDate has 89 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        parseDate: function(date, format, language) {
            if (date instanceof Date) return date;
            if (typeof format === 'string')
                format = DPGlobal.parseFormat(format);
            if (/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(date)) {

Function registerEventHandlers has 89 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function registerEventHandlers(cm) {
  var d = cm.display
  on(d.scroller, "mousedown", operation(cm, onMouseDown))
  // Older IE's will not fire a second mousedown for a double click
  if (ie && ie_version < 11)

Function registerEventHandlers has 89 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function registerEventHandlers(cm) {
  var d = cm.display
  on(d.scroller, "mousedown", operation(cm, onMouseDown))
  // Older IE's will not fire a second mousedown for a double click
  if (ie && ie_version < 11)

File python.js has 314 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

(function(mod) {
  if (typeof exports == "object" && typeof module == "object") // CommonJS
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/python/python.js - About 3 hrs to fix

Method initComponents has 88 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void initComponents() {
        // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
        splitPane1 = new JSplitPane();
        scrollPane1 = new JScrollPane();
        table1 = new JTable();

Method readModelTable has 88 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void readModelTable() {
        boolean containsData = SchemaFactory.createM12DataSchema().conforms(
                modelTable);
        Map<KnimeTuple, List<KnimeTuple>> tuples;

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

    @Override
    public JComponent createPanel(String assignments) {
        JPanel panel = new JPanel();
        JPanel topPanel = new JPanel();

Method runSnippet has 88 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  public final void runSnippet(final FskPortObject fskObj, final FskSimulation simulation,
      final ExecutionContext exec, NodeLogger logger, File imageFile,
      List<JoinRelationAdvanced> joinRelationList, String suffix) throws Exception {

    // Sets up working directory with resource files. This directory needs to be deleted.

Method updateMetaData has 88 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private static void updateMetaData(List<KnimeTuple> tuples, Map<KnimeTuple, List<KnimeTuple>> tupleCombinations) {
        Map<Integer, Set<String>> organisms = new LinkedHashMap<>();
        Map<Integer, Set<String>> matrices = new LinkedHashMap<>();
        Map<Integer, Set<String>> organismDetails = new LinkedHashMap<>();
        Map<Integer, Set<String>> matrixDetails = new LinkedHashMap<>();

Function token has 88 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    token: function (stream, state) {
      if (stream.sol()) {
        state.lineNumber++;
        state.inKeywordLine = false;
        if (state.inMultilineTable) {
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/gherkin/gherkin.js - About 3 hrs to fix

Function set has 88 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    set: function(models, options) {
      if (models == null) return;

      options = _.extend({}, setOptions, options);
      if (options.parse && !this._isModel(models)) {

FSKEditorJSConfig has 29 methods (exceeds 20 allowed). Consider refactoring.
Open

class FSKEditorJSConfig {

  private static final ObjectMapper MAPPER = FskPlugin.getDefault().MAPPER104;

  private static final String METADATA = "ModelMetaData";

File DataTableDocumentImpl.java has 312 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 * An XML document type.
 * Localname: DataTable
 * Namespace: http://www.bfr.bund.de/PCML-1_0
 * Java type: de.bund.bfr.pcml10.DataTableDocument

Method saveNodes has 87 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void saveNodes(WorkflowManager parent, Integer wfID) {
        /*
        DBKernel.sendRequest("INSERT INTO " + DBKernel.delimitL("ProzessElemente") + " () VALUES ()", false);
        DBKernel.sendRequest("INSERT INTO " + DBKernel.delimitL("Matrices") + " () VALUES ()", false);
        DBKernel.sendRequest("INSERT INTO " + DBKernel.delimitL("Zutatendaten") + " () VALUES ()", false);

Method createDataTuple has 87 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private KnimeTuple createDataTuple(TableReader reader, String id) {
        KnimeTuple dataTuple;
        KnimeTuple tuple = reader.getTupleMap().get(id);
        Plotable plotable = reader.getPlotables().get(id);
        Map<String, List<Double>> conditions = plotable.getFunctionArguments();

Method keyTyped has 87 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  @Override
public void keyTyped(final KeyEvent keyEvent) {
      char ch = keyEvent.getKeyChar();
      //System.out.println(ch + "\t" + keyEvent.isConsumed());
    if (ch == KeyEvent.VK_TAB || ch == KeyEvent.VK_ENTER && !keyEvent.isAltDown() && !keyEvent.isControlDown()) {
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBTable.java - About 3 hrs to fix

Method saveValues has 87 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private Double saveValues() {
        Double result = null;
        try {
            String sql = "";
            if (oldValue != null) {
Severity
Category
Status
Source
Language