SiLeBAT/FSK-Lab

View on GitHub

Showing 14,752 of 14,752 total issues

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

    public static Object getGeneralInformation(Model model) {
        Object information;

        final String modelType = model.getModelType();
        if (modelType.equalsIgnoreCase("genericModel")) {

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

    public static Object getModelMath(Model model) {
        Object math;

        final String modelType = model.getModelType();
        if (modelType.equalsIgnoreCase("genericModel")) {

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

    private PredictiveModelDataBackground retrieveBackground(Sheet sheet) {
        PredictiveModelDataBackground background = new PredictiveModelDataBackground();
        try {
            Study study = retrieveStudy(sheet);
            background.setStudy(study);

Method toString has 30 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 retrieveBackground has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private OtherModelDataBackground retrieveBackground(Sheet sheet) {

        OtherModelDataBackground background = new OtherModelDataBackground();

        try {

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

    @Override
    public void eUnset(int featureID) {
        switch (featureID) {
            case MetadataPackage.ASSAY__ASSAY_NAME:
                setAssayName(ASSAY_NAME_EDEFAULT);

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

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

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

    private PmmXmlDoc combase2XML(String misc) {
        PmmXmlDoc result = null;
        if (misc != null) {
            result = new PmmXmlDoc();
            List<String> conds = condSplit(misc);

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

    public void loadSettings(NodeSettingsRO settings) {
        try {
            fittingType = settings.getString(CFGKEY_FITTINGTYPE);
        } catch (InvalidSettingsException e) {
        }

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

  public static PmmXmlDoc parseMiscs(Map<String, Double> miscs) {
    PmmXmlDoc cell = new PmmXmlDoc();

    if (miscs != null) {
      // First misc item has id -1 and the rest of items have negative

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

    private void startTheDB(Boolean autoUpdate, boolean openTheGui) {
        MainFrame mf = null;
        DBKernel.myDBi = MyDBI.loadDB(textField2.getText() + System.getProperty("file.separator") + DBKernel.dbKennung + ".xml");
        if (DBKernel.myDBi != null) {
            DBKernel.HSHDB_PATH = textField2.getText();
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/Login.java - About 1 hr to fix

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

    void insertNull(final int selRow, final int selCol) {
        if (!this.actualTable.isReadOnly() && selCol > 0 && selRow >= 0 && this.getRowCount() > 0) {
        String[] mnTable = actualTable.getMNTable();
        MyTable[] myFs = actualTable.getForeignFields();
            if (mnTable != null && mnTable.length > selCol - 1 && mnTable[selCol - 1] != null) {
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBTable.java - About 1 hr to fix

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

    private JPanel getOkApplyCancelPanel(final JDialog dialog, final PredictorViewNodeDialog pvnd) {
        JPanel panel = new JPanel();
        JButton okButton = new JButton("Ok");
        JButton applyButton = new JButton("Apply");
        JButton cancelButton = new JButton("Cancel");

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

    public MyDBTable setListVisible(boolean visible, MyTable myT2, Object[][] t1Conditions, Object[][] t2Conditions, Integer row) {
        gmRow = row;
        this.t1Conditions = t1Conditions;
        this.t2Conditions = t2Conditions;
        splitPane2.getRightComponent().setVisible(visible);
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBPanel.java - About 1 hr to fix

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");

Severity
Category
Status
Source
Language