mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Remove commented code
This commit is contained in:
@@ -127,57 +127,3 @@ def compare_folders(folder1, folder2, output_file):
|
||||
|
||||
comment_pr(sys.argv[1], sys.argv[2], sys.argv[3],
|
||||
sys.argv[4], sys.argv[5], sys.argv[6])
|
||||
|
||||
|
||||
# def compare_generated_and_repo_files():
|
||||
# languages = ['java']
|
||||
|
||||
# all_ok = True
|
||||
|
||||
# for lang in languages:
|
||||
# repo_output_rst = settings.repo_output_rst.format(language=lang)
|
||||
# repo_output_csv = settings.repo_output_csv.format(language=lang)
|
||||
|
||||
# generated_output_rst = settings.generated_output_rst.format(
|
||||
# language=lang)
|
||||
# generated_output_csv = settings.generated_output_csv.format(
|
||||
# language=lang)
|
||||
|
||||
# exists = check_file_exists(repo_output_rst)
|
||||
# if not exists:
|
||||
# sys.exit(1)
|
||||
|
||||
# exists = check_file_exists(repo_output_csv)
|
||||
# if not exists:
|
||||
# sys.exit(1)
|
||||
|
||||
# exists = check_file_exists(generated_output_rst)
|
||||
# if not exists:
|
||||
# sys.exit(1)
|
||||
|
||||
# exists = check_file_exists(generated_output_csv)
|
||||
# if not exists:
|
||||
# sys.exit(1)
|
||||
|
||||
# docs_folder = settings.documentation_folder_no_prefix.format(
|
||||
# language=lang)
|
||||
|
||||
# rst_ok = compare_files(repo_output_rst, generated_output_rst)
|
||||
# if not rst_ok:
|
||||
# print("The generated file doesn't match the one in the codebase. Please check and fix file '" +
|
||||
# docs_folder + settings.output_rst_file_name + "'.", file=sys.stderr)
|
||||
# csv_ok = compare_files(repo_output_csv, generated_output_csv)
|
||||
# if not csv_ok:
|
||||
# print("The generated file doesn't match the one in the codebase. Please check and fix file '" +
|
||||
# docs_folder + settings.output_csv_file_name + "'.", file=sys.stderr)
|
||||
|
||||
# if not rst_ok or not csv_ok:
|
||||
# print("The generated CSV coverage report files for '" + lang + "' don't match the ones in the codebase. Please update the files in '" +
|
||||
# docs_folder + "'. The new files can be downloaded from the artifacts of this job.", file=sys.stderr)
|
||||
# all_ok = False
|
||||
# else:
|
||||
# print("The generated files for '" + lang +
|
||||
# "' match the ones in the codebase.")
|
||||
|
||||
# if not all_ok:
|
||||
# sys.exit(1)
|
||||
|
||||
Reference in New Issue
Block a user