class Command(): """ """ def __init__(self): """ """ self.go = GoLang() self.npm = NodeJs() self.java = Java() def run_command(self, cmd_name: str, repo: str): """ """ if cmd_name is "spotbugs": return self.java.project_build(repo) elif cmd_name is "gosec": return self.go.gosec(repo) elif cmd_name is "npm_audit": return self.npm.npm_audit(repo)
from config.config import Config from core.sast.java import Java import multiprocessing import datetime import requests import logging import shutil import uuid import time import json import os mrc = MyRemoteCallbacks() config = Config() java = Java() dc = DependencyCheck() go = GoLang() node = NodeJs() repos = mrc.scan_repos() command = Command() const = Constants() gp = Gosecparser() fsbp = Fsbparser() dcp = Dependencycheckparser() np = Npmauditparser() utils = Utils() java_repos = [] go_repos = [] node_repos = []
def __init__(self): self.java = Java() self.utils = Utils() self.config = Config()
def __init__(self): """ """ self.go = GoLang() self.npm = NodeJs() self.java = Java()