Package org.sonar.python
Class TestPythonVisitorRunner
java.lang.Object
org.sonar.python.TestPythonVisitorRunner
-
Method Summary
Modifier and TypeMethodDescriptionstatic PythonVisitorContextcreateContext(File file) static PythonVisitorContextcreateContext(File file, File workingDirectory) static PythonVisitorContextcreateContext(File file, File workingDirectory, String packageName, ProjectLevelSymbolTable projectLevelSymbolTable, CacheContext cacheContext) static PythonVisitorContextcreateNotebookContext(File file, Map<Integer, IPythonLocation> locations, String content, String packageName, ProjectLevelSymbolTable projectLevelSymbolTable, CacheContext cacheContext) static ProjectLevelSymbolTableglobalSymbols(List<File> files, File baseDir) static PythonVisitorContextscanFile(File file, PythonCheck... visitors) static PythonVisitorContextscanNotebookFile(File file, Map<Integer, IPythonLocation> locations, String content, PythonCheck... visitors)
-
Method Details
-
scanFile
-
scanNotebookFile
public static PythonVisitorContext scanNotebookFile(File file, Map<Integer, IPythonLocation> locations, String content, PythonCheck... visitors) -
createContext
-
createContext
-
createContext
public static PythonVisitorContext createContext(File file, @Nullable File workingDirectory, String packageName, ProjectLevelSymbolTable projectLevelSymbolTable, CacheContext cacheContext) -
createNotebookContext
public static PythonVisitorContext createNotebookContext(File file, Map<Integer, IPythonLocation> locations, String content, String packageName, ProjectLevelSymbolTable projectLevelSymbolTable, CacheContext cacheContext) -
globalSymbols
-