SiLeBAT/FSK-Lab

View on GitHub

Showing 14,752 of 14,752 total issues

Method eSet has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public void eSet(int featureID, Object newValue) {
        switch (featureID) {
            case MetadataPackage.PRODUCT__PRODUCT_NAME:
                setProductName((String)newValue);

Method toString has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public String toString() {
        if (eIsProxy()) return super.toString();

        StringBuffer result = new StringBuffer(super.toString());

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

    @Override
    public void eUnset(int featureID) {
        switch (featureID) {
            case MetadataPackage.PRODUCT__PRODUCT_NAME:
                setProductName(PRODUCT_NAME_EDEFAULT);

Method toString has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public String toString() {
        if (eIsProxy()) return super.toString();

        StringBuffer result = new StringBuffer(super.toString());

Method setIndependentVariableData has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  @Override
  void setIndependentVariableData() {

    // Declare sets to hold data
    List<VariableData> variableList = new LinkedList<>();

Method parseFormula has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void parseFormula(ParametricModel oldPM, ParametricModel newPM) {
        String formula = MathUtilities.getFormula(formulaArea.getText(), boundaryArea.getText());
        formula = formula.replaceAll("\n", "");
        formula = formula.replaceAll("\\s", "");
        formula = formula.replace("~", "=").trim();

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

    @Override
    public void actionPerformed(ActionEvent e) {
        if (e.getSource() == fittingBox) {
            initGUI();
        } else if (e.getSource() == expertBox) {

Method loadOldValidatedSettingsFrom has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected void loadOldValidatedSettingsFrom( final NodeSettingsRO settings )
            throws InvalidSettingsException {
        /*
        filename = settings.getString( PARAM_FILENAME );
        login = settings.getString( PARAM_LOGIN );

Method okButtonActionPerformed has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void okButtonActionPerformed(ActionEvent e) {
        String newSA = textField1.getText();
        String newPass = String.valueOf(passwordField1.getPassword());
        if (newPass.equals(String.valueOf(passwordField2.getPassword()))) {
            String ibText = "";
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/ChangeMasterPass.java - About 1 hr to fix

Method getCachedTable has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private ResultSet getCachedTable(String cacheTable, String selectSQL, String whereSQL, String cacheWhereSQL, String[] relevantTables) throws SQLException {
        boolean dropCacheFirst = false;
        long lastCaching = DBKernel.getLastCache(conn, cacheTable);
        //System.err.println(selectSQL + whereSQL);
        //long ttt = System.currentTimeMillis();

Method loadPortObject has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        @Override
        public FskPortObject loadPortObject(PortObjectZipInputStream in, PortObjectSpec spec, ExecutionMonitor exec)
                throws IOException, CanceledExecutionException {

            FskPortObject portObj = new FskPortObject();

Method resetParameterIdForObjectsFromJSON has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private void resetParameterIdForObjectsFromJSON(FskPortObject outObj1, int suffixIndex) {
    String modelName = SwaggerUtil.getModelName(outObj1.modelMetadata);
    if (outObj1 instanceof CombinedFskPortObject) {
      ++suffixIndex;
      if (fskID_to_fskObject.containsKey(modelName) && suffixIndex > 1) {

Method getVisibleColumns has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public List<String> getVisibleColumns() {
        List<String> visibleColumns = new ArrayList<>();
        List<String> columns = new ArrayList<>();

        columns.addAll(Arrays.asList(COLOR, SHAPE, DATA, FORMULA, PARAMETERS,

Method passesFilter has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static boolean passesFilter(final String literatureString, final Integer literatureID, final KnimeTuple tuple, final int level) throws PmmException {
        if (literatureString == null || literatureString.trim().isEmpty()) return true;
            PmmXmlDoc litXmlDoc = tuple.getPmmXml(level == 1 ? Model1Schema.ATT_EMLIT : Model2Schema.ATT_EMLIT);
            for (PmmXmlElementConvertable el : litXmlDoc.getElementSet()) {
                if (el instanceof LiteratureItem) {

Method testEquals has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  @Test
  public void testEquals() {
    Variable p = new Variable();
    p.name = "Prevalence";
    p.unit = "percent";

Method createCategory has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private Category createCategory(Map<Integer, UnitsFromDB> units, String categoryName) {
        DJep parser = MathUtilities.createParser();
        Map<String, Node> fromFormulas = new LinkedHashMap<>();
        Map<String, Node> toFormulas = new LinkedHashMap<>();
        Map<String, String> fromFormulaStrings = new LinkedHashMap<>();

Method install has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  public synchronized void install(final List<String> packages)
      throws RException, REXPMismatchException, NoInternetException {
    
    if (Platform.isLinux() || Platform.isMac()) {
      // Install missing packages

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

    token: function(stream, state) {
      var sol = stream.sol() || state.afterSection;
      var eol = stream.eol();

      state.afterSection = false;

Function _runModelView has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    async _runModelView ( modelId ) {
        let O = this;
        _log( 'PANEL SIM / _runModelView : '+ O._modelId, 'secondary' );

        modelId = modelId || O._modelId;
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/app/app.simulation.js - About 1 hr to fix

Function _checkValue has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      function _checkValue() {
        var val, parsedval, returnval;

        val = settings.callback_before_calculation(originalinput.val());

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