Skip to content

Commit f9699d0

Browse files
committed
fix code coverage and remove job printed
1 parent 996b364 commit f9699d0

File tree

3 files changed

+4
-17
lines changed

3 files changed

+4
-17
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,6 @@ jobs:
6868
CX_TENANT: ${{ secrets.CX_TENANT }}
6969
CX_APIKEY: ${{ secrets.CX_APIKEY }}
7070

71-
- name: Print total coverage percentage
72-
run: |
73-
COVERED_LINES=$(xmllint --xpath "string(//report/counter[@type='LINE']/@covered)" target/site/jacoco/jacoco.xml)
74-
MISSED_LINES=$(xmllint --xpath "string(//report/counter[@type='LINE']/@missed)" target/site/jacoco/jacoco.xml)
75-
TOTAL_LINES=$((COVERED_LINES + MISSED_LINES))
76-
COVERAGE_PERCENTAGE=$(echo "scale=2; $COVERED_LINES / $TOTAL_LINES * 100" | bc)
77-
echo "Total coverage percentage: $COVERAGE_PERCENTAGE%"
78-
79-
80-
81-
82-
8371
- name: Generate JaCoCo Badge
8472
uses: cicirello/jacoco-badge-generator@f33476a5a3fd5a4f77cb5eef2ebe728c1dd5b921 #v2.11.0
8573
with:

pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@
7878
<exclude>**/com/checkmarx/ast/project/**</exclude>
7979
<exclude>**/com/checkmarx/ast/tenant/**</exclude>
8080
<exclude>**/com/checkmarx/ast/wrapper/Execution**</exclude>
81+
<exclude>**/com/checkmarx/ast/wrapper/CxConstants**</exclude>
82+
<exclude>**/com/checkmarx/ast/wrapper/CxException**</exclude>
83+
<exclude>**/com/checkmarx/ast/wrapper/CxConfig**</exclude>
84+
8185
<!-- Add other patterns as needed -->
8286
</excludes>
8387
</configuration>

src/main/java/com/checkmarx/ast/wrapper/CxConfig.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,6 @@ List<String> toArguments() {
6363
return commands;
6464
}
6565

66-
public static final class InvalidCLIConfigException extends Exception {
67-
public InvalidCLIConfigException(String message) {
68-
super(message);
69-
}
70-
}
7166

7267
@SuppressWarnings("ALL")
7368
public static class CxConfigBuilder {

0 commit comments

Comments
 (0)