You can use the Violation Gradle Plugin for this.
It can accumulate many reporting tools and represent them well in the build log.
...
se/bjurr/violations/lib/example/OtherClass.java
ββββββββββββ€βββββββββββββ€βββββββββββ€βββββββ€βββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Reporter β Rule β Severity β Line β Message β
β βββββββββββͺβββββββββββββͺβββββββββββͺβββββββͺβββββββββββββββββββββββββββββββββββββββββββββββββββββ£
β Findbugs β MS_SHOULD_ β INFO β 7 β Field isn't final but should be β
β β BE_FINAL β β β β
β β β β β β
β β β β β <p> β
β β β β β This static field public but not final, and β
β β β β β could be changed by malicious code or β
β β β β β by accident from another package. β
β β β β β The field could be made final to avoid β
β β β β β this vulnerability.</p> β
ββββββββββββΌβββββββββββββΌβββββββββββΌβββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββ’
β Findbugs β NM_FIELD_N β INFO β 6 β Field names should start with a lower case letter β
β β AMING_CONV β β β β
β β ENTION β β β β
β β β β β <p> β
β β β β β Names of fields that are not final should be in mi β
β β β β β xed case with a lowercase first letter and the fir β
β β β β β st letters of subsequent words capitalized. β
β β β β β </p> β
ββββββββββββ§βββββββββββββ§βββββββββββ§βββββββ§βββββββββββββββββββββββββββββββββββββββββββββββββββββ
Summary of se/bjurr/violations/lib/example/OtherClass.java
ββββββββββββ€βββββββ€βββββββ€ββββββββ€ββββββββ
β Reporter β INFO β WARN β ERROR β Total β
β βββββββββββͺβββββββͺβββββββͺββββββββͺββββββββ£
β Findbugs β 2 β 0 β 0 β 2 β
ββββββββββββΌβββββββΌβββββββΌββββββββΌββββββββ’
β β 2 β 0 β 0 β 2 β
ββββββββββββ§βββββββ§βββββββ§ββββββββ§ββββββββ
Summary
ββββββββββββββ€βββββββ€βββββββ€ββββββββ€ββββββββ
β Reporter β INFO β WARN β ERROR β Total β
β βββββββββββββͺβββββββͺβββββββͺββββββββͺββββββββ£
β Checkstyle β 4 β 1 β 1 β 6 β
ββββββββββββββΌβββββββΌβββββββΌββββββββΌββββββββ’
β Findbugs β 2 β 2 β 5 β 9 β
ββββββββββββββΌβββββββΌβββββββΌββββββββΌββββββββ’
β β 6 β 3 β 6 β 15 β
ββββββββββββββ§βββββββ§βββββββ§ββββββββ§ββββββββ
source
share