From 1cbff8cbc5111d1ae4dfabee06f536a70955fa82 Mon Sep 17 00:00:00 2001 From: "Anna.Kozlova" Date: Mon, 3 Dec 2018 09:48:05 +0100 Subject: [PATCH] inspection integration tests: option to run one inspection --- .../intellij/codeInspection/ex/InspectionProfileImpl.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platform/analysis-impl/src/com/intellij/codeInspection/ex/InspectionProfileImpl.java b/platform/analysis-impl/src/com/intellij/codeInspection/ex/InspectionProfileImpl.java index fefc6147a9ec..929d36a644d9 100644 --- a/platform/analysis-impl/src/com/intellij/codeInspection/ex/InspectionProfileImpl.java +++ b/platform/analysis-impl/src/com/intellij/codeInspection/ex/InspectionProfileImpl.java @@ -861,4 +861,10 @@ public class InspectionProfileImpl extends NewInspectionProfile { enableTool(entry.getShortName(), project); } } + + public void disableAllTools(Project project) { + for (InspectionToolWrapper entry : getInspectionTools(null)) { + setToolEnabled(entry.getShortName(), false, project); + } + } }