mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-CR-53106: rename ignoreMissingInterpreter to ignoreInterpreterWarnings
(cherry picked from commit 2614eb240454e2428001f30fddcd2aab46c865cb) GitOrigin-RevId: 33417d77b00b41645c1683c0e876d606bfb5c460
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6dd9be576f
commit
f5d90f53c8
+2
-2
@@ -108,9 +108,9 @@ public abstract class PyInspectionExtension {
|
||||
* Checks whether Python interpreter is required for the python file.
|
||||
*
|
||||
* @param file file being analyzed
|
||||
* @return true if missing Python interpreter should be ignored
|
||||
* @return true if warnings produced by {@link PyInterpreterInspection} should be ignored
|
||||
*/
|
||||
public boolean ignoreMissingInterpreter(@NotNull PyFile file) {
|
||||
public boolean ignoreInterpreterWarnings(@NotNull PyFile file) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -102,7 +102,7 @@ public class PyInterpreterInspection extends PyInspection {
|
||||
}
|
||||
|
||||
private static boolean isFileIgnored(@NotNull PyFile pyFile) {
|
||||
return PyInspectionExtension.EP_NAME.getExtensionList().stream().anyMatch(ep -> ep.ignoreMissingInterpreter(pyFile));
|
||||
return PyInspectionExtension.EP_NAME.getExtensionList().stream().anyMatch(ep -> ep.ignoreInterpreterWarnings(pyFile));
|
||||
}
|
||||
|
||||
public static final class ConfigureInterpreterFix implements LocalQuickFix {
|
||||
|
||||
Reference in New Issue
Block a user