Search in sources :

Example 6 with GlobalInspectionToolWrapper

use of com.intellij.codeInspection.ex.GlobalInspectionToolWrapper in project android by JetBrains.

the class AndroidInspectionsTest method getUnusedDeclarationWrapper.

private static GlobalInspectionToolWrapper getUnusedDeclarationWrapper() {
    final InspectionEP ep = new InspectionEP();
    ep.presentation = UnusedDeclarationPresentation.class.getName();
    ep.implementationClass = UnusedDeclarationInspection.class.getName();
    ep.shortName = UnusedDeclarationInspectionBase.SHORT_NAME;
    UnusedDeclarationInspection tool = new UnusedDeclarationInspection(true);
    return new GlobalInspectionToolWrapper(tool, ep);
}
Also used : GlobalInspectionToolWrapper(com.intellij.codeInspection.ex.GlobalInspectionToolWrapper) InspectionEP(com.intellij.codeInspection.InspectionEP) UnusedDeclarationPresentation(com.intellij.codeInspection.deadCode.UnusedDeclarationPresentation) UnusedDeclarationInspection(com.intellij.codeInspection.deadCode.UnusedDeclarationInspection)

Aggregations

GlobalInspectionToolWrapper (com.intellij.codeInspection.ex.GlobalInspectionToolWrapper)6 LocalInspectionToolWrapper (com.intellij.codeInspection.ex.LocalInspectionToolWrapper)3 UnusedDeclarationInspection (com.intellij.codeInspection.deadCode.UnusedDeclarationInspection)2 InspectionToolWrapper (com.intellij.codeInspection.ex.InspectionToolWrapper)2 RefElement (com.intellij.codeInspection.reference.RefElement)2 NotNull (org.jetbrains.annotations.NotNull)2 Nullable (org.jetbrains.annotations.Nullable)2 AnalysisScope (com.intellij.analysis.AnalysisScope)1 DaemonProgressIndicator (com.intellij.codeInsight.daemon.impl.DaemonProgressIndicator)1 InspectionEP (com.intellij.codeInspection.InspectionEP)1 DummyEntryPointsEP (com.intellij.codeInspection.deadCode.DummyEntryPointsEP)1 UnusedDeclarationPresentation (com.intellij.codeInspection.deadCode.UnusedDeclarationPresentation)1 EmptyMethodInspection (com.intellij.codeInspection.emptyMethod.EmptyMethodInspection)1 I18nInspection (com.intellij.codeInspection.i18n.I18nInspection)1 JavaDocReferenceInspection (com.intellij.codeInspection.javaDoc.JavaDocReferenceInspection)1 OfflineProblemDescriptor (com.intellij.codeInspection.offline.OfflineProblemDescriptor)1 RefEntity (com.intellij.codeInspection.reference.RefEntity)1 RefManagerImpl (com.intellij.codeInspection.reference.RefManagerImpl)1 RefVisitor (com.intellij.codeInspection.reference.RefVisitor)1 VisibilityInspection (com.intellij.codeInspection.visibility.VisibilityInspection)1