IDEA-CR-53106: rename ignoreMissingInterpreter to ignoreInterpreterWarnings

(cherry picked from commit 2614eb240454e2428001f30fddcd2aab46c865cb)

GitOrigin-RevId: 33417d77b00b41645c1683c0e876d606bfb5c460
This commit is contained in:
Vladimir Koshelev
2019-10-01 17:02:43 +00:00
committed by intellij-monorepo-bot
parent 6dd9be576f
commit f5d90f53c8
2 changed files with 3 additions and 3 deletions
@@ -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 {