Reputation: 773
I have added the lint plugin in my JAVA Project. But, it is showing up some warnings in build.gradle file when I am doing clean build.It is not showing any warning or error in the JAVA code. I want to ignore the code in build.gradle and want to focus on the main JAVA code. How can I ignore it?
gradleLint.ignore {
// my build script code that makes the linter suspicious...
}
I can ignore a piece of code using above , but how to ignore build.gradle?
Moreover, while generating Lint report using generateGradleLintReport, it is not generating anything.
I have the following linting rules:
gradleLint.rules = ['dependency-parentheses', 'dependency-tuple']
Which other rules to add so that lint gives the compilation errors.
Upvotes: 1
Views: 664