SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Method joinModels has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public Model joinModels(JsonNode modelA, JsonNode modelB, ModelClass targetModelType) throws JsonProcessingException {

        String modelAType = modelA.get("modelType").textValue();
        Map<String, Object> modelAClass = ModelClass.valueOf(modelAType).swaggerDefinition;

Method retrieveBackground has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public GenericModelDataBackground retrieveBackground(Sheet sheet) {

        final GenericModelDataBackground background = new GenericModelDataBackground();

        try {

Method retrieveBackground has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public GenericModelDataBackground retrieveBackground(Sheet sheet) {
        final GenericModelDataBackground background = new GenericModelDataBackground();

        try {
            final Study study = retrieveStudy(sheet);

Method retrieveBackground has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public GenericModelDataBackground retrieveBackground(Sheet sheet) {

        GenericModelDataBackground background = new GenericModelDataBackground();

        try {

Method retrieveBackground has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public GenericModelDataBackground retrieveBackground(Sheet sheet) {

        final GenericModelDataBackground background = new GenericModelDataBackground();

        try {

Method retrieveBackground has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public GenericModelDataBackground retrieveBackground(Sheet sheet) {
        GenericModelDataBackground background = new GenericModelDataBackground();

        try {
            Study study = retrieveStudy(sheet);

Method eIsSet has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public boolean eIsSet(int featureID) {
        switch (featureID) {
            case MetadataPackage.STUDY__STUDY_IDENTIFIER:
                return STUDY_IDENTIFIER_EDEFAULT == null ? studyIdentifier != null : !STUDY_IDENTIFIER_EDEFAULT.equals(studyIdentifier);

Method eGet has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public Object eGet(int featureID, boolean resolve, boolean coreType) {
        switch (featureID) {
            case MetadataPackage.STUDY__STUDY_IDENTIFIER:
                return getStudyIdentifier();

Method saveSettingsTo has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    protected void saveSettingsTo(NodeSettingsWO settings)
            throws InvalidSettingsException {
        if (!selectionPanel.getSelectedIDs().isEmpty()) {
            set.setSelectedID(selectionPanel.getSelectedIDs().get(0));

Method getInSchema has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private KnimeSchema getInSchema(final DataTableSpec inSpec) throws InvalidSettingsException {
        KnimeSchema result = null;
        KnimeSchema inSchema = new TimeSeriesSchema();
        boolean hasTS = false;
        try {

Method execute has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  protected BufferedDataTable[] execute(final BufferedDataTable[] inData,
      final ExecutionContext exec) {

    BufferedDataContainer container = exec.createDataContainer(TABLE_SPEC);

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

    @Override
    protected void loadSettingsFrom(NodeSettingsRO settings, DataTableSpec[] specs) throws NotConfigurableException {
        String fileName;
        int useStartValue;
        double startElim;

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

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

Method saveSettingsTo has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    protected void saveSettingsTo( final NodeSettingsWO settings ) {
        try {            
            /*
              Config c = settings.addConfig("DbConfigurationUi");

Method handleSuchfeldChange has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    void handleSuchfeldChange(final KeyEvent e, final boolean doFilter) {
        if (!filterChangeAllowed) return;
        if (isFormVisible()) {
            return;
        }
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBPanel.java - About 1 hr to fix

Method myRefresh has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void myRefresh(final int row, final int col) {
        JScrollPane scroller = getScroller();
        int scrollVal = (scroller == null) ? -1 : scroller.getVerticalScrollBar().getValue();
        int hscrollVal = (scroller == null) ? -1 : scroller.getHorizontalScrollBar().getValue();
//        System.err.println(row+" - "+getSelectedID());
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBTable.java - About 1 hr to fix

Method setSettings has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public void setSettings(Config c, Integer defAgent, Integer defMatrix, Double defTemp, Double defPh, Double defAw, Double agentConc, Callable<Void> refresher) throws InvalidSettingsException {
        this.defTemp = defTemp;
        this.defPh = defPh;
        this.defAw = defAw;
        this.agentConc = agentConc;

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

    private void createUI() {

      // Build simulations panel
      setLayout(new BorderLayout());
      setName("Simulations");

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

  @Override
  protected void loadSettingsFrom(NodeSettingsRO settings, PortObject[] input)
      throws NotConfigurableException {

    final FSKEditorJSNodeSettings editorSettings = new FSKEditorJSNodeSettings();

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

    private void createUI() {

      // Build simulations panel
      setLayout(new BorderLayout());
      setName("Simulations");
Severity
Category
Status
Source
Language