Skip to content

Automatic lint execution

Martin Chalupa edited this page Apr 2, 2018 · 1 revision

Automatic lint execution

Lint is automatically executed at the end of each build. The exception are those tasks: help, tasks, dependencies, dependencyInsight, components, model, projects, properties, wrapper.

Disable automatic lint excution

You have an option to disable automatic execution. You can do that through the plugin extension or command line project parameter.

gradleLint {
    alwaysRun = false
}

./gradlew build -PgradleLint.alwaysRun=false

Skip automatic lint execution for a specific tasks

You can add more task to the list of task for which you want to skip automation lint execution. You can achieve that through the plugin extension.

gradleLint {
    skipForTask('check')
    skipForTask('myTask')
}