I am writing custom lint rules, which should be shown in Android Studio. Everything is working fine except if i click on the "more..." link to see further explanation for the lint error. It always says "Under construction". I don't know why, is this a bug or am I doing something wrong?
An extraction of the Detector.class:
public class MyDetector extends Detector implements Detector.GradleScanner {
static Implementation IMPLEMENTATION = new Implementation(
MyDetector.class,
Scope.GRADLE_SCOPE
);
public static final Issue COMPATIBILITY = Issue.create(
"id here",
"brief desc",
"longer explanation",
Category.CORRECTNESS,
5,
Severity.WARNING,
IMPLEMENTATION);
@Override
public void visitBuildScript(@NonNull Context context,
Map<String, Object> sharedData) {
context.report(
COMPATIBILITY,
getLocation(),
"report id"
);
}
I'm am using:
Android Studio 2.3.3
Build #AI-162.4069837, built on June 6, 2017
JRE: 1.8.0_112-release-b06 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Dependencies:
compile 'com.android.tools.lint:lint-api:25.2.0'
compile 'com.android.tools.lint:lint-checks:25.2.0'
compile 'com.android.tools.lint:lint:25.2.0'
...
com.android.tools.build:gradle:2.2.0
Tooltip while hovering over the lint problem:
lint html is looking fine