SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

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

    @Override
    public boolean eIsSet(int featureID) {
        switch (featureID) {
            case MetadataPackage.REFERENCE__IS_REFERENCE_DESCRIPTION:
                return isReferenceDescription != IS_REFERENCE_DESCRIPTION_EDEFAULT;

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

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

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

    @Override
    public boolean eIsSet(int featureID) {
        switch (featureID) {
            case MetadataPackage.CONTACT__TITLE:
                return TITLE_EDEFAULT == null ? title != null : !TITLE_EDEFAULT.equals(title);

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

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

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

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

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

    @Override
    public boolean eIsSet(int featureID) {
        switch (featureID) {
            case MetadataPackage.HAZARD__HAZARD_TYPE:
                return HAZARD_TYPE_EDEFAULT == null ? hazardType != null : !HAZARD_TYPE_EDEFAULT.equals(hazardType);

Method doOneStepEstimation has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

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

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

    public static boolean passesFilter(
            final int level,
            final int qualityMode,
            final double qualityThresh,
            final String matrixString,

Method setSelectedID has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public void setSelectedID(int id) {
        if (myModel != null) {
            try {
                int codeSystemNum = -1;
                if (this.getSelectionCount() > 0) {
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtree/MyDBTree.java - About 1 hr to fix

Method getStrVal has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private String getStrVal(HSSFCell cell, int maxChars) {
        String result = null;
        try {
            if (cell == null || cell.getCellType() == HSSFCell.CELL_TYPE_BLANK) {
            } else if (cell.getCellType() == HSSFCell.CELL_TYPE_STRING) {

Method createNodeModel has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public NodeModel createNodeModel() {

        PortType[] inputTypes = {};
        PortType[] outputTypes = { BufferedDataTable.TYPE };

Method retrieveStudy has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    static Study retrieveStudy(String[][] values) {

      int columnI = RakipColumn.I.ordinal();

      // Check mandatory properties

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

  @Override
  protected void saveSettingsTo(NodeSettingsWO settings) throws InvalidSettingsException {
    // Save modified scripts to settings
    this.settings.modifiedModelScript = modelScriptPanel.getText();
    this.settings.modifiedParametersScript = paramScriptPanel.getText();

Method loadSettings has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  public void loadSettings(final NodeSettingsRO settings) {
    originalModelScript = settings.getString("originalModelScript", "");
    originalParametersScript = settings.getString("originalParametersScript", "");
    originalVisualizationScript = settings.getString("originalVisualizationScript", "");

Method retrieveStudy has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    static Study retrieveStudy(String[][] values) {

      int columnI = RakipColumn.I.ordinal();

      // Check mandatory properties

Method retrieveStudy has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    static Study retrieveStudy(String[][] values) {

      int columnI = RakipColumn.I.ordinal();

      // Check mandatory properties

Method adaptRelationNames has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private static void adaptRelationNames(CombinedFskPortObject portObject, String suffix, int suffixInsertionIndex,
      Map<String, String> old_new_pramsMap) {
    Map<String, String> mapInversed = old_new_pramsMap.entrySet().stream()
        .collect(Collectors.toMap(Map.Entry::getValue, Map.Entry::getKey,
            // choose the second value in the case of key duplication

Method validateSettings has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  @Override
  protected void validateSettings(final NodeSettingsRO settings) throws InvalidSettingsException {
    m_repositoryLocationSettings.validateSettings(settings);
    m_maxSelectionNumberSettings.validateSettings(settings);
    if (settings.containsKey(KEY_SHOW_DOWNLOAD_BUTTON)) {

Method plotDataSet has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void plotDataSet(XYPlot plot, Plotable plotable, String id,
            Color defaultColor, Shape defaultShape) throws ConvertException {
        double[][] points = plotable.getPoints(paramX, paramY, unitX, unitY,
                transformX, transformY);
        String legend = shortLegend.get(id);

Method testLoadEmptySettings has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Test
    public void testLoadEmptySettings() {
        NodeSettings settings = new NodeSettings("identifier");
        SettingsHelper helper = new SettingsHelper();
        helper.loadSettings(settings);
Severity
Category
Status
Source
Language