SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Method insertModLit has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void insertModLit(final int modelId, PmmXmlDoc modelLit, final boolean estimatedModels, final ParametricModel m) {
        try {
            PreparedStatement ps = conn.prepareStatement("DELETE FROM "
                    + (estimatedModels ? "\"GeschaetztesModell_Referenz\" WHERE \"GeschaetztesModell\"" : "\"Modell_Referenz\"WHERE \"Modell\"") + " = " + modelId);
            ps.executeUpdate();

Method saveSettingsTo has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  @Override
  protected void saveSettingsTo(NodeSettingsWO settings) throws InvalidSettingsException {

    m_readmePanel.addToHistory();

Method readMetadata has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private Model readMetadata(ArchiveEntry metadataEntry)
      throws JsonProcessingException, IOException {

    // Create temporary file with metadata
    File temp = File.createTempFile("metadata", ".json");

Method readMetadata has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private static Model readMetadata(ArchiveEntry metadataEntry)
      throws JsonProcessingException, IOException {

    // Create temporary file with metadata
    File temp = File.createTempFile("metadata", ".json");

Method getViewValue has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  @Override
  public FSKEditorJSViewValue getViewValue() {

    FSKEditorJSViewValue value = super.getViewValue();

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

  @Override
  protected void loadSettingsFrom(NodeSettingsRO settings, PortObject[] input)
      throws NotConfigurableException {

    FskPortObject inputObject = (FskPortObject) input[0];

Method getKnimeTuple has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public KnimeTuple getKnimeTuple() throws PmmException {
        KnimeTuple tuple;

        if (level == 1) {

Method getParamsX has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public Map<String, List<Double>> getParamsX() {
        Map<String, List<Double>> valueLists = new LinkedHashMap<>();

        if (type == PARAMETER_FIELDS) {
            for (int i = 0; i < parameterFields.size(); i++) {

Method convertArrays2IndepXmlDoc has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static PmmXmlDoc convertArrays2IndepXmlDoc(LinkedHashMap<String, String> varMap, Array name, Array min, Array max, Array categories, Array units, Array desc, boolean isPrimary) {
        PmmXmlDoc indepDoc = new PmmXmlDoc();
        if (name != null) {
            try {
                Object[] na = (Object[])name.getArray();

Method testRowNumbers has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  @Test
  public void testRowNumbers() {

    assertEquals(1, FskMetaDataFields.name.row);
    assertEquals(2, FskMetaDataFields.id.row);

Method createBrowseButton has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static JButton createBrowseButton(String text, JTextField field, int dialogType,
            FileNameExtensionFilter filter) {

        FBrowseButton button = new FBrowseButton(text);

Method testMetadataAnnotation has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  @Test
  public void testMetadataAnnotation() {

    // With empty metadata
    FskMetaData expected = new FskMetaData();

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

    function readQuoted(quote, style, embed, unescaped, nextTokenize) {
      return function(stream, state) {
        finishContinue(state);
        var fresh = stream.current().length == 0;
        if (stream.match(/^\\$/, fresh)) {
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/slim/slim.js - About 1 hr to fix

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

  function tokenBase(stream, state) {

    if (stream.match(litOperator)){
        return 'operator';
    }

Function tokenBase has 32 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);

Function phpString_ has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function phpString_(stream, state, closing, escapes) {
    // "Complex" syntax
    if (escapes !== false && stream.match("${", false) || stream.match("{$", false)) {
      state.tokenize = null;
      return "string";
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/php/php.js - About 1 hr to fix

Function tokenCallOrDef has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function tokenCallOrDef(stream, state) {
    var match = stream.match(/^(\(\s*)/);
    if (match) {
      if (state.firstParenPos < 0)
        state.firstParenPos = state.scopes.length;
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/julia/julia.js - About 1 hr to fix

Function leftButtonStartDrag has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function leftButtonStartDrag(cm, event, pos, behavior) {
    var display = cm.display, moved = false;
    var dragEnd = operation(cm, function (e) {
      if (webkit) { display.scroller.draggable = false; }
      cm.state.draggingText = false;
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 1 hr to fix

Function updateHeightsInViewport has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function updateHeightsInViewport(cm) {
    var display = cm.display;
    var prevBottom = display.lineDiv.offsetTop;
    for (var i = 0; i < display.view.length; i++) {
      var cur = display.view[i], wrapping = cm.options.lineWrapping;
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 1 hr to fix

Function poll has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  TextareaInput.prototype.poll = function () {
      var this$1 = this;

    var cm = this.cm, input = this.textarea, prevInput = this.prevInput;
    // Since this is called a *lot*, try to bail out as cheaply as
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 1 hr to fix
Severity
Category
Status
Source
Language