SiLeBAT/FSK-Lab

View on GitHub

Showing 14,752 of 14,752 total issues

Method retrieveStudySample has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public StudySample retrieveStudySample(Row row) {

        // Check mandatory properties
        if (row.getCell(L).getCellType() == Cell.CELL_TYPE_BLANK) {
            throw new IllegalArgumentException("Missing sample name");

Method retrieveContact has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private Contact retrieveContact(Row row, Map<String, Integer> columns) {

        // Check mandatory properties and throw exception if missing
        if (row.getCell(columns.get("mail")).getCellType() == Cell.CELL_TYPE_BLANK) {
            throw new IllegalArgumentException("Missing mail");

Method eUnset has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public void eUnset(int featureID) {
        switch (featureID) {
            case MetadataPackage.POPULATION_GROUP__POPULATION_NAME:
                setPopulationName(POPULATION_NAME_EDEFAULT);

Method initDialog has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private Component initDialog() {
        JPanel panel = new JPanel(new GridBagLayout());
        GridBagConstraints c = new GridBagConstraints();
        c.insets = new Insets(5, 5, 5, 5);
        c.gridx = 0;

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

    @Override
    protected void loadSettingsFrom(NodeSettingsRO settings, DataTableSpec[] specs) throws NotConfigurableException {
        set = new SettingsHelper();
        set.loadSettings(settings);

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

    @Override
    public void actionPerformed(ActionEvent e) {
        if (e.getSource() == addButton) {
            Integer id = DBKernel.openMiscDBWindow(addButton, null);

Method createChart has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void createChart() {
        String id = null;

        if (configPanel.isDisplayFocusedRow()) {
            id = selectionPanel.getFocusedID();

Method checkOtherEditor2Open has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void checkOtherEditor2Open(final int lastClickedRow, final int lastClickedCol, final int x, final int y, final char ch) {
        if (lastClickedCol > 0) {
        MyTable[] myTs = actualTable.getForeignFields();
        if (lastClickedCol > 0 && lastClickedCol <= myTs.length && myTs[lastClickedCol-1] != null &&
                myTs[lastClickedCol-1].getTablename().equals("DoubleKennzahlen")) {
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBTable.java - About 1 hr to fix

Method setTable has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      @SuppressWarnings("unchecked")
    private void setTable(final MyTable myT) {
        if (myT != null) {
            root = new DefaultMutableTreeNode(new MyDBTreeNode(0, "", "Codes", false, -1));            
        // Erst die Codetypen
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtree/MyDBTreeModel.java - About 1 hr to fix

Method initComponents has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private void initComponents() {
          // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
          // Generated using JFormDesigner Evaluation license
          dialogPane = new JPanel();
          contentPane = new JPanel();
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/InfoBox.java - About 1 hr to fix

Method getPrimModelById has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

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

Method performExecute has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  @Override
  protected PortObject[] performExecute(PortObject[] inObjects, ExecutionContext exec)
      throws Exception {
    PortObject inPort = inObjects[0];
    PortObject outputPort = null;

Method clone has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public ParametricModel clone() {
        ParametricModel clonedPM = new ParametricModel(modelName, formula, depXml, level, modelId, estModelId);
        clonedPM.modelClass = modelClass;
        clonedPM.modelDbUuid = modelDbUuid;
        clonedPM.estimatedModelDbUuid = estimatedModelDbUuid;

Method toXmlElement has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public Element toXmlElement() {
        Element modelElement = new Element(ELEMENT_PARAMETRICMODEL);
        modelElement.setAttribute(ATT_MDBUUID, modelDbUuid == null ? "" : modelDbUuid);
        modelElement.setAttribute(ATT_EMDBUUID, estimatedModelDbUuid == null ? "" : estimatedModelDbUuid);

Method testProduct has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Test
    public void testProduct() throws Exception {

        // Test product at row 39
        {

Method convertArrays2ParamXmlDoc has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static PmmXmlDoc convertArrays2ParamXmlDoc(LinkedHashMap<String, String> varMap, Array name,
            Array value, Array timeUnit, Array categories, Array units, Array error, Array min, Array max, Array desc, Array paramType, Array P, Array t, Integer modelId, Integer emid) {
        PmmXmlDoc paramDoc = new PmmXmlDoc();
        if (name != null) {
            try {

Method importCells has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private static final void importCells(final REXP rexp, final DataCell[] column,
      final boolean nonNumbersAsMissing) throws REXPMismatchException {
    if (rexp.isLogical()) {
      final byte[] bytes = rexp.asBytes();
      for (int i = 0; i < bytes.length; ++i) {

Function indent has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    indent: function(state, textAfter, fullLine) {
      var context = state.context;
      // Indent multi-line strings (e.g. css).
      if (state.tokenize.isInAttribute) {
        if (state.tagStart == state.indented)
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 updateDoc has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function updateDoc(doc, change, markedSpans, estimateHeight$$1) {
    function spansFor(n) {return markedSpans ? markedSpans[n] : null}
    function update(line, text, spans) {
      updateLine(line, text, spans, estimateHeight$$1);
      signalLater(line, "change", line, change);
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 1 hr to fix

Function add has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        add(data) {

            // Add new row (Order is fixed by formData)
            let newRow = document.createElement("tr");

Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/bfr/fskutil_1.0.0.js - About 1 hr to fix
Severity
Category
Status
Source
Language