SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Method setParameter has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static void setParameter(Model model, List<Parameter> pList) {

        final String modelType = model.getModelType();
        if (modelType.equalsIgnoreCase("genericModel")) {
            ((GenericModel) model).getModelMath().setParameter(pList);

Method setModelName has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static void setModelName(Model model, String name) {

        final String modelType = model.getModelType();
        if (modelType.equalsIgnoreCase("genericModel")) {
            ((GenericModel) model).getGeneralInformation().setName(name);

Method setModelId has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static void setModelId(Model model, String id) {

        final String modelType = model.getModelType();
        if (modelType.equalsIgnoreCase("genericModel")) {
            ((GenericModel) model).getGeneralInformation().setIdentifier(id);

Method retrieveQualityMeasures has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private QualityMeasures retrieveQualityMeasures(Sheet sheet) {
        QualityMeasures measures = new QualityMeasures();

        Cell sseCell = sheet.getRow(QUALITY_MEASURES__SSE).getCell(M);
        if (sseCell.getCellTypeEnum() == CellType.NUMERIC) {

Method retrieveQualityMeasures has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public QualityMeasures retrieveQualityMeasures(Sheet sheet) {
        final QualityMeasures measures = new QualityMeasures();

        final Cell sseCell = sheet.getRow(QUALITY_MEASURES__SSE).getCell(M);
        if (sseCell.getCellType() == Cell.CELL_TYPE_NUMERIC) {

Method retrieveQualityMeasures has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private QualityMeasures retrieveQualityMeasures(Sheet sheet) {
        QualityMeasures measures = new QualityMeasures();

        Cell sseCell = sheet.getRow(QUALITY_MEASURES__SSE).getCell(M);
        if (sseCell.getCellTypeEnum() == CellType.NUMERIC) {

Method retrieveDietaryAssessmentMethod has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public DietaryAssessmentMethod retrieveDietaryAssessmentMethod(Row row) {

        // Check first mandatory properties
        if (row.getCell(L).getCellType() != Cell.CELL_TYPE_STRING) {
            throw new IllegalArgumentException("Missing methodological tool to collect data");

Method retrieveDietaryAssessmentMethod has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public DietaryAssessmentMethod retrieveDietaryAssessmentMethod(Row row) {

        // Check first mandatory properties
        if (row.getCell(L).getCellType() != Cell.CELL_TYPE_STRING) {
            throw new IllegalArgumentException("Missing methodological tool to collect data");

Method retrieveDietaryAssessmentMethod has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public DietaryAssessmentMethod retrieveDietaryAssessmentMethod(Row row) {

        // Check first mandatory properties
        if (row.getCell(L).getCellType() != Cell.CELL_TYPE_STRING) {
            throw new IllegalArgumentException("Missing methodological tool to collect data");

Method retrieveQualityMeasures has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private QualityMeasures retrieveQualityMeasures(Sheet sheet) {
        QualityMeasures measures = new QualityMeasures();

        Cell sseCell = sheet.getRow(QUALITY_MEASURES__SSE).getCell(M);
        if (sseCell.getCellTypeEnum() == CellType.NUMERIC) {

Method retrieveQualityMeasures has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private QualityMeasures retrieveQualityMeasures(Sheet sheet) {
        QualityMeasures measures = new QualityMeasures();

        Cell sseCell = sheet.getRow(QUALITY_MEASURES__SSE).getCell(M);
        if (sseCell.getCellTypeEnum() == CellType.NUMERIC) {

Method retrieveQualityMeasures has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private QualityMeasures retrieveQualityMeasures(Sheet sheet) {
        final QualityMeasures measures = new QualityMeasures();

        final Cell sseCell = sheet.getRow(QUALITY_MEASURES__SSE).getCell(M);
        if (sseCell.getCellTypeEnum() == CellType.NUMERIC) {

Method retrieveQualityMeasures has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private QualityMeasures retrieveQualityMeasures(Sheet sheet) {
        QualityMeasures measures = new QualityMeasures();

        Cell sseCell = sheet.getRow(QUALITY_MEASURES__SSE).getCell(M);
        if (sseCell.getCellTypeEnum() == CellType.NUMERIC) {

Method retrieveQualityMeasures has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private QualityMeasures retrieveQualityMeasures(Sheet sheet) {
        QualityMeasures measures = new QualityMeasures();

        Cell sseCell = sheet.getRow(QUALITY_MEASURES__SSE).getCell(L);
        if (sseCell.getCellTypeEnum() == CellType.NUMERIC) {

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

    private QualityMeasures retrieveQualityMeasures(Sheet sheet) {
        QualityMeasures measures = new QualityMeasures();

        Cell sseCell = sheet.getRow(QUALITY_MEASURES__SSE).getCell(M);
        if (sseCell.getCellTypeEnum() == CellType.NUMERIC) {

Method retrieveQualityMeasures has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private QualityMeasures retrieveQualityMeasures(Sheet sheet) {
        QualityMeasures measures = new QualityMeasures();

        Cell sseCell = sheet.getRow(QUALITY_MEASURES__SSE).getCell(M);
        if (sseCell.getCellTypeEnum() == CellType.NUMERIC) {

Method retrieveQualityMeasures has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private QualityMeasures retrieveQualityMeasures(Sheet sheet) {
        QualityMeasures measures = new QualityMeasures();

        Cell sseCell = sheet.getRow(QUALITY_MEASURES__SSE).getCell(M);
        if (sseCell.getCellTypeEnum() == CellType.NUMERIC) {

Method retrieveQualityMeasures has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private QualityMeasures retrieveQualityMeasures(Sheet sheet) {
        QualityMeasures measures = new QualityMeasures();

        Cell sseCell = sheet.getRow(QUALITY_MEASURES__SSE).getCell(M);
        if (sseCell.getCellTypeEnum() == CellType.NUMERIC) {

Method create has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public EObject create(EClass eClass) {
        switch (eClass.getClassifierID()) {
            case MetadataPackage.GENERAL_INFORMATION: return createGeneralInformation();
            case MetadataPackage.MODEL_CATEGORY: return createModelCategory();
Severity
Category
Status
Source
Language