File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 96
96
run : |
97
97
sudo apt-get update -y
98
98
sudo apt-get install -y clang-format cppcheck
99
- curl -L -o spotbugs-4.7.3.zip https://github.com/spotbugs/spotbugs/releases/download/4.7.3/spotbugs-4.7.3.zip
100
- unzip spotbugs-4.7.3.zip
101
99
102
100
- name : Install opensource COBOL 4J
103
101
run : |
@@ -110,15 +108,16 @@ jobs:
110
108
run : |
111
109
./check-format
112
110
113
- - name : Run SpotBugs
111
+ - name : Run SpotBugs (ignore results)
114
112
run : |
115
- java -jar spotbugs-4.7.3/lib/spotbugs.jar -textui libcobj/app/build/classes
113
+ cd libcobj
114
+ ./gradlew spotbugsMain || true
116
115
117
116
- name : Run PMD
118
117
run : |
119
118
cd libcobj
120
119
./gradlew pmdMain
121
120
122
- - name : Run cppcheck
121
+ - name : Run cppcheck (ignore results)
123
122
run : |
124
123
cd cobj && cppcheck cobj.c cobj.h codegen.c config.c error.c field.c pplex.c ppparse.c ppparse.h reserved.c tree.c tree.h typeck.c
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ plugins {
7
7
id(" com.github.sherter.google-java-format" ) version " 0.9"
8
8
id(" maven-publish" )
9
9
pmd
10
+ id(" com.github.spotbugs" ) version " 6.0.0-rc.2"
10
11
}
11
12
12
13
repositories {
@@ -15,8 +16,8 @@ repositories {
15
16
16
17
dependencies {
17
18
implementation(" com.google.guava:guava:31.1-jre" )
18
-
19
19
implementation(" org.xerial:sqlite-jdbc:3.30.1" )
20
+ spotbugs(" com.github.spotbugs:spotbugs:4.8.0" )
20
21
}
21
22
22
23
java {
You can’t perform that action at this time.
0 commit comments