mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
23 lines
711 B
Python
23 lines
711 B
Python
import sys
|
|
|
|
generated_output_rst = "flow-model-coverage-{language}.rst"
|
|
generated_output_csv = "flow-model-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 = "flow-model-coverage.rst"
|
|
output_csv_file_name = "flow-model-coverage.csv"
|
|
repo_output_rst = documentation_folder + output_rst_file_name
|
|
repo_output_csv = documentation_folder + output_csv_file_name
|