SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Method saveProperties has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public void saveProperties(MyDBTable myDB) {
        JTable bigTable = myDB.getTable();
        JScrollPane scroller = myDB.getScroller();
        if (scroller != null) {
            verticalScrollerPosition = scroller.getVerticalScrollBar().getValue();
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/MyTable.java - About 1 hr to fix

Method restoreProperties has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public void restoreProperties(MyDBTable myDB) {
        JTable bigTable = myDB.getTable();
        try {
            myDB.getMyDBPanel().getSuchfeld().setText(searchString);
            myDB.getMyDBPanel().handleSuchfeldChange(null);
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/MyTable.java - About 1 hr to fix

Method createDataTableSpec has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public DataTableSpec createDataTableSpec() {
        DataColumnSpec[] columns = new DataColumnSpec[m_numColumns];
        for (int i = 0; i < m_numColumns; i++) {
            JSTypes type = JSTypes.valueOf(m_colTypes.get(i));
            DataType dataType = null;

Method selectEstModel has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public ResultSet selectEstModel(final int level, int estimatedModelID, String where, boolean forceUpdate) throws SQLException {
        String q;
        String myWhere = "";
        String myWhereCache = "";
        if (level == 1) {

Method createColumnRearranger has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    protected ColumnRearranger createColumnRearranger(DataTableSpec spec) throws InvalidSettingsException {
        FilterResult filteredCols = columns.applyTo(spec);

        if (filteredCols.getIncludes().length == 0) {

Method buildNode has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private void buildNode(DefaultMutableTreeNode node, FskPortObject portObject, int nodeType) {

    String modelId = StringUtils.defaultIfEmpty(SwaggerUtil.getModelName(portObject.modelMetadata),
        "Missing name");

Method savePortObject has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        @Override
        public void savePortObject(final FskPortObject portObject, final PortObjectZipOutputStream out,
                final ExecutionMonitor exec) throws IOException, CanceledExecutionException {
            // model entry (file with model script)
            out.putNextEntry(new ZipEntry(MODEL));

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

        private void createUI() {

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

Method addIdentifierToParametersForCombinedObject has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  public static void addIdentifierToParametersForCombinedObject(FskPortObject portObject,
      String suffix, int suffixInsertionIndex,
      final Map<String, List<String>> unModifiedParamsNames,
      Map<String, Map<String, String>> old_new_pramsMap)
      throws JsonMappingException, JsonProcessingException {

Method buildNode has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private void buildNode(DefaultMutableTreeNode node, FskPortObject portObject, int nodeType) {

    String modelId = StringUtils.defaultIfEmpty(SwaggerUtil.getModelName(portObject.modelMetadata),
        "Missing name");

Method createTableChartComponent has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private JComponent createTableChartComponent(List<TimeSeriesXml> timeSeries) {
        List<Double> timeList = new ArrayList<>();
        List<Double> logcList = new ArrayList<>();
        String timeUnit = Categories.getTimeCategory().getStandardUnit();
        String concentrationUnit = Categories.getConcentrationCategories()

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

    @Test
    public void testConstructors() {

        // Test empty constructor
        final AgentXml agent0 = new AgentXml(Type.MD);

Method createResourcesPanel has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static JPanel createResourcesPanel(final Component parent, final DefaultListModel<Path> listModel) {
        JList<Path> list = new JList<>(listModel);
        list.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
        list.setLayoutOrientation(JList.VERTICAL);

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

    @Test
    public void testConstructors() {

        // Empty constructor
        final MatrixXml matrix0 = new MatrixXml(MatrixXml.Type.MD);

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

    @Test
    public void testConstructors() {

        // Empty constructor
        final MatrixXml matrix0 = new MatrixXml();

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

    @Test
    public void testConstructors() {

        // Test empty constructor
        final AgentXml agent0 = new AgentXml();

Function token has 30 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/ttcn/ttcn.js - About 1 hr to fix

Function token has 30 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();

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

    token: function(stream, state) {
      curPunc = null;
      if (stream.sol()) state.indented = stream.indentation();
      var style = state.tokenize[state.tokenize.length-1](stream, state), kwtype;
      var thisTok = curPunc;
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 tokenString has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      function tokenString(stream, state) {
        while (!stream.eol()) {
          stream.eatWhile(/[^'"\{\}\\]/);
          if (stream.eat("\\")) {
            stream.next();
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/python/python.js - About 1 hr to fix
Severity
Category
Status
Source
Language