mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
CR-17727: clean
GitOrigin-RevId: cf0ec2f34ac4195833c3be97c7751070ece9fb16
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f63534cf71
commit
ee8d5d63e7
+5
-2
@@ -33,6 +33,7 @@ import com.intellij.profile.codeInspection.InspectionProjectProfileManager;
|
||||
import com.intellij.profile.codeInspection.ProjectInspectionProfileManager;
|
||||
import com.intellij.psi.*;
|
||||
import com.intellij.psi.impl.source.PostprocessReformattingAspect;
|
||||
import com.intellij.testFramework.InspectionsKt;
|
||||
import com.intellij.testFramework.PlatformTestUtil;
|
||||
import com.intellij.testFramework.RunAll;
|
||||
import com.intellij.testFramework.UsefulTestCase;
|
||||
@@ -184,9 +185,11 @@ public final class MadTestingUtil {
|
||||
}
|
||||
|
||||
public static void enableDefaultInspections(@NotNull Project project) {
|
||||
InspectionProfileImpl.INIT_INSPECTIONS = true;
|
||||
InspectionProfileImpl profile = new InspectionProfileImpl("defaultInspections");
|
||||
replaceProfile(project, profile);
|
||||
InspectionsKt.runInInitMode(() -> {
|
||||
replaceProfile(project, profile);
|
||||
return null;
|
||||
});
|
||||
}
|
||||
|
||||
private static void replaceProfile(@NotNull Project project, InspectionProfileImpl profile) {
|
||||
|
||||
Reference in New Issue
Block a user