Revize 93cc44d4
Přidáno uživatelem Jiri Trefil před téměř 2 roky(ů)
pom.xml | ||
---|---|---|
11 | 11 |
|
12 | 12 |
<groupId>cz.zcu.fav.kiv</groupId> |
13 | 13 |
<artifactId>anti-pattern-detection-app</artifactId> |
14 |
<version>1.2.0</version>
|
|
14 |
<version>2.0.0</version>
|
|
15 | 15 |
<packaging>war</packaging> |
16 | 16 |
<name>anti-pattern-detection-app</name> |
17 |
<description>Basic web application for anti pattern detection</description> |
|
18 |
|
|
17 |
<description>RESTful application for anti pattern detection</description> |
|
18 |
<developers> |
|
19 |
<developer> |
|
20 |
<name>Petr Urban</name> |
|
21 |
<email>urbanp@students.zcu.cz</email> |
|
22 |
<roles> |
|
23 |
<role>Fullstack developer</role> |
|
24 |
<role>Team leader</role> |
|
25 |
</roles> |
|
26 |
</developer> |
|
27 |
|
|
28 |
<developer> |
|
29 |
<name>Jiří Trefil</name> |
|
30 |
<email>trefil@students.zcu.cz</email> |
|
31 |
<roles> |
|
32 |
<role>Fullstack developer</role> |
|
33 |
</roles> |
|
34 |
</developer> |
|
35 |
|
|
36 |
<developer> |
|
37 |
<name>Petr Štěpánek</name> |
|
38 |
<email>petrs1@students.zcu.cz</email> |
|
39 |
<roles> |
|
40 |
<role>Frontend developer</role> |
|
41 |
<role>Database plumber</role> |
|
42 |
</roles> |
|
43 |
</developer> |
|
44 |
|
|
45 |
<developer> |
|
46 |
<name>Václav Hrabík</name> |
|
47 |
<email>hrabikv@students.zcu.cz</email> |
|
48 |
<roles> |
|
49 |
<role>TESTER</role> |
|
50 |
<role>Backend developer</role> |
|
51 |
|
|
52 |
</roles> |
|
53 |
</developer> |
|
54 |
|
|
55 |
</developers> |
|
19 | 56 |
<properties> |
20 | 57 |
<java.version>11</java.version> |
21 | 58 |
<spring.boot.version>2.6.9</spring.boot.version> |
src/main/java/cz/zcu/fav/kiv/antipatterndetectionapp/v2/service/DetectionServiceImpl.java | ||
---|---|---|
1 | 1 |
package cz.zcu.fav.kiv.antipatterndetectionapp.v2.service; |
2 | 2 |
|
3 | 3 |
import cz.zcu.fav.kiv.antipatterndetectionapp.detecting.AntiPatternManager; |
4 |
import cz.zcu.fav.kiv.antipatterndetectionapp.model.Query; |
|
5 |
import cz.zcu.fav.kiv.antipatterndetectionapp.model.QueryResult; |
|
4 |
import cz.zcu.fav.kiv.antipatterndetectionapp.model.*; |
|
6 | 5 |
import cz.zcu.fav.kiv.antipatterndetectionapp.service.AntiPatternService; |
7 | 6 |
import cz.zcu.fav.kiv.antipatterndetectionapp.service.ConfigurationService; |
8 | 7 |
import cz.zcu.fav.kiv.antipatterndetectionapp.service.ProjectService; |
... | ... | |
13 | 12 |
import org.springframework.beans.factory.annotation.Autowired; |
14 | 13 |
import org.springframework.stereotype.Service; |
15 | 14 |
|
15 |
import java.util.ArrayList; |
|
16 |
import java.util.HashMap; |
|
16 | 17 |
import java.util.List; |
17 | 18 |
import java.util.Map; |
18 | 19 |
|
... | ... | |
55 | 56 |
String[] selectedProjects = detectionRequest.getSelectedProjects(); |
56 | 57 |
String[] selectedAntiPatterns = detectionRequest.getSelectedAntipatterns(); |
57 | 58 |
List<QueryResult> results = antiPatternManager.analyze(selectedProjects, selectedAntiPatterns, currentConfiguration); |
59 |
|
|
60 |
/* List<QueryResultItem> i = new ArrayList<>(); |
|
61 |
Map<String,Threshold> thresholds = new HashMap<>(); |
|
62 |
thresholds.put("divisionOfIterationsWithRetrospective",new Threshold("divisionOfIterationsWithRetrospective","Division of iterations with retrospective","Minimum percentage of the total number of iterations with a retrospective (0,100)","Percentage must be float number between 0 and 100","Percentage")); |
|
63 |
i.add(new QueryResultItem(new AntiPattern(3,"Business As Usual","BusinessAsUsual","Absence of a retrospective after individual iterations or after the completion project."))) |
|
64 |
QueryResult q = new QueryResult(new Project("Rozšíření nástroje IMiGEr (KIV) - HKMM",""),new ArrayList<>()); |
|
65 |
*/ |
|
66 |
|
|
67 |
|
|
58 | 68 |
return results; |
59 | 69 |
} |
60 | 70 |
} |
Také k dispozici: Unified diff
#10650 CC a CR