-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.py
47 lines (38 loc) · 1.17 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
from pathlib import Path
from typing import Dict
import sast.config as sast_config
import yaml
# IMPORTANT: Change some of these parameters may affect the docker-compose and related Dockerfiles.
# Be sure you retrofit your changes there as well.
## General
RESULT_REL_DIR = "out"
TP_LIB_REL_DIR = "testability_patterns"
MEASUREMENT_REL_DIR = "measurements"
ROOT_DIR: Path = Path(__file__).parent
RESULT_DIR: Path = ROOT_DIR / RESULT_REL_DIR
DEFAULT_TP_LIBRARY_ROOT_DIR: Path = ROOT_DIR / TP_LIB_REL_DIR
WORKERS = 5
## Logging
logfile = 'tpframework.log'
rootLoggerName = "tpframework"
loggingLevelFile = 'DEBUG'
loggingLevelConsole = 'INFO'
## SAST
SAST_TOOLS_ENABLED: list[Dict] = [
{
"name": "codeql",
"version": "2.13.1"
}
]
sast_config.ROOT_LOGGER_NAME = rootLoggerName
## Discovery
_ROOT_JOERN_CPG_GEN_DIR: Path = ROOT_DIR / "discovery/joern"
JOERN_CPG_GEN_CONFIG_FILE: Path = _ROOT_JOERN_CPG_GEN_DIR / "cpg-gen-config.yaml"
DEFAULT_DISCOVERY_METHOD = "joern"
DISCOVERY_RULE_MAPPING = {
"joern": ".sc"
}
PATCHED_PREFIX = "__P@TCHED__"
discovery_under_measurement = {
"enforce_tool_version": False
}