Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 04d7a678

Přidáno uživatelem Ondřej Váně před téměř 4 roky(ů)

Changed threshold values for too logn sprint

Zobrazit rozdíly:

src/main/java/cz/zcu/fav/kiv/antipatterndetectionapp/detecting/detectors/TooLongSprintDetectorImpl.java
28 28
                        "Maximum iteration length in days", 21));
29 29
                put("maxNumberOfTooLongIterations", new Configuration<Integer>("maxNumberOfTooLongIterations",
30 30
                        "Max number of foo long iterations",
31
                        "Maximum number of too long iterations in project", 1));
31
                        "Maximum number of too long iterations in project", 0));
32 32
            }}
33 33
    );
34 34

  
......
97 97
        List<ResultDetail> resultDetails = new ArrayList<>();
98 98
        resultDetails.add(new ResultDetail("Count of iterations without first and last", String.valueOf(totalCountOfIteration)));
99 99
        resultDetails.add(new ResultDetail("Number of too long iterations", String.valueOf(numberOfLongIterations)));
100
        if (numberOfLongIterations >= maxNumberOfTooLongIterations) {
100
        if (numberOfLongIterations > maxNumberOfTooLongIterations) {
101 101
            resultDetails.add(new ResultDetail("Conclusion", "One or more iteration is too long"));
102 102
        } else {
103 103
            resultDetails.add(new ResultDetail("Conclusion", "All iterations in limit"));
......
106 106
        LOGGER.info(this.antiPattern.getPrintName());
107 107
        LOGGER.info(resultDetails.toString());
108 108

  
109
        return new QueryResultItem(this.antiPattern, numberOfLongIterations >= maxNumberOfTooLongIterations, resultDetails);
109
        return new QueryResultItem(this.antiPattern, numberOfLongIterations > maxNumberOfTooLongIterations, resultDetails);
110 110
    }
111 111
}

Také k dispozici: Unified diff