|
| 1 | +{ |
| 2 | + "tests": { |
| 3 | + "name": "Tests", |
| 4 | + "tools": [ |
| 5 | + { |
| 6 | + "id": "junit", |
| 7 | + "name": "Unit Tests", |
| 8 | + "pattern": "**/target/surefire-reports/TEST*.xml" |
| 9 | + }, |
| 10 | + { |
| 11 | + "id": "junit", |
| 12 | + "icon": "no_entry", |
| 13 | + "name": "Architecture Tests", |
| 14 | + "pattern": "**/target/archunit-reports/TEST*.xml" |
| 15 | + } |
| 16 | + ] |
| 17 | + }, |
| 18 | + "analysis": [ |
| 19 | + { |
| 20 | + "name": "Style", |
| 21 | + "id": "style", |
| 22 | + "tools": [ |
| 23 | + { |
| 24 | + "id": "checkstyle", |
| 25 | + "pattern": "**/target/**checkstyle-result.xml" |
| 26 | + }, |
| 27 | + { |
| 28 | + "id": "pmd", |
| 29 | + "pattern": "**/target/pmd-*/pmd.xml" |
| 30 | + }, |
| 31 | + { |
| 32 | + "id": "java", |
| 33 | + "icon": "coffee", |
| 34 | + "pattern": "**/maven.log" |
| 35 | + } |
| 36 | + ] |
| 37 | + }, |
| 38 | + { |
| 39 | + "name": "Bugs", |
| 40 | + "id": "bugs", |
| 41 | + "icon": "bug", |
| 42 | + "tools": [ |
| 43 | + { |
| 44 | + "id": "spotbugs", |
| 45 | + "sourcePath": "src/main/java", |
| 46 | + "pattern": "**/target/spotbugsXml.xml" |
| 47 | + }, |
| 48 | + { |
| 49 | + "id": "error-prone", |
| 50 | + "pattern": "**/maven.log" |
| 51 | + } |
| 52 | + ] |
| 53 | + }, |
| 54 | + { |
| 55 | + "name": "API Problems", |
| 56 | + "id": "api", |
| 57 | + "icon": "no_entry_sign", |
| 58 | + "tools": [ |
| 59 | + { |
| 60 | + "id": "revapi", |
| 61 | + "sourcePath": "src/main/java", |
| 62 | + "pattern": "**/target/revapi-result.json" |
| 63 | + } |
| 64 | + ] |
| 65 | + }, |
| 66 | + { |
| 67 | + "name": "Vulnerabilities", |
| 68 | + "id": "vulnerabilities", |
| 69 | + "icon": "shield", |
| 70 | + "tools": [ |
| 71 | + { |
| 72 | + "id": "owasp-dependency-check", |
| 73 | + "icon": "shield", |
| 74 | + "pattern": "**/target/dependency-check-report.json" |
| 75 | + } |
| 76 | + ] |
| 77 | + } |
| 78 | + ], |
| 79 | + "coverage": [ |
| 80 | + { |
| 81 | + "name": "Coverage for New Code", |
| 82 | + "tools": [ |
| 83 | + { |
| 84 | + "id": "jacoco", |
| 85 | + "metric": "line", |
| 86 | + "scope": "new", |
| 87 | + "sourcePath": "src/main/java", |
| 88 | + "pattern": "**/target/site/jacoco/jacoco.xml" |
| 89 | + }, |
| 90 | + { |
| 91 | + "id": "jacoco", |
| 92 | + "metric": "branch", |
| 93 | + "scope": "new", |
| 94 | + "sourcePath": "src/main/java", |
| 95 | + "pattern": "**/target/site/jacoco/jacoco.xml" |
| 96 | + }, |
| 97 | + { |
| 98 | + "id": "pit", |
| 99 | + "scope": "new", |
| 100 | + "metric": "mutation", |
| 101 | + "sourcePath": "src/main/java", |
| 102 | + "pattern": "**/target/pit-reports/mutations.xml" |
| 103 | + }, |
| 104 | + { |
| 105 | + "id": "pit", |
| 106 | + "metric": "test-strength", |
| 107 | + "scope": "new", |
| 108 | + "sourcePath": "src/main/java", |
| 109 | + "pattern": "**/target/pit-reports/mutations.xml" |
| 110 | + } |
| 111 | + ] |
| 112 | + }, |
| 113 | + { |
| 114 | + "name": "Coverage for Whole Project", |
| 115 | + "tools": [ |
| 116 | + { |
| 117 | + "id": "jacoco", |
| 118 | + "metric": "line", |
| 119 | + "sourcePath": "src/main/java", |
| 120 | + "pattern": "**/target/site/jacoco/jacoco.xml" |
| 121 | + }, |
| 122 | + { |
| 123 | + "id": "jacoco", |
| 124 | + "metric": "branch", |
| 125 | + "sourcePath": "src/main/java", |
| 126 | + "pattern": "**/target/site/jacoco/jacoco.xml" |
| 127 | + }, |
| 128 | + { |
| 129 | + "id": "pit", |
| 130 | + "metric": "mutation", |
| 131 | + "sourcePath": "src/main/java", |
| 132 | + "pattern": "**/target/pit-reports/mutations.xml" |
| 133 | + }, |
| 134 | + { |
| 135 | + "id": "pit", |
| 136 | + "metric": "test-strength", |
| 137 | + "sourcePath": "src/main/java", |
| 138 | + "pattern": "**/target/pit-reports/mutations.xml" |
| 139 | + } |
| 140 | + ] |
| 141 | + } |
| 142 | + ], |
| 143 | + "metrics": { |
| 144 | + "name": "Software Metrics", |
| 145 | + "tools": [ |
| 146 | + { |
| 147 | + "id": "metrics", |
| 148 | + "pattern": "**/metrics/pmd.xml", |
| 149 | + "metric": "CYCLOMATIC_COMPLEXITY" |
| 150 | + }, |
| 151 | + { |
| 152 | + "id": "metrics", |
| 153 | + "pattern": "**/metrics/pmd.xml", |
| 154 | + "metric": "COGNITIVE_COMPLEXITY" |
| 155 | + }, |
| 156 | + { |
| 157 | + "id": "metrics", |
| 158 | + "pattern": "**/metrics/pmd.xml", |
| 159 | + "metric": "NPATH_COMPLEXITY" |
| 160 | + }, |
| 161 | + { |
| 162 | + "id": "metrics", |
| 163 | + "pattern": "**/metrics/pmd.xml", |
| 164 | + "metric": "LOC" |
| 165 | + }, |
| 166 | + { |
| 167 | + "id": "metrics", |
| 168 | + "pattern": "**/metrics/pmd.xml", |
| 169 | + "metric": "NCSS" |
| 170 | + }, |
| 171 | + { |
| 172 | + "id": "metrics", |
| 173 | + "pattern": "**/metrics/pmd.xml", |
| 174 | + "metric": "COHESION" |
| 175 | + }, |
| 176 | + { |
| 177 | + "id": "metrics", |
| 178 | + "pattern": "**/metrics/pmd.xml", |
| 179 | + "metric": "WEIGHT_OF_CLASS" |
| 180 | + } |
| 181 | + ] |
| 182 | + } |
| 183 | +} |
0 commit comments