mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Moved Cython-specific inspection checks to CythonInspectionExtension
This commit is contained in:
@@ -2,7 +2,13 @@ package com.jetbrains.python.inspections;
|
||||
|
||||
import com.intellij.openapi.extensions.ExtensionPointName;
|
||||
import com.intellij.psi.PsiElement;
|
||||
import com.intellij.psi.PsiReference;
|
||||
import com.jetbrains.python.psi.PyDocStringOwner;
|
||||
import com.jetbrains.python.psi.PyElement;
|
||||
import com.jetbrains.python.psi.PyFunction;
|
||||
import com.jetbrains.python.psi.PyQualifiedExpression;
|
||||
import com.jetbrains.python.psi.types.PyType;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -23,4 +29,20 @@ public abstract class PyInspectionExtension {
|
||||
public List<String> getFunctionParametersFromUsage(PsiElement elt) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean ignoreMethodParameters(@NotNull PyFunction function) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean ignorePackageNameInRequirements(@NotNull PyQualifiedExpression importedExpression) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean ignoreUnresolvedReference(@NotNull PyElement node, @NotNull PsiReference reference) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean ignoreUnresolvedMember(@NotNull PyType type, @NotNull String name) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user