Skip to main content
Version: 0.11.3

Suppressing Findings

You can disable individual ModuleCheck findings via annotation, just like with any other lint tool.

The name of the check to disable can be found in the name column of console output:

> Task :moduleCheck
ModuleCheck found 3 issues in 6.157 seconds

:app
dependency name build file
:fat-and-leaky inheritedDependency /Users/rbusarow/projects/sample/app/build.gradle.kts: (15, 3):
:fat-and-leaky mustBeApi /Users/rbusarow/projects/sample/app/build.gradle.kts: (15, 3):
:unused-lib unusedDependency /Users/rbusarow/projects/sample/app/build.gradle.kts: (49, 3):

build.gradle.kts
@Suppress("mustBeApi") // don't switch anything to an api config
dependencies {

@Suppress("unusedDependency") // don't comment out or delete this dependency
implementation(project(":unused-lib"))

@Suppress("inheritedDependency") // don't add dependencies which are inherited from this fat jar
implementation(project(":fat-and-leaky"))
}