Lint: Remove lint suppress quickfix (does not work currently with Kotlin)
This commit is contained in:
+1
-2
@@ -237,7 +237,7 @@ public class AndroidLintExternalAnnotator extends ExternalAnnotator<State, State
|
|||||||
if (startElement != null && endElement != null && !inspection.isSuppressedFor(startElement)) {
|
if (startElement != null && endElement != null && !inspection.isSuppressedFor(startElement)) {
|
||||||
if (problemData.getConfiguredSeverity() != null) {
|
if (problemData.getConfiguredSeverity() != null) {
|
||||||
HighlightDisplayLevel configuredLevel =
|
HighlightDisplayLevel configuredLevel =
|
||||||
org.jetbrains.android.inspections.klint.AndroidLintInspectionBase.toHighlightDisplayLevel(problemData.getConfiguredSeverity());
|
AndroidLintInspectionBase.toHighlightDisplayLevel(problemData.getConfiguredSeverity());
|
||||||
if (configuredLevel != null) {
|
if (configuredLevel != null) {
|
||||||
displayLevel = configuredLevel;
|
displayLevel = configuredLevel;
|
||||||
}
|
}
|
||||||
@@ -253,7 +253,6 @@ public class AndroidLintExternalAnnotator extends ExternalAnnotator<State, State
|
|||||||
for (IntentionAction intention : inspection.getIntentions(startElement, endElement)) {
|
for (IntentionAction intention : inspection.getIntentions(startElement, endElement)) {
|
||||||
annotation.registerFix(intention);
|
annotation.registerFix(intention);
|
||||||
}
|
}
|
||||||
annotation.registerFix(new org.jetbrains.android.inspections.klint.SuppressLintIntentionAction(key.getID(), startElement));
|
|
||||||
annotation.registerFix(new MyDisableInspectionFix(key));
|
annotation.registerFix(new MyDisableInspectionFix(key));
|
||||||
annotation.registerFix(new MyEditInspectionToolsSettingsAction(key, inspection));
|
annotation.registerFix(new MyEditInspectionToolsSettingsAction(key, inspection));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user