mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
undesirable class usage inspection in devkit
This commit is contained in:
+2
@@ -21,6 +21,8 @@ import com.intellij.openapi.application.ex.ApplicationManagerEx;
|
||||
import com.intellij.util.ArrayUtil;
|
||||
|
||||
public class InternalInspectionToolsProvider implements InspectionToolProvider {
|
||||
public static final String GROUP_NAME = "IDEA Platform Inspections";
|
||||
|
||||
@Override
|
||||
public Class[] getInspectionClasses() {
|
||||
if (!ApplicationManagerEx.getApplicationEx().isInternal()) return ArrayUtil.EMPTY_CLASS_ARRAY;
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@ public class UndesirableClassUsageInspection extends BaseJavaLocalInspectionTool
|
||||
@NotNull
|
||||
@Override
|
||||
public String getGroupDisplayName() {
|
||||
return "IDEA Platform Internal Inspections";
|
||||
return InternalInspectionToolsProvider.GROUP_NAME;
|
||||
}
|
||||
|
||||
@Nls
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
package org.jetbrains.idea.devkit;
|
||||
|
||||
import com.intellij.codeInspection.InspectionToolProvider;
|
||||
import com.intellij.codeInspection.internal.UndesirableClassUsageInspection;
|
||||
import org.jetbrains.idea.devkit.inspections.ComponentNotRegisteredInspection;
|
||||
import org.jetbrains.idea.devkit.inspections.InspectionDescriptionNotFoundInspection;
|
||||
import org.jetbrains.idea.devkit.inspections.IntentionDescriptionNotFoundInspection;
|
||||
@@ -31,7 +32,8 @@ public class DevKitInspectionToolProvider implements InspectionToolProvider {
|
||||
PluginXmlDomInspection.class,
|
||||
ComponentNotRegisteredInspection.class,
|
||||
InspectionDescriptionNotFoundInspection.class,
|
||||
IntentionDescriptionNotFoundInspection.class
|
||||
IntentionDescriptionNotFoundInspection.class,
|
||||
UndesirableClassUsageInspection.class
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user