in bot/code_review_bot/config.py [0:0]
def __init__(self):
self.config = {
"cpp_extensions": frozenset([".c", ".cpp", ".cc", ".cxx", ".m", ".mm"]),
"cpp_header_extensions": frozenset([".h", ".hh", ".hpp", ".hxx"]),
"java_extensions": frozenset([".java"]),
"idl_extensions": frozenset([".idl"]),
"js_extensions": frozenset([".js", ".jsm"]),
}
self.app_channel = None
self.taskcluster = None
self.try_task_id = None
self.try_group_id = None
self.autoland_group_id = None
self.mozilla_central_group_id = None
self.phabricator_build_target = None
self.repositories = []
self.decision_env_prefixes = []
# Max number of issues published to the backend at a time during the ingestion of a revision
self.bulk_issue_chunks = 100
# Cache to store file-by-file from HGMO Rest API
self.hgmo_cache = tempfile.mkdtemp(suffix="hgmo")
# Cache to store whole repositories
self.mercurial_cache = None
# SSH Key used to push on try
self.ssh_key = None
# List of users that should trigger a new analysis
# Indexed by their Phabricator ID
self.user_blacklist = {}
# Always cleanup at the end of the execution
atexit.register(self.cleanup)
# caching the versions of the app
self.version = pkg_resources.require("code-review-bot")[0].version