forked from github/codeql
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.py
More file actions
24 lines (17 loc) · 719 Bytes
/
Copy pathsettings.py
File metadata and controls
24 lines (17 loc) · 719 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import sys
generated_output_rst = "framework-coverage-{language}.rst"
generated_output_csv = "framework-coverage-{language}.csv"
# The CI job checks out the codebase to a subfolder
data_prefix = ""
index = 1
if sys.argv[0].endswith("generate-report.py"):
index = 3
if len(sys.argv) > index:
data_prefix = sys.argv[index] + "/"
documentation_folder_no_prefix = "{language}/documentation/library-coverage/"
documentation_folder = data_prefix + documentation_folder_no_prefix
output_rst_file_name = "coverage.rst"
output_csv_file_name = "coverage.csv"
repo_output_rst = documentation_folder + output_rst_file_name
repo_output_csv = documentation_folder + output_csv_file_name
languages = ['java', 'csharp']