Show lint diagnostics even if there're errors in the file (KT-12022)

It also affects working with KotlinChangeLocalityDetector. Right after error is fixed in local context file is still reported as having errors and diagnostics are not counted.

 #KT-12022 Fixed
This commit is contained in:
Nikolay Krasko
2016-09-01 21:50:23 +03:00
parent 795fef20d7
commit 67f353903e
4 changed files with 27 additions and 0 deletions
@@ -62,6 +62,12 @@ import static com.android.tools.klint.detector.api.TextFormat.RAW;
public class AndroidLintExternalAnnotator extends ExternalAnnotator<State, State> {
static final boolean INCLUDE_IDEA_SUPPRESS_ACTIONS = false;
@Nullable
@Override
public State collectInformation(@NotNull PsiFile file, @NotNull Editor editor, boolean hasErrors) {
return collectInformation(file);
}
@Override
public State collectInformation(@NotNull PsiFile file) {
final Module module = ModuleUtilCore.findModuleForPsiElement(file);