Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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",
"solidity",
"go"]
try:
handlers["custom"] == custom_handler
except BaseException:
pass