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:
+6
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user