mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
do not inspect binary files
This commit is contained in:
+1
-1
@@ -622,7 +622,7 @@ public class GlobalInspectionContextImpl extends GlobalInspectionContextBase imp
|
||||
@Override
|
||||
public void visitFile(PsiFile file) {
|
||||
final VirtualFile virtualFile = file.getVirtualFile();
|
||||
if (virtualFile == null) return;
|
||||
if (virtualFile == null || virtualFile.getFileType().isBinary()) return;
|
||||
for (final Tools tools : profile.getAllEnabledInspectionTools(project)) {
|
||||
if (tools.getTool().getTool() instanceof CleanupLocalInspectionTool) {
|
||||
final InspectionToolWrapper tool = tools.getEnabledTool(file);
|
||||
|
||||
Reference in New Issue
Block a user