SiLeBAT/FSK-Lab

View on GitHub

Showing 14,752 of 14,752 total issues

Method insertEstParamCorrs has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void insertEstParamCorrs(int modelId, int estModelId, final int paramId, HashMap<String, Double> hm) {
        try {
            PreparedStatement ps = conn.prepareStatement("INSERT INTO \"GeschaetzteParameterCovCor\" (\"param1\", \"param2\", \"GeschaetztesModell\", \"cor\", \"Wert\") VALUES(?, ?, ?, ?, ?)");
            Integer estParamId = DBKernel.getID("GeschaetzteParameter", new String[] { "GeschaetztesModell", "Parameter" }, new String[] { estModelId + "", paramId + "" });
            ps.setInt(1, estParamId);

Method stateChanged has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public void stateChanged(ChangeEvent e) {

      // Disable text field
      m_workingDirectoryPanel.getComponent(0).setEnabled(false);

Method actionPerformed has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public void actionPerformed(ActionEvent e) {
        if (e.getSource() == clearButton) {
            for (int i = 0; i < ROW_COUNT; i++) {
                table.setTime(i, null);

Method getNameList has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static List<String> getNameList(PmmXmlDoc xml) {
        List<String> names = new ArrayList<>();

        for (PmmXmlElementConvertable element : xml.getElementSet()) {
            if (element instanceof MiscXml) {

Method testLoadSettings has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Test
    public void testLoadSettings() throws Exception {
        NodeSettings nodeSettings = new NodeSettings("identifier");
        nodeSettings.addString("volume", "volume");
        nodeSettings.addString("volumeUnit", "volumeUnit");

Method testAssay has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Test
    public void testAssay() throws Exception {

        // Test assay at row 118
        final Assay assay118 = importer.retrieveAssay(sheet.getRow(117));

Method testConvertProduct has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Test
    public void testConvertProduct() {

        Product product;
        {

Method testSaveSettings has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Test
    public void testSaveSettings() throws InvalidSettingsException {
        ParametersSetting parametersSetting = new ParametersSetting();
        parametersSetting.setVolume("volume");
        parametersSetting.setVolumeUnit("volumeUnit");

Function tokenString has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function tokenString(quote, f) {
    return function(stream, state) {
      var ch;

      if(isInString(state) && stream.current() == quote) {
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/xquery/xquery.js - About 1 hr to fix

Function armv6 has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function armv6(_parserConfig) {
    // Reference:
    // http://infocenter.arm.com/help/topic/com.arm.doc.qrc0001l/QRC0001_UAL.pdf
    // http://infocenter.arm.com/help/topic/com.arm.doc.ddi0301h/DDI0301H_arm1176jzfs_r0p7_trm.pdf
    lineCommentStartSymbol = "@";
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 objprop has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function objprop(type, value) {
    if (type == "async") {
      cx.marked = "property";
      return cont(objprop);
    } else if (type == "variable" || cx.style == "keyword") {

Function readQuoted has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function readQuoted(quote, style, embed, unescaped) {
    return function(stream, state) {
      var escaped = false, ch;

      if (state.context.type === 'read-quoted-paused') {
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/ruby/ruby.js - About 1 hr to fix

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

    var tokenBase = function(stream, state) {
      var next_rule = state.next || "start";
      if (next_rule) {
        state.next = state.next;
        var nr = Rules[next_rule];

Function scrollPosIntoView has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function scrollPosIntoView(cm, pos, end, margin) {
    if (margin == null) { margin = 0; }
    var rect;
    if (!cm.options.lineWrapping && pos == end) {
      // Set pos and end to the cursor positions around the character pos sticks to
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 1 hr to fix

Function onMouseDown has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function onMouseDown(e) {
    var cm = this, display = cm.display;
    if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }
    display.input.ensurePolled();
    display.shift = e.shiftKey;
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 1 hr to fix

Function _createPanels has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _createPanels() {
        let port = window.port || -1;
        let schema = schemas.genericModel;
        return {
            generalInformation: new FormPanel("General", schema.generalInformation, this._metadata.generalInformation, port),
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/app/app.schemas.js - About 1 hr to fix

Function _createPanel has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _createPanel(menu, modelHandler) {
        let O = this;
        _log('MODAL DETAILS / _createPanel: ' + menu.id);

        let $panel = null;
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/app/app.mt.details.js - About 1 hr to fix

Function metaData has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    get metaData() {
        try{
        // generalInformation
        this._metadata.generalInformation = this.panels.generalInformation.data;
        this._metadata.generalInformation.modelCategory = this.panels.modelCategory.data;
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/app/app.schemas.js - About 1 hr to fix

Function select2 has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    $.fn.select2 = function (options) {
      options = options || {};

      if (typeof options === 'object') {
        this.each(function () {
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/lib/select2.full.js - About 1 hr to fix

Function bind has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        Function.prototype.bind = function bind(that) {

            var target = this;
            var slice = [].slice;

Severity: Minor
Found in de.bund.bfr.knime.js/src/js/lib/ion.rangeSlider.js - About 1 hr to fix
Severity
Category
Status
Source
Language