SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

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

    private Integer copyRow(final ResultSet rs, final String tablename, final String parentTable, final Integer parentID) {
        Integer result = null;
        try {
            String columns = "";
            String vals = "";
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBTable.java - About 1 hr to fix

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

    @Override
    public void fileChanged(FilePanel source) {
        set.setFileName(filePanel.getFileName());

        try {

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

    private String getForeignVal(final String tablename, final int id, final String fields) {
        String result = "";
        String sql= "SELECT " + fields + " FROM " + DBKernel.delimitL(tablename) + " WHERE " + DBKernel.delimitL("ID") + "=" + id;
        ResultSet rs = DBKernel.getResultSet(sql, false);
        try {

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

    private Double manageDouble(PreparedStatement ps, PreparedStatement psUpdate, int lfdCol, HSSFCell cell) throws SQLException {
        Double dbl = null;
        if (cell == null || cell.getCellType() == HSSFCell.CELL_TYPE_BLANK) {
        } else if (cell.getCellType() == HSSFCell.CELL_TYPE_STRING) {
            if (cell.getStringCellValue().trim().length() > 0 && !cell.getStringCellValue().equalsIgnoreCase("null")) {
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/imports/GeneralXLSImporter.java - About 1 hr to fix

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

    private Date manageDate(PreparedStatement ps, PreparedStatement psUpdate, int lfdCol, HSSFCell cell) throws SQLException {
        Date result = null;
        if (cell == null || cell.getCellType() == HSSFCell.CELL_TYPE_BLANK) {
        } else if (cell.getCellType() == HSSFCell.CELL_TYPE_STRING) {
            if (cell.getStringCellValue().trim().length() > 0) {
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/imports/GeneralXLSImporter.java - About 1 hr to fix

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

    private HashMap<String, Integer> loadNodeIDs10000() {
        System.err.println("loadNodeIDs10000...");

        nodeIds = new HashMap<String, Integer>();
        try {

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

    public static boolean sendRequest(Connection conn, final String sql, final boolean suppressWarnings, final boolean fetchAdminInCase) {
        boolean result = false;
        boolean adminGathered = false;
        try {
            if (conn == null || conn.isClosed()) conn = getDBConnection();
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/DBKernel.java - About 1 hr to fix

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];
Severity
Category
Status
Source
Language