tanmayghosh2507
tanmayghosh2507

Reputation: 773

How to ignore build.gradle using lint?

  1. 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?

  2. Moreover, while generating Lint report using generateGradleLintReport, it is not generating anything.

  3. 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

Answers (0)

Related Questions