-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGobalFilePath.py
More file actions
21 lines (16 loc) · 896 Bytes
/
GobalFilePath.py
File metadata and controls
21 lines (16 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import os
KEYWORD = ['bug', 'error', 'fix', 'patch']
GIT_REPO_PATH = 'GitRepo/'
OUTPUT_PATH = 'OUTPUT/'
TOOL_PATH = 'Tools/'
PMD_PATH = TOOL_PATH + 'PMD-6.0.0/'
GIT_PROJECT_LIST = [projects.strip() for projects in open(GIT_REPO_PATH + 'GitRepoList.txt', 'r')]
CATEGORY_LIST = [category.split(',')[1].strip() for category in open('./Tools/PMD_Rules(5.3.1).csv')]
if not os.path.exists(GIT_REPO_PATH): # create GIT_REPO path
os.makedirs(GIT_REPO_PATH)
if not os.path.exists(OUTPUT_PATH): # create OUTPUT path
os.makedirs(OUTPUT_PATH)
# if not os.path.exists(RELATED_ALERTS_PATH + 'BUGGY/'): # RELATED_ALERT of BUGGY revision path
# os.makedirs(RELATED_ALERTS_PATH + 'BUGGY/')
# if not os.path.exists(RELATED_ALERTS_PATH + 'CLEAN/'): # RELATED_ALERT of CLEAN revision path
# os.makedirs(RELATED_ALERTS_PATH + 'CLEAN/')