# LintOptions

# LintOptions

<br />

```
@Incubating
public interface LintOptions
```

<br />

*** ** * ** ***

| **This interface is deprecated.**   
| Renamed to Lint

DSL object for configuring lint options.

This block is replaced by the new[Lint](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/Lint)block. Unlike most other renamed blocks the new type is unrelated, to allow for some extra changes, such as removing the 'is' prefix from boolean properties.

Example:  

```world-of-warcraft-toc
android {
   lintOptions {
         // set to true to turn off analysis progress reporting by lint
         quiet true
         // if true, stop the gradle build if errors are found
         abortOnError false
         // set to true to have all release builds run lint on issues with severity=fatal
         // and abort the build (controlled by abortOnError above) if fatal issues are found
         checkReleaseBuilds true
         // if true, only report errors
         ignoreWarnings true
         // if true, emit full/absolute paths to files with errors (true by default)
         absolutePaths true
         // if true, check all issues, including those that are off by default
         checkAllWarnings true
         // if true, treat all warnings as errors
         warningsAsErrors true
         // turn off checking the given issue id's
         disable 'TypographyFractions','TypographyQuotes'
         // turn on the given issue id's
         enable 'RtlHardcoded','RtlCompat', 'RtlEnabled'
         // check *only* the given issue id's
         check 'NewApi', 'InlinedApi'
         // if true, don't include source code lines in the error output
         noLines true
         // if true, show all locations for an error, do not truncate lists, etc.
         showAll true
         // whether lint should include full issue explanations in the text error output
         explainIssues false
         // Fallback lint configuration (default severities, etc.)
         lintConfig file("default-lint.xml")
         // if true, generate a text report of issues (false by default)
         textReport true
         // location to write the output; can be a file or 'stdout' or 'stderr'
         //textOutput 'stdout'
         textOutput file("$buildDir/reports/lint-results.txt")
         // if true, generate an XML report for use by for example Jenkins
         xmlReport true
         // file to write report to (if not specified, defaults to lint-results.xml)
         xmlOutput file("$buildDir/reports/lint-report.xml")
         // if true, generate an HTML report (with issue explanations, sourcecode, etc)
         htmlReport true
         // optional path to HTML report (default will be lint-results.html in the builddir)
         htmlOutput file("$buildDir/reports/lint-report.html")
         // if true, generate a SARIF report (OASIS Static Analysis Results Interchange Format)
         sarifReport true
         // optional path to SARIF report (default will be lint-results.sarif in the builddir)
         sarifOutput file("$buildDir/reports/lint-report.html")
         // Set the severity of the given issues to fatal (which means they will be
         // checked during release builds (even if the lint target is not included)
         fatal 'NewApi', 'InlineApi'
         // Set the severity of the given issues to error
         error 'Wakelock', 'TextViewEdits'
         // Set the severity of the given issues to warning
         warning 'ResourceAsColor'
         // Set the severity of the given issues to ignore (same as disabling the check)
         ignore 'TypographyQuotes'
         // Set the severity of the given issues to informational
         informational 'StopShip'
         // Use (or create) a baseline file for issues that should not be reported
         baseline file("lint-baseline.xml")
         // Normally most lint checks are not run on test sources (except the checks
         // dedicated to looking for mistakes in unit or instrumentation tests, unless
         // ignoreTestSources is true). You can turn on normal lint checking in all
         // sources with the following flag, false by default:
         checkTestSources true
         // Like checkTestSources, but always skips analyzing tests -- meaning that it
         // also ignores checks that have explicitly asked to look at test sources, such
         // as the unused resource check.
         ignoreTestSources true
         // Normally lint will skip generated sources, but you can turn it on with this flag
         checkGeneratedSources true
         // Whether lint should check all dependencies too as part of its analysis.
         // Default is false.
         checkDependencies true
    }
}
```

## Summary

|                                                                                                                                                                                                     ### Public methods                                                                                                                                                                                                      |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) ~~[baseline](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#baseline(java.io.File))~~`(@`[NonNull](https://developer.android.com/reference/tools/gradle-api/8.3/null/androidx/annotation/NonNull)` `[File](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/File.html)` baselineFile)` **This method is deprecated.**Replaced by lint.baseline                                                                                                                                                                                                                                                                                                                      |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) ~~[baseline](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#baseline(kotlin.String))~~`(@`[NonNull](https://developer.android.com/reference/tools/gradle-api/8.3/null/androidx/annotation/NonNull)` `[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)` baseline)` **This method is deprecated.**Replaced by lint.baseline                                                                                                                                                                                                                                                                                                                   |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) ~~[check](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#check(kotlin.String))~~`(@`[NonNull](https://developer.android.com/reference/tools/gradle-api/8.3/null/androidx/annotation/NonNull)` `[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)` id)` **This method is deprecated.**Use checkOnly instead; check will turn off all other checks so the method has been renamed to be more explicit about this                                                                                                                                                                                                                               |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) ~~[check](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#check(kotlin.Array))~~`(@`[NonNull](https://developer.android.com/reference/tools/gradle-api/8.3/null/androidx/annotation/NonNull)` `[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)` ids)` **This method is deprecated.**Use checkOnly instead; check will turn off all other checks so the method has been renamed to be more explicit about this                                                                                                                                                                                                                               |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) ~~[checkOnly](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#checkOnly(kotlin.String))~~`(@`[NonNull](https://developer.android.com/reference/tools/gradle-api/8.3/null/androidx/annotation/NonNull)` `[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)` id)` **This method is deprecated.**Replaced by lint.checkOnly += id                                                                                                                                                                                                                                                                                                                |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) ~~[checkOnly](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#checkOnly(kotlin.Array))~~`(@`[NonNull](https://developer.android.com/reference/tools/gradle-api/8.3/null/androidx/annotation/NonNull)` `[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)` ids)` **This method is deprecated.**Replaced by lint.checkOnly += ids                                                                                                                                                                                                                                                                                                               |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) ~~[disable](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#disable(kotlin.String))~~`(@`[NonNull](https://developer.android.com/reference/tools/gradle-api/8.3/null/androidx/annotation/NonNull)` `[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)` id)` **This method is deprecated.**Replaced by lint.disable += ids                                                                                                                                                                                                                                                                                                                     |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) ~~[disable](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#disable(kotlin.Array))~~`(@`[NonNull](https://developer.android.com/reference/tools/gradle-api/8.3/null/androidx/annotation/NonNull)` `[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)` ids)` **This method is deprecated.**Replaced by lint.disable += ids                                                                                                                                                                                                                                                                                                                     |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) ~~[enable](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#enable(kotlin.String))~~`(@`[NonNull](https://developer.android.com/reference/tools/gradle-api/8.3/null/androidx/annotation/NonNull)` `[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)` id)` **This method is deprecated.**Replaced by lint.enable += id                                                                                                                                                                                                                                                                                                                         |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) ~~[enable](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#enable(kotlin.Array))~~`(@`[NonNull](https://developer.android.com/reference/tools/gradle-api/8.3/null/androidx/annotation/NonNull)` `[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)` ids)` **This method is deprecated.**Replaced by lint.enable += ids                                                                                                                                                                                                                                                                                                                        |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) ~~[error](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#error(kotlin.String))~~`(@`[NonNull](https://developer.android.com/reference/tools/gradle-api/8.3/null/androidx/annotation/NonNull)` `[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)` id)` **This method is deprecated.**Replaced by lint.error += id                                                                                                                                                                                                                                                                                                                            |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) ~~[error](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#error(kotlin.Array))~~`(@`[NonNull](https://developer.android.com/reference/tools/gradle-api/8.3/null/androidx/annotation/NonNull)` `[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)` ids)` **This method is deprecated.**Replaced by lint.error += ids                                                                                                                                                                                                                                                                                                                           |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) ~~[fatal](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#fatal(kotlin.String))~~`(@`[NonNull](https://developer.android.com/reference/tools/gradle-api/8.3/null/androidx/annotation/NonNull)` `[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)` id)` **This method is deprecated.**Replaced by lint.fatal += id                                                                                                                                                                                                                                                                                                                            |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) ~~[fatal](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#fatal(kotlin.Array))~~`(@`[NonNull](https://developer.android.com/reference/tools/gradle-api/8.3/null/androidx/annotation/NonNull)` `[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)` ids)` **This method is deprecated.**Replaced by lint.fatal += ids                                                                                                                                                                                                                                                                                                                           |
| `abstract `[File](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/File.html)                                                                                                                                                                                                                                                                                                                           | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [getBaselineFile](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#getBaselineFile())`()` The baseline file to use, if any.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| `abstract @`[NonNull](https://developer.android.com/reference/tools/gradle-api/8.3/null/androidx/annotation/NonNull)` `[Set](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Set.html)`<@`[NonNull](https://developer.android.com/reference/tools/gradle-api/8.3/null/androidx/annotation/NonNull)` `[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)`>` | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [getCheckOnly](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#getCheckOnly())`()` The exact set of issues to check set by[checkOnly](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#checkOnly(kotlin.String)). s If empty, lint will detect the issues that are enabled by default plus any issues enabled via[enable](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#enable(kotlin.String))and without issues disabled via[disable](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#disable(kotlin.String)). |
| `abstract @`[NonNull](https://developer.android.com/reference/tools/gradle-api/8.3/null/androidx/annotation/NonNull)` `[Set](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Set.html)`<@`[NonNull](https://developer.android.com/reference/tools/gradle-api/8.3/null/androidx/annotation/NonNull)` `[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)`>` | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [getDisable](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#getDisable())`()` The set of issue IDs to suppress.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `abstract @`[NonNull](https://developer.android.com/reference/tools/gradle-api/8.3/null/androidx/annotation/NonNull)` `[Set](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Set.html)`<@`[NonNull](https://developer.android.com/reference/tools/gradle-api/8.3/null/androidx/annotation/NonNull)` `[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)`>` | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [getEnable](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#getEnable())`()` The set of issue IDs to enable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `abstract `[File](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/File.html)                                                                                                                                                                                                                                                                                                                           | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [getHtmlOutput](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#getHtmlOutput())`()` The optional path to where an HTML report should be written.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `abstract boolean`                                                                                                                                                                                                                                                                                                                                                                                                          | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [getHtmlReport](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#getHtmlReport())`()` Whether we should write an HTML report.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `abstract `[File](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/File.html)                                                                                                                                                                                                                                                                                                                           | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [getLintConfig](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#getLintConfig())`()` The default config file to use as a fallback.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `abstract `[File](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/File.html)                                                                                                                                                                                                                                                                                                                           | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [getSarifOutput](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#getSarifOutput())`()` The optional path to where a SARIF report (OASIS Static Analysis Results Interchange Format) should be written.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `abstract boolean`                                                                                                                                                                                                                                                                                                                                                                                                          | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [getSarifReport](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#getSarifReport())`()` Whether we should write a SARIF (OASIS Static Analysis Results Interchange Format) report.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `abstract `[File](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/File.html)                                                                                                                                                                                                                                                                                                                           | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [getTextOutput](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#getTextOutput())`()` The optional path to where a text report should be written.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `abstract boolean`                                                                                                                                                                                                                                                                                                                                                                                                          | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [getTextReport](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#getTextReport())`()` Whether we should write a text report.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `abstract `[File](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/File.html)                                                                                                                                                                                                                                                                                                                           | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [getXmlOutput](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#getXmlOutput())`()` The optional path to where an XML report should be written.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `abstract boolean`                                                                                                                                                                                                                                                                                                                                                                                                          | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [getXmlReport](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#getXmlReport())`()` Whether we should write an XML report.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) ~~[ignore](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#ignore(kotlin.String))~~`(@`[NonNull](https://developer.android.com/reference/tools/gradle-api/8.3/null/androidx/annotation/NonNull)` `[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)` id)` **This method is deprecated.**Replaced by lint.ignore += id                                                                                                                                                                                                                                                                                                                         |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) ~~[ignore](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#ignore(kotlin.Array))~~`(@`[NonNull](https://developer.android.com/reference/tools/gradle-api/8.3/null/androidx/annotation/NonNull)` `[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)` ids)` **This method is deprecated.**Replaced by lint.ignore += ids                                                                                                                                                                                                                                                                                                                        |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) ~~[informational](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#informational(kotlin.String))~~`(@`[NonNull](https://developer.android.com/reference/tools/gradle-api/8.3/null/androidx/annotation/NonNull)` `[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)` id)` **This method is deprecated.**Replaced by lint.informational += id                                                                                                                                                                                                                                                                                                    |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) ~~[informational](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#informational(kotlin.Array))~~`(@`[NonNull](https://developer.android.com/reference/tools/gradle-api/8.3/null/androidx/annotation/NonNull)` `[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)` ids)` **This method is deprecated.**Replaced by lint.informational += ids                                                                                                                                                                                                                                                                                                   |
| `abstract boolean`                                                                                                                                                                                                                                                                                                                                                                                                          | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [isAbortOnError](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#getIsAbortOnError())`()` Whether lint should set the exit code of the process if errors are found                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `abstract boolean`                                                                                                                                                                                                                                                                                                                                                                                                          | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [isAbsolutePaths](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#getIsAbsolutePaths())`()` Whether lint should display full paths in the error output.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `abstract boolean`                                                                                                                                                                                                                                                                                                                                                                                                          | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [isCheckAllWarnings](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#getIsCheckAllWarnings())`()` Whether lint should check all warnings, including those off by default                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `abstract boolean`                                                                                                                                                                                                                                                                                                                                                                                                          | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [isCheckDependencies](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#getIsCheckDependencies())`()` Whether lint should check all dependencies too as part of its analysis.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `abstract boolean`                                                                                                                                                                                                                                                                                                                                                                                                          | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [isCheckGeneratedSources](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#getIsCheckGeneratedSources())`()` Returns whether lint should run checks on generated sources.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `abstract boolean`                                                                                                                                                                                                                                                                                                                                                                                                          | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [isCheckReleaseBuilds](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#getIsCheckReleaseBuilds())`()` Whether lint should check for fatal errors during release builds.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `abstract boolean`                                                                                                                                                                                                                                                                                                                                                                                                          | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [isCheckTestSources](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#getIsCheckTestSources())`()` Whether lint should run all checks on test sources, instead of just the lint checks that have been specifically written to include tests (e.g. checks looking for specific test errors, or checks that need to consider testing code such as the unused resource detector)                                                                                                                                                                                                                                                                                                             |
| `abstract boolean`                                                                                                                                                                                                                                                                                                                                                                                                          | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [isExplainIssues](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#getIsExplainIssues())`()` Whether lint should include explanations for issue errors.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `abstract boolean`                                                                                                                                                                                                                                                                                                                                                                                                          | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [isIgnoreTestSources](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#getIsIgnoreTestSources())`()` Whether lint should ignore all test sources.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `abstract boolean`                                                                                                                                                                                                                                                                                                                                                                                                          | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [isIgnoreWarnings](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#getIsIgnoreWarnings())`()` Returns whether lint will only check for errors (ignoring warnings)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `abstract boolean`                                                                                                                                                                                                                                                                                                                                                                                                          | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [isNoLines](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#getIsNoLines())`()` Whether lint should include the source lines in the output where errors occurred (true by default)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `abstract boolean`                                                                                                                                                                                                                                                                                                                                                                                                          | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [isQuiet](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#getIsQuiet())`()` Whether lint should be quiet (for example, not write informational messages such as paths to report files written)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `abstract boolean`                                                                                                                                                                                                                                                                                                                                                                                                          | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [isShowAll](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#getIsShowAll())`()` Whether lint should include all output (e.g. include all alternate locations, not truncating long messages, etc.)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `abstract boolean`                                                                                                                                                                                                                                                                                                                                                                                                          | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [isWarningsAsErrors](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#getIsWarningsAsErrors())`()` Whether lint should treat all warnings as errors                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [setAbortOnError](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#setIsAbortOnError(kotlin.Boolean))`(boolean isAbortOnError)` Whether lint should set the exit code of the process if errors are found                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [setAbsolutePaths](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#setIsAbsolutePaths(kotlin.Boolean))`(boolean isAbsolutePaths)` Whether lint should display full paths in the error output.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [setBaselineFile](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#setBaselineFile(java.io.File))`(`[File](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/File.html)` baselineFile)` The baseline file to use, if any.                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [setCheckAllWarnings](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#setIsCheckAllWarnings(kotlin.Boolean))`(boolean isCheckAllWarnings)` Whether lint should check all warnings, including those off by default                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [setCheckDependencies](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#setIsCheckDependencies(kotlin.Boolean))`(boolean isCheckDependencies)` Whether lint should check all dependencies too as part of its analysis.                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [setCheckGeneratedSources](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#setIsCheckGeneratedSources(kotlin.Boolean))`(boolean isCheckGeneratedSources)` Returns whether lint should run checks on generated sources.                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [setCheckReleaseBuilds](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#setIsCheckReleaseBuilds(kotlin.Boolean))`(boolean isCheckReleaseBuilds)` Whether lint should check for fatal errors during release builds.                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [setCheckTestSources](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#setIsCheckTestSources(kotlin.Boolean))`(boolean isCheckTestSources)` Whether lint should run all checks on test sources, instead of just the lint checks that have been specifically written to include tests (e.g. checks looking for specific test errors, or checks that need to consider testing code such as the unused resource detector)                                                                                                                                                                                                                                                                    |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [setExplainIssues](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#setIsExplainIssues(kotlin.Boolean))`(boolean isExplainIssues)` Whether lint should include explanations for issue errors.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [setHtmlOutput](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#setHtmlOutput(java.io.File))`(`[File](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/File.html)` htmlOutput)` The optional path to where an HTML report should be written.                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [setHtmlReport](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#setHtmlReport(kotlin.Boolean))`(boolean htmlReport)` Whether we should write an HTML report.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [setIgnoreTestSources](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#setIsIgnoreTestSources(kotlin.Boolean))`(boolean isIgnoreTestSources)` Whether lint should ignore all test sources.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [setIgnoreWarnings](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#setIsIgnoreWarnings(kotlin.Boolean))`(boolean isIgnoreWarnings)` Returns whether lint will only check for errors (ignoring warnings)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [setLintConfig](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#setLintConfig(java.io.File))`(`[File](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/File.html)` lintConfig)` The default config file to use as a fallback.                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [setNoLines](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#setIsNoLines(kotlin.Boolean))`(boolean isNoLines)` Whether lint should include the source lines in the output where errors occurred (true by default)                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [setQuiet](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#setIsQuiet(kotlin.Boolean))`(boolean isQuiet)` Whether lint should be quiet (for example, not write informational messages such as paths to report files written)                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [setSarifOutput](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#setSarifOutput(java.io.File))`(`[File](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/File.html)` sarifOutput)` The optional path to where a SARIF report (OASIS Static Analysis Results Interchange Format) should be written.                                                                                                                                                                                                                                                                                                                                                                   |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [setSarifReport](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#setSarifReport(kotlin.Boolean))`(boolean sarifReport)` Whether we should write a SARIF (OASIS Static Analysis Results Interchange Format) report.                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [setShowAll](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#setIsShowAll(kotlin.Boolean))`(boolean isShowAll)` Whether lint should include all output (e.g. include all alternate locations, not truncating long messages, etc.)                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [setTextOutput](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#setTextOutput(java.io.File))`(`[File](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/File.html)` textOutput)` The optional path to where a text report should be written.                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [setTextReport](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#setTextReport(kotlin.Boolean))`(boolean textReport)` Whether we should write a text report.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [setWarningsAsErrors](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#setIsWarningsAsErrors(kotlin.Boolean))`(boolean isWarningsAsErrors)` Whether lint should treat all warnings as errors                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [setXmlOutput](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#setXmlOutput(java.io.File))`(`[File](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/File.html)` xmlOutput)` The optional path to where an XML report should be written.                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [setXmlReport](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#setXmlReport(kotlin.Boolean))`(boolean xmlReport)` Whether we should write an XML report.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) ~~[textOutput](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#textOutput(java.io.File))~~`(@`[NonNull](https://developer.android.com/reference/tools/gradle-api/8.3/null/androidx/annotation/NonNull)` `[File](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/File.html)` textOutput)` **This method is deprecated.**Replaced by lint.textOutput                                                                                                                                                                                                                                                                                                                  |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) ~~[textOutput](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#textOutput(kotlin.String))~~`(@`[NonNull](https://developer.android.com/reference/tools/gradle-api/8.3/null/androidx/annotation/NonNull)` `[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)` textOutput)` **This method is deprecated.**Replaced by lint.textOutput                                                                                                                                                                                                                                                                                                           |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) ~~[warning](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#warning(kotlin.String))~~`(@`[NonNull](https://developer.android.com/reference/tools/gradle-api/8.3/null/androidx/annotation/NonNull)` `[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)` id)` **This method is deprecated.**Replaced by lint.warning += id                                                                                                                                                                                                                                                                                                                      |
| `abstract void`                                                                                                                                                                                                                                                                                                                                                                                                             | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) ~~[warning](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#warning(kotlin.Array))~~`(@`[NonNull](https://developer.android.com/reference/tools/gradle-api/8.3/null/androidx/annotation/NonNull)` `[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)` ids)` **This method is deprecated.**Replaced by lint.warning += ids                                                                                                                                                                                                                                                                                                                     |

## Public methods

### baseline

```
@Incubating
abstract void [baseline](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#baseline(java.io.File))(@NonNull File baselineFile)
```
| **This method is deprecated.**   
| Replaced by lint.baseline

Sets the baseline file to use, if any. The baseline file is an XML report previously created by lint, and any warnings and errors listed in that report will be ignored from analysis.

If you have a project with a large number of existing warnings, this lets you set a baseline and only see newly introduced warnings until you get a chance to go back and address the "technical debt" of the earlier warnings.  

### baseline

```
@Incubating
abstract void [baseline](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#baseline(kotlin.String))(@NonNull String baseline)
```
| **This method is deprecated.**   
| Replaced by lint.baseline

Sets the baseline file to use, if any. The baseline file is an XML report previously created by lint, and any warnings and errors listed in that report will be ignored from analysis.

If you have a project with a large number of existing warnings, this lets you set a baseline and only see newly introduced warnings until you get a chance to go back and address the "technical debt" of the earlier warnings.  

### check

```
@Incubating
abstract void [check](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#check(kotlin.String))(@NonNull String id)
```
| **This method is deprecated.**   
| Use checkOnly instead; check will turn off all other checks so the method has been renamed to be more explicit about this

Adds the id to the set of unique issues to check.  

### check

```
@Incubating
abstract void [check](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#check(kotlin.Array))(@NonNull String ids)
```
| **This method is deprecated.**   
| Use checkOnly instead; check will turn off all other checks so the method has been renamed to be more explicit about this

Adds the ids to the set of unique issues to check.  

### checkOnly

```
@Incubating
abstract void [checkOnly](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#checkOnly(kotlin.String))(@NonNull String id)
```
| **This method is deprecated.**   
| Replaced by lint.checkOnly += id

Adds the id to the set of issues to check. Note that when using this, all other checks are turned off.  

### checkOnly

```
@Incubating
abstract void [checkOnly](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#checkOnly(kotlin.Array))(@NonNull String ids)
```
| **This method is deprecated.**   
| Replaced by lint.checkOnly += ids

Adds the id to the set of issues to check. Note that when using this, all other checks are turned off.  

### disable

```
@Incubating
abstract void [disable](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#disable(kotlin.String))(@NonNull String id)
```
| **This method is deprecated.**   
| Replaced by lint.disable += ids

Adds the id to the set of issues to suppress.  

### disable

```
@Incubating
abstract void [disable](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#disable(kotlin.Array))(@NonNull String ids)
```
| **This method is deprecated.**   
| Replaced by lint.disable += ids

Adds the ids to the set of issues to suppress.  

### enable

```
@Incubating
abstract void [enable](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#enable(kotlin.String))(@NonNull String id)
```
| **This method is deprecated.**   
| Replaced by lint.enable += id

Adds the id to the set of issues to enable.  

### enable

```
@Incubating
abstract void [enable](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#enable(kotlin.Array))(@NonNull String ids)
```
| **This method is deprecated.**   
| Replaced by lint.enable += ids

Adds the ids to the set of issues to enable.  

### error

```
@Incubating
abstract void [error](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#error(kotlin.String))(@NonNull String id)
```
| **This method is deprecated.**   
| Replaced by lint.error += id

Adds a severity override for the given issue.  

### error

```
@Incubating
abstract void [error](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#error(kotlin.Array))(@NonNull String ids)
```
| **This method is deprecated.**   
| Replaced by lint.error += ids

Adds a severity override for the given issues.  

### fatal

```
@Incubating
abstract void [fatal](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#fatal(kotlin.String))(@NonNull String id)
```
| **This method is deprecated.**   
| Replaced by lint.fatal += id

Adds a severity override for the given issue.  

### fatal

```
@Incubating
abstract void [fatal](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#fatal(kotlin.Array))(@NonNull String ids)
```
| **This method is deprecated.**   
| Replaced by lint.fatal += ids

Adds a severity override for the given issues.  

### getBaselineFile

```
@Incubating
abstract File getBaselineFile()
```

The baseline file to use, if any. The baseline file is an XML report previously created by lint, and any warnings and errors listed in that report will be ignored from analysis.

If you have a project with a large number of existing warnings, this lets you set a baseline and only see newly introduced warnings until you get a chance to go back and address the "technical debt" of the earlier warnings.  

### getCheckOnly

```
@Incubating
abstract @NonNull Set<@NonNull String> getCheckOnly()
```

The exact set of issues to check set by[checkOnly](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#checkOnly(kotlin.String)). s If empty, lint will detect the issues that are enabled by default plus any issues enabled via[enable](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#enable(kotlin.String))and without issues disabled via[disable](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#disable(kotlin.String)).  

### getDisable

```
@Incubating
abstract @NonNull Set<@NonNull String> getDisable()
```

The set of issue IDs to suppress.

Issues passed to[disable](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#disable(kotlin.String))to this list, call Callers are allowed to modify this collection.  

### getEnable

```
@Incubating
abstract @NonNull Set<@NonNull String> getEnable()
```

The set of issue IDs to enable. Callers are allowed to modify this collection.  

### getHtmlOutput

```
@Incubating
abstract File getHtmlOutput()
```

The optional path to where an HTML report should be written. Setting this property will also turn on[htmlReport](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#htmlReport()).  

### getHtmlReport

```
@Incubating
abstract boolean getHtmlReport()
```

Whether we should write an HTML report. Default is true. The location can be controlled by[htmlOutput](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#htmlOutput()).  

### getLintConfig

```
@Incubating
abstract File getLintConfig()
```

The default config file to use as a fallback. This corresponds to a`lint.xml`file with severities etc to use when a project does not have more specific information.  

### getSarifOutput

```
@Incubating
abstract File getSarifOutput()
```

The optional path to where a SARIF report (OASIS Static Analysis Results Interchange Format) should be written. Setting this property will also turn on[sarifReport](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#sarifReport()).  

### getSarifReport

```
@Incubating
abstract boolean getSarifReport()
```

Whether we should write a SARIF (OASIS Static Analysis Results Interchange Format) report. Default is false. The location can be controlled by[sarifOutput](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#sarifOutput()).  

### getTextOutput

```
@Incubating
abstract File getTextOutput()
```

The optional path to where a text report should be written. The special value "stdout" can be used to point to standard output. Setting this property will also turn on[textReport](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#textReport()).  

### getTextReport

```
@Incubating
abstract boolean getTextReport()
```

Whether we should write a text report. Default is false. The location can be controlled by[textOutput](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#textOutput(kotlin.String)).  

### getXmlOutput

```
@Incubating
abstract File getXmlOutput()
```

The optional path to where an XML report should be written. Setting this property will also turn on[xmlReport](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#xmlReport()).  

### getXmlReport

```
@Incubating
abstract boolean getXmlReport()
```

Whether we should write an XML report. Default is true. The location can be controlled by[xmlOutput](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#xmlOutput()).  

### ignore

```
@Incubating
abstract void [ignore](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#ignore(kotlin.String))(@NonNull String id)
```
| **This method is deprecated.**   
| Replaced by lint.ignore += id

Adds a severity override for the given issue.  

### ignore

```
@Incubating
abstract void [ignore](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#ignore(kotlin.Array))(@NonNull String ids)
```
| **This method is deprecated.**   
| Replaced by lint.ignore += ids

Adds a severity override for the given issues.  

### informational

```
@Incubating
abstract void [informational](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#informational(kotlin.String))(@NonNull String id)
```
| **This method is deprecated.**   
| Replaced by lint.informational += id

Adds a severity override for the given issue.  

### informational

```
@Incubating
abstract void [informational](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#informational(kotlin.Array))(@NonNull String ids)
```
| **This method is deprecated.**   
| Replaced by lint.informational += ids

Adds a severity override for the given issues.  

### isAbortOnError

```
@Incubating
abstract boolean isAbortOnError()
```

Whether lint should set the exit code of the process if errors are found  

### isAbsolutePaths

```
@Incubating
abstract boolean isAbsolutePaths()
```

Whether lint should display full paths in the error output. By default the paths are relative to the path lint was invoked from.  

### isCheckAllWarnings

```
@Incubating
abstract boolean isCheckAllWarnings()
```

Whether lint should check all warnings, including those off by default  

### isCheckDependencies

```
@Incubating
abstract boolean isCheckDependencies()
```

Whether lint should check all dependencies too as part of its analysis. Default is false.  

### isCheckGeneratedSources

```
@Incubating
abstract boolean isCheckGeneratedSources()
```

Returns whether lint should run checks on generated sources.  

### isCheckReleaseBuilds

```
@Incubating
abstract boolean isCheckReleaseBuilds()
```

Whether lint should check for fatal errors during release builds. Default is true. If issues with severity "fatal" are found, the release build is aborted.  

### isCheckTestSources

```
@Incubating
abstract boolean isCheckTestSources()
```

Whether lint should run all checks on test sources, instead of just the lint checks that have been specifically written to include tests (e.g. checks looking for specific test errors, or checks that need to consider testing code such as the unused resource detector)  

### isExplainIssues

```
@Incubating
abstract boolean isExplainIssues()
```

Whether lint should include explanations for issue errors. (Note that HTML and XML reports intentionally do this unconditionally, ignoring this setting.)  

### isIgnoreTestSources

```
@Incubating
abstract boolean isIgnoreTestSources()
```

Whether lint should ignore all test sources. This is like[isCheckTestSources](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#isCheckTestSources()), but always skips analyzing tests -- meaning that it also ignores checks that have explicitly asked to look at test sources, such as the unused resource check.  

### isIgnoreWarnings

```
@Incubating
abstract boolean isIgnoreWarnings()
```

Returns whether lint will only check for errors (ignoring warnings)  

### isNoLines

```
@Incubating
abstract boolean isNoLines()
```

Whether lint should include the source lines in the output where errors occurred (true by default)  

### isQuiet

```
@Incubating
abstract boolean isQuiet()
```

Whether lint should be quiet (for example, not write informational messages such as paths to report files written)  

### isShowAll

```
@Incubating
abstract boolean isShowAll()
```

Whether lint should include all output (e.g. include all alternate locations, not truncating long messages, etc.)  

### isWarningsAsErrors

```
@Incubating
abstract boolean isWarningsAsErrors()
```

Whether lint should treat all warnings as errors  

### setAbortOnError

```
@Incubating
abstract void setAbortOnError(boolean isAbortOnError)
```

Whether lint should set the exit code of the process if errors are found  

### setAbsolutePaths

```
@Incubating
abstract void setAbsolutePaths(boolean isAbsolutePaths)
```

Whether lint should display full paths in the error output. By default the paths are relative to the path lint was invoked from.  

### setBaselineFile

```
@Incubating
abstract void setBaselineFile(File baselineFile)
```

The baseline file to use, if any. The baseline file is an XML report previously created by lint, and any warnings and errors listed in that report will be ignored from analysis.

If you have a project with a large number of existing warnings, this lets you set a baseline and only see newly introduced warnings until you get a chance to go back and address the "technical debt" of the earlier warnings.  

### setCheckAllWarnings

```
@Incubating
abstract void setCheckAllWarnings(boolean isCheckAllWarnings)
```

Whether lint should check all warnings, including those off by default  

### setCheckDependencies

```
@Incubating
abstract void setCheckDependencies(boolean isCheckDependencies)
```

Whether lint should check all dependencies too as part of its analysis. Default is false.  

### setCheckGeneratedSources

```
@Incubating
abstract void setCheckGeneratedSources(boolean isCheckGeneratedSources)
```

Returns whether lint should run checks on generated sources.  

### setCheckReleaseBuilds

```
@Incubating
abstract void setCheckReleaseBuilds(boolean isCheckReleaseBuilds)
```

Whether lint should check for fatal errors during release builds. Default is true. If issues with severity "fatal" are found, the release build is aborted.  

### setCheckTestSources

```
@Incubating
abstract void setCheckTestSources(boolean isCheckTestSources)
```

Whether lint should run all checks on test sources, instead of just the lint checks that have been specifically written to include tests (e.g. checks looking for specific test errors, or checks that need to consider testing code such as the unused resource detector)  

### setExplainIssues

```
@Incubating
abstract void setExplainIssues(boolean isExplainIssues)
```

Whether lint should include explanations for issue errors. (Note that HTML and XML reports intentionally do this unconditionally, ignoring this setting.)  

### setHtmlOutput

```
@Incubating
abstract void setHtmlOutput(File htmlOutput)
```

The optional path to where an HTML report should be written. Setting this property will also turn on[htmlReport](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#htmlReport()).  

### setHtmlReport

```
@Incubating
abstract void setHtmlReport(boolean htmlReport)
```

Whether we should write an HTML report. Default is true. The location can be controlled by[htmlOutput](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#htmlOutput()).  

### setIgnoreTestSources

```
@Incubating
abstract void setIgnoreTestSources(boolean isIgnoreTestSources)
```

Whether lint should ignore all test sources. This is like[isCheckTestSources](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#isCheckTestSources()), but always skips analyzing tests -- meaning that it also ignores checks that have explicitly asked to look at test sources, such as the unused resource check.  

### setIgnoreWarnings

```
@Incubating
abstract void setIgnoreWarnings(boolean isIgnoreWarnings)
```

Returns whether lint will only check for errors (ignoring warnings)  

### setLintConfig

```
@Incubating
abstract void setLintConfig(File lintConfig)
```

The default config file to use as a fallback. This corresponds to a`lint.xml`file with severities etc to use when a project does not have more specific information.  

### setNoLines

```
@Incubating
abstract void setNoLines(boolean isNoLines)
```

Whether lint should include the source lines in the output where errors occurred (true by default)  

### setQuiet

```
@Incubating
abstract void setQuiet(boolean isQuiet)
```

Whether lint should be quiet (for example, not write informational messages such as paths to report files written)  

### setSarifOutput

```
@Incubating
abstract void setSarifOutput(File sarifOutput)
```

The optional path to where a SARIF report (OASIS Static Analysis Results Interchange Format) should be written. Setting this property will also turn on[sarifReport](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#sarifReport()).  

### setSarifReport

```
@Incubating
abstract void setSarifReport(boolean sarifReport)
```

Whether we should write a SARIF (OASIS Static Analysis Results Interchange Format) report. Default is false. The location can be controlled by[sarifOutput](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#sarifOutput()).  

### setShowAll

```
@Incubating
abstract void setShowAll(boolean isShowAll)
```

Whether lint should include all output (e.g. include all alternate locations, not truncating long messages, etc.)  

### setTextOutput

```
@Incubating
abstract void setTextOutput(File textOutput)
```

The optional path to where a text report should be written. The special value "stdout" can be used to point to standard output. Setting this property will also turn on[textReport](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#textReport()).  

### setTextReport

```
@Incubating
abstract void setTextReport(boolean textReport)
```

Whether we should write a text report. Default is false. The location can be controlled by[textOutput](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#textOutput(kotlin.String)).  

### setWarningsAsErrors

```
@Incubating
abstract void setWarningsAsErrors(boolean isWarningsAsErrors)
```

Whether lint should treat all warnings as errors  

### setXmlOutput

```
@Incubating
abstract void setXmlOutput(File xmlOutput)
```

The optional path to where an XML report should be written. Setting this property will also turn on[xmlReport](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#xmlReport()).  

### setXmlReport

```
@Incubating
abstract void setXmlReport(boolean xmlReport)
```

Whether we should write an XML report. Default is true. The location can be controlled by[xmlOutput](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#xmlOutput()).  

### textOutput

```
@Incubating
abstract void [textOutput](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#textOutput(java.io.File))(@NonNull File textOutput)
```
| **This method is deprecated.**   
| Replaced by lint.textOutput

Sets the optional path to where a text report should be written  

### textOutput

```
@Incubating
abstract void [textOutput](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#textOutput(kotlin.String))(@NonNull String textOutput)
```
| **This method is deprecated.**   
| Replaced by lint.textOutput

Sets the optional path to where a text report should be written  

### warning

```
@Incubating
abstract void [warning](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#warning(kotlin.String))(@NonNull String id)
```
| **This method is deprecated.**   
| Replaced by lint.warning += id

Adds a severity override for the given issue.  

### warning

```
@Incubating
abstract void [warning](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/LintOptions#warning(kotlin.Array))(@NonNull String ids)
```
| **This method is deprecated.**   
| Replaced by lint.warning += ids

Adds a severity override for the given issues.