googlesamples / googlesamples/android-custom-lint-rules

"lint" task doesn't include custom rules ("Obsolete custom lint check")

Open
#13 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
1k
Forks
176
PR merge metrics
No merged PRs in 30d

Description

I updated the current sample for AS3 to override the newly required "getApi()" method in the IssueRegistry.
AAR produced by the ":library" is included locally into dev project.

When running the "lint" task (e.g. lintDebug) on the project it does not include the custom rules:

> Obsolete custom lint check
> library-release.aar\...\lint.jar: Lint found an issue registry (com.example.lint.checks.SampleIssueRegistry) > which requires a newer API level. That means that the custom lint checks are intended for a newer lint > version; please upgrade

IDE support however works fine (highlighting the word "lint" on-the-fly)

Setup:
AS 3.2 RC3 (RC2 with same result)
AGP 3.1.4
Lint 26.3.0-alpha08 (26.2.0-rc02 didn't work either)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.