Findbugs android gradle plugin

后端 未结 4 1495
天涯浪人
天涯浪人 2021-02-08 15:12

I have an android project. I want to introduce findbugs in my project as a gradle plugin. I tried to edit the project\'s build.gradle as below.

4条回答
  •  不要未来只要你来
    2021-02-08 16:03

    I see some problems with your configuration:

    • instead of 2.0.1 version use latest 3.0.1
    • set reportLevel to low instead of high to report all the violations
    • for the first analysis you don't need to configure any includeFilter or excludeFilter - these are only whitelist and blacklists of checks if you need some customization

    To run analysis just invoke gradle findbugsMain. Results should be visible in the output.

提交回复
热议问题