SiLeBAT/FSK-Lab

View on GitHub

Showing 14,752 of 14,752 total issues

Method getColumnName has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        @Override
        public String getColumnName(int column) {
            switch (column) {
            case 0:
                return "ID";

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

    @Override
    public JComponent createPanel(String assignments) {
        Map<Integer, Map<String, String>> assignmentsMap = XmlConverter
                .xmlToObject(assignments,
                        new LinkedHashMap<Integer, Map<String, String>>());

Method saveValue has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void saveValue(final PreparedStatement ps, final int index, final String tfText, final JTextField tf_exp, final JCheckBox cb, final boolean isString) {
        try {
            boolean hasExponent = (tf_exp != null);
            if (tfText.trim().length() > 0) {
                if (isString) {

Method look4ParentNode has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private DefaultMutableTreeNode look4ParentNode(final LinkedHashMap<String, DefaultMutableTreeNode> myCodes, final String code, final int[] cutSystem) {
        DefaultMutableTreeNode result = null;
        String key;
        if (cutSystem == null) {
            for (int i=code.length()-1;i>=0;i--) {
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtree/MyDBTreeModel.java - About 1 hr to fix

Method readDB has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void readDB(final LinkedHashMap<String, DefaultMutableTreeNode> myCodes, final int codeSystemNum, final DefaultMutableTreeNode root, final String sql, final String tablename_codeSystem, int[] cutSystem) {
        myIDs[codeSystemNum].clear(); myCodes.clear();
        try {
              ResultSet rs = DBKernel.getResultSet(sql, false);
              if (rs.first()) {
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtree/MyDBTreeModel.java - About 1 hr to fix

Method insertIntoChangeLog has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private boolean insertIntoChangeLog(final String tablename, final Object[] rowBefore, final Object[] rowAfter, final boolean suppressWarnings) {
        if (MainKernel.dontLog || DBKernel.dontLog) return true;
        else {
            boolean diff = different(rowBefore, rowAfter);
            if (!diff) return true;
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/MyTrigger.java - About 1 hr to fix

Method execute has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    protected PortObject[] execute(PortObject[] inObjects, ExecutionContext exec) throws Exception {
        exec.checkCanceled();
        FskPortObject fskObj = (FskPortObject) inObjects[0];

Method addResourcesToArchive has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private static void addResourcesToArchive(List<Path> resources, CombineArchive archive,
      String filePrefix, Map<String, URI> uris, ScriptHandler scriptHandler) throws Exception {
    for (final Path resourcePath : resources) {

      final String filenameString = filePrefix + resourcePath.getFileName().toString();

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

    @Override
    public void actionPerformed(ActionEvent e) {
        if (e.getSource() == manualRangeBox) {
            if (manualRangeBox.isSelected()) {
                minXField.setEnabled(true);

Method applyColumnSelection has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void applyColumnSelection(List<String> visibleColumns) {
        List<String> columns = new ArrayList<>();

        columns.addAll(Arrays.asList(COLOR, SHAPE, DATA, FORMULA, PARAMETERS,
                VARIABLES));

Method testConvertParameter has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Test
    public void testConvertParameter() {

        Parameter param;
        {

Method testConstructors has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Test
    public void testConstructors() {

        // Test constructor with name
        final DepXml dep0 = new DepXml("name");

Method testConstructors has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Test
    public void testConstructors() {

        // Test constructor with name, min and max
        final IndepXml indep0 = new IndepXml("name", 0.0, 1.0);

Function nextToken has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function nextToken(stream, state) {
    var tok = innerMode(stream, state)
      || restOfLine(stream, state)
      || interpolationContinued(stream, state)
      || includeFilteredContinued(stream, state)
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/pug/pug.js - About 1 hr to fix

Function buildLineContent has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function buildLineContent(cm, lineView) {
    // The padding-right forces the element to have a 'border', which
    // is needed on Webkit to be able to get line-level bounding
    // rectangles for it (in measureChar).
    var content = eltP("span", null, null, webkit ? "padding-right: .1px" : null);
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 1 hr to fix

Function coordsCharInner has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function coordsCharInner(cm, lineObj, lineNo$$1, x, y) {
    // Move y into line-local coordinate space
    y -= heightAtLine(lineObj);
    var preparedMeasure = prepareMeasureForLine(cm, lineObj);
    // When directly calling `measureCharPrepared`, we have to adjust
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 1 hr to fix

Function applyTextInput has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function applyTextInput(cm, inserted, deleted, sel, origin) {
    var doc = cm.doc;
    cm.display.shift = false;
    if (!sel) { sel = doc.sel; }

Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 1 hr to fix

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

  BaseSelection.prototype.bind = function (container, $container) {
    var self = this;

    var id = container.id + '-container';
    var resultsId = container.id + '-results';

Function getClassNames has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        getClassNames: function(date){
            var cls = [],
                year = this.viewDate.getUTCFullYear(),
                month = this.viewDate.getUTCMonth(),
                today = UTCToday();
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/lib/bootstrap-datepicker.js - About 1 hr to fix

Function cluster has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  d3.layout.cluster = function() {
    var hierarchy = d3.layout.hierarchy().sort(null).value(null), separation = d3_layout_treeSeparation, size = [ 1, 1 ], nodeSize = false;
    function cluster(d, i) {
      var nodes = hierarchy.call(this, d, i), root = nodes[0], previousNode, x = 0;
      d3_layout_treeVisitAfter(root, function(node) {
Severity
Category
Status
Source
Language