Android Lint
Android Lint is a static analysis tool (which despite the name is not
limited to Android, and within Google for example is used to analyze
Java and Kotlin server side code as well as Android and even desktop
software like IDEs.)
Lint's focus is on finding bugs (whether they are related to
correctness, performance, security, internationalization, usability and
so on); it's not a source code style checker.
Available documentation:
- Lint Features
- Recent Changes
- Documents for users of lint, in the
usage
folder:
- Documents for authors of additional lint checks, in the
api-guide
folder:
- Documents for lint internals, intended for developers of lint
itself, in the
internal
folder:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Documentation History:
- June 2022: Added documentation for crafting error
messages
- May 2022: Noticed that the document rendering
was broken, such that many chapters were missing from
the api-guide: “Adding Quickfixes”, “Partial Analysis”,
“Data Flow Analyzer”, “Annotations”, and “Options”.
These are now included.
- November 2021: Added documentation for option
handling
- September 2021: Added documentation for annotation
handling
- July 2021: Added documentation for
test modes
- June 2021: Added documentation for the
dataflow analyzer,
Lint Gradle DSL and
command line flags.
- May 2021: Added documentation for individual lint issues
- March 2021: Initial version