Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
compilepos = -1
if compilepos != -1:
compileFile = args[compilepos + 1]
args.remove("--compile")
args.remove(compileFile)
ignorePatterns = []
if ignoreFile is not None:
print("IGNORING PATTERNS DEFINED IN", ignoreFile)
with open(ignoreFile, 'r') as ignoref:
for l in ignoref:
ignorePatterns.append(l[:-1])
handlers = {"python": python_handler,
"c": c_handler,
"c++": cpp_handler,
"cpp": cpp_handler,
"java": java_handler,
"swift": swift_handler,
"rust": rust_handler,
"go": go_handler,
"solidity": solidity_handler,
"vyper": vyper_handler}
cLikeLanguages = [
"c",
"java",
"swift",
"cpp",
"c++",
"rust",