SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Method saveSettings has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public void saveSettings(NodeSettingsWO settings) {
        settings.addString(CFG_SELECTEDID, selectedID);
        settings.addString(CFG_CURRENTPARAMX, currentParamX);
        settings.addString(CFG_PARAMXVALUES,
                XmlConverter.objectToXml(paramXValues));

Method doSecondaryEstimation has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private BufferedDataTable doSecondaryEstimation(BufferedDataTable table,
            ExecutionContext exec) throws CanceledExecutionException,
            InterruptedException {
        BufferedDataContainer container = exec.createDataContainer(outSchema
                .createSpec());

Method replaceCelsiusAndFahrenheit has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static void replaceCelsiusAndFahrenheit(KnimeTuple tuple) {
        final String CELSIUS = "°C";
        final String FAHRENHEIT = "°F";
        final String KELVIN = "K";

Method manageString has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private String manageString(PreparedStatement ps, PreparedStatement psUpdate, int lfdCol, HSSFCell cell, LinkedHashMap<Object, String> hashBL) throws SQLException {
        String result = null;
        if (cell == null || cell.getCellType() == HSSFCell.CELL_TYPE_BLANK) {
            if (ps != null) ps.setNull(lfdCol, java.sql.Types.VARCHAR);
            if (psUpdate != null) psUpdate.setNull(lfdCol, java.sql.Types.VARCHAR);
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/imports/GeneralXLSImporter.java - About 1 hr to fix

Method doIt has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void doIt(Document doc) throws SAXException, IOException, ParserConfigurationException {
        int carverXMLIndex;
      
        NodeList nodeLst = doc.getElementsByTagName("ProcessElementNode");
            processNames = new String[nodeLst.getLength()];
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/ParseCarverXML.java - About 1 hr to fix

Method getInternalKNIMEDB_LoadGui has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private static Connection getInternalKNIMEDB_LoadGui(boolean autoUpdate) {
        Connection result = null;
        //try {
        String internalPath = DBKernel.prefs.get("PMM_LAB_SETTINGS_DB_PATH", getInternalDefaultDBPath());
        CRC32 crc32 = new CRC32();
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/DBKernel.java - About 1 hr to fix

Method closeDBConnections has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public boolean closeDBConnections(final boolean kompakt) {
        boolean result = true;
        try {
            if (conn != null && !conn.isClosed()) {
                if (!isServerConnection) {
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/MyDBI.java - About 1 hr to fix

Method createUI has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        private void createUI() {

            FPanel simulationPanel = new FPanel();
            simulationPanel.setLayout(new BorderLayout());
            JScrollPane parametersPane = new JScrollPane(

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

    @Override
    public void actionPerformed(ActionEvent e) {

      // if environment type is switched, clear added Files
      addedFiles.clear();

Method isPlotable has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private boolean isPlotable(String paramX, String paramY) {
        boolean dataSetPlotable = false;
        boolean functionPlotable = false;
        List<Double> xs = valueLists.get(paramX);
        List<Double> ys = valueLists.get(paramY);

Method getColor has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private Color getColor(String param, Color lastBG, String lastParam) {
        Color bg = Color.WHITE;
        @SuppressWarnings("unused")
        Color fg = Color.BLACK;
        if (JCheckboxWithObject.isTemperature(param)) {

Method evalWithSingularityCheck has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        private double evalWithSingularityCheck(int index, double[] argValues,
                double[] paramValues) throws ParseException {
            for (int i = 0; i < parameters.length; i++) {
                parser.setVarValue(parameters[i], paramValues[i]);
            }

Method testFullNames has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  @Test
  public void testFullNames() {

    assertEquals("Model name", FskMetaDataFields.name.fullname);
    assertEquals("Model id", FskMetaDataFields.id.fullname);

Method testConvertHazard has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Test
    public void testConvertHazard() {

        Hazard hazard;
        {

Method getMiscUnits has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static Map<String, String> getMiscUnits(List<KnimeTuple> tuples) {
        Map<String, Map<String, Integer>> occurences = new LinkedHashMap<>();
        Map<String, String> map = new LinkedHashMap<>();

        for (KnimeTuple tuple : tuples) {

Method testStudySample has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Test
    public void testStudySample() throws Exception {

        // Test study sample from row 97
        final StudySample studySample97 = importer.retrieveStudySample(sheet.getRow(96));

Function copyState has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    copyState: function(s) {
      return {
        f: s.f,

        prevLine: s.prevLine,

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

    token: function(stream, state) {
      var ctx = state.context;
      if (stream.sol()) {
        if (ctx.align == null) ctx.align = false;
        state.indented = stream.indentation();
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/groovy/groovy.js - About 1 hr to fix

Function dispatch has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function dispatch(stream, state) {
      var isPHP = state.curMode == phpMode;
      if (stream.sol() && state.pending && state.pending != '"' && state.pending != "'") state.pending = null;
      if (!isPHP) {
        if (stream.match(/^<\?\w*/)) {
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 nodeAndOffsetInLineMap has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function nodeAndOffsetInLineMap(map$$1, ch, bias) {
    var node, start, end, collapse, mStart, mEnd;
    // First, search the line map for the text node corresponding to,
    // or closest to, the target character.
    for (var i = 0; i < map$$1.length; i += 3) {
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