SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

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

    public static Object getDataBackground(Model model) {
        Object background;

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

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

    public static String getModelId(Model model) {
        String name;

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

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

    @Deprecated
    public static de.bund.bfr.metadata.swagger.GenericModelGeneralInformation convert(
            metadata.GeneralInformation deprecatedGeneralInformation) {
        GenericModelGeneralInformation swaggerGI = new GenericModelGeneralInformation();

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

    public static Object getScope(Model model) {
        Object scope;

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

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

    public static String getModelName(Model model) {
        String name;

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

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
Severity
Category
Status
Source
Language