-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"lint" task doesn't include custom rules ("Obsolete custom lint check") #13
Comments
You can try add this code at subclass of IssueRegistry |
Anything else code should be added? I have add this code in file SampleIssueRegistry.java,but i got a compile error after do that. |
@lijiahua my guess is that you are running a version of AGP in your project that is not compatible with the lint version you are using. Remember, if lint version should be the AGP version but the major version has 23 added to it. Example: AGP 3.2.1 necessitates lint version 26.2.1 |
This is the correct answer, thank you guy you saved my day! |
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:
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)
The text was updated successfully, but these errors were encountered: