Ignoring library project with Android lint on the command line

后端 未结 3 1969
逝去的感伤
逝去的感伤 2021-01-20 01:31

I am using Android lint with Jenkins and need to ignore library projects (specifically Action Bar Sherlock) that my team does not modify so that we can get useful results fr

3条回答
  •  深忆病人
    2021-01-20 01:49

    This is how I do it with Jenkins and Gradle:

    • Configure the Jenkins post-build action "Publish Android Lint Results" to pick up only the lint-results.xml of the main project. The default is **/lint-results.xml and includes lint results of library projects.
    • Set abortOnError false in the build.gradle file in library projects to ignore lint errors there.

提交回复
热议问题