mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
inherit language for the local inspection from the corresponding global one to prevent them running on unrelated files
This commit is contained in:
+7
-1
@@ -91,6 +91,12 @@ public class GlobalInspectionToolWrapper extends InspectionToolWrapper<GlobalIns
|
||||
return null;
|
||||
}
|
||||
//noinspection TestOnlyProblems
|
||||
return new LocalInspectionToolWrapper(sharedTool);
|
||||
return new LocalInspectionToolWrapper(sharedTool){
|
||||
@Nullable
|
||||
@Override
|
||||
public String getLanguage() {
|
||||
return GlobalInspectionToolWrapper.this.getLanguage(); // inherit "language=" xml tag from the global inspection EP
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user