SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Method createTable has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public void createTable() {
        String fieldDefs = DBKernel.delimitL("ID") + " INTEGER GENERATED BY DEFAULT AS IDENTITY (START WITH 1) PRIMARY KEY";
        if (tableName.equals("ChangeLog")) {
            fieldDefs = DBKernel.delimitL("ID") + " INTEGER GENERATED BY DEFAULT AS SEQUENCE " + DBKernel.delimitL("ChangeLogSEQ") + " PRIMARY KEY";
        }
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/MyTable.java - About 1 hr to fix

Method doImportErlenbacherFW has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private int[] doImportErlenbacherFW(HSSFWorkbook wb, JProgressBar progress, String efsaID) {
        int numSuccess = 0;
        int numFails = 0;
        HSSFSheet businessSheet = wb.getSheet("Business_List");
        HSSFSheet transactionSheet = wb.getSheet("Receivers");

Method getSecModelById has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public KnimeTuple getSecModelById(int id) throws SQLException {
        KnimeTuple tuple = null;
        PreparedStatement stat = conn.prepareStatement(queryModelView + " WHERE \"" + ATT_LEVEL + "\"=2 AND \"Modellkatalog\".\"ID\"=?");
        try {
            stat.setInt(1, id);

Method retrieveParameter has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    static metadata.Parameter retrieveParameter(String[][] values, int row) {

      // Check mandatory properties
      if (values[row][RakipColumn.L.ordinal()].isEmpty()) {
        throw new IllegalArgumentException("Missing parameter id");

Method retrieveParameter has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    static metadata.Parameter retrieveParameter(String[][] values, int row) {

      // Check mandatory properties
      if (values[row][RakipColumn.L.ordinal()].isEmpty()) {
        throw new IllegalArgumentException("Missing parameter id");

Method retrieveParameter has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    static metadata.Parameter retrieveParameter(String[][] values, int row) {

      // Check mandatory properties
      if (values[row][RakipColumn.L.ordinal()].isEmpty()) {
        throw new IllegalArgumentException("Missing parameter id");

Method getInverseFunctionSamplePoints has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public double[][] getInverseFunctionSamplePoints(String paramX,
            String paramY, String unitX, String unitY, String transformX,
            String transformY, double minX, double maxX, double minY,
            double maxY, Map<String, Integer> choice, List<String> warnings)
            throws ConvertException {

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

        @Override
        public void actionPerformed(ActionEvent e) {
            JFileChooser fileChooser = new JFileChooser();
            FileFilter svgFilter = new FileFilter() {

Method checkRHome has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static void checkRHome(final String rHomePath, final boolean fromPreferences) throws InvalidRHomeException {

        final Path rHome = Paths.get(rHomePath);
        final String msgSuffix = ((fromPreferences) ? ""
                : " R_HOME ('" + rHomePath + "')" + " is meant to be the path to the folder which is the root of R's "

Function html has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function html(stream, state) {
      var ch = stream.peek();

      // handle haml declarations. All declarations that cant be handled here
      // will be passed to html mode
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/haml/haml.js - About 1 hr to fix

Function inText has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function inText(stream, state) {
    function chain(parser) {
      state.tokenize = parser;
      return parser(stream, state);
    }
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/xml/xml.js - About 1 hr to fix

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

      token: function(stream, state) {
        if(state.tokenize != null) {
          return state.tokenize(stream, state);
        }

Function handlePhraseModifier has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function handlePhraseModifier(stream, state, ch) {
    if (ch === "_") {
      if (stream.eat("_"))
        return togglePhraseModifier(stream, state, "italic", /__/, 2);
      else

Function showPrimarySelection has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  ContentEditableInput.prototype.showPrimarySelection = function () {
    var sel = this.getSelection(), cm = this.cm, prim = cm.doc.sel.primary();
    var from = prim.from(), to = prim.to();

    if (cm.display.viewTo == cm.display.viewFrom || from.line >= cm.display.viewTo || to.line < cm.display.viewFrom) {
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 1 hr to fix

Function resetFooter has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    BootstrapTable.prototype.resetFooter = function () {
        var that = this,
            data = that.getData(),
            html = [];

Function click has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        click: function(e){
            e.preventDefault();
            e.stopPropagation();

            var target, dir, day, year, month;
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/lib/bootstrap-datepicker.js - About 1 hr to fix

Function d3_geo_pathBuffer has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function d3_geo_pathBuffer() {
    var pointCircle = d3_geo_pathBufferCircle(4.5), buffer = [];
    var stream = {
      point: point,
      lineStart: function() {

Function gobbleVariable has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

                gobbleVariable = function() {
                    var ch_i, node;
                    ch_i = exprICode(index);
                        
                    if(ch_i === OPAREN_CODE) {
Severity: Minor
Found in de.bund.bfr.knime.pmm.nodes/js-lib/jsep/0_3_1/debug/js/jsep.js - About 1 hr to fix

Function d3_svg_line has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function d3_svg_line(projection) {
    var x = d3_svg_lineX, y = d3_svg_lineY, defined = d3_true, interpolate = d3_svg_lineLinear, interpolateKey = interpolate.key, tension = .7;
    function line(data) {
      var segments = [], points = [], i = -1, n = data.length, d, fx = d3_functor(x), fy = d3_functor(y);
      function segment() {

Function parseRows has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    dsv.parseRows = function(text, f) {
      var EOL = {}, EOF = {}, rows = [], N = text.length, I = 0, n = 0, t, eol;
      function token() {
        if (I >= N) return EOF;
        if (eol) return eol = false, EOL;
Severity
Category
Status
Source
Language