@@ -41,7 +41,7 @@ def _run_code_checker(
4141 ctx .actions .run (
4242 inputs = inputs ,
4343 outputs = outputs ,
44- executable = ctx .outputs .code_checker_script ,
44+ executable = ctx .outputs .per_file_script ,
4545 arguments = [
4646 data_dir ,
4747 src .path ,
@@ -249,8 +249,8 @@ def _create_wrapper_script(ctx, options, compile_commands_json):
249249 for item in options :
250250 options_str += item + " "
251251 ctx .actions .expand_template (
252- template = ctx .file ._code_checker_script_template ,
253- output = ctx .outputs .code_checker_script ,
252+ template = ctx .file ._per_file_script_template ,
253+ output = ctx .outputs .per_file_script ,
254254 is_executable = True ,
255255 substitutions = {
256256 "{PythonPath}" : ctx .attr ._python_runtime [PyRuntimeInfo ].interpreter_path ,
@@ -330,8 +330,8 @@ per_file_test = rule(
330330 ],
331331 doc = "List of compilable targets which should be checked." ,
332332 ),
333- "_code_checker_script_template " : attr .label (
334- default = ":code_checker_script .py" ,
333+ "_per_file_script_template " : attr .label (
334+ default = ":per_file_script .py" ,
335335 allow_single_file = True ,
336336 ),
337337 "_python_runtime" : attr .label (
@@ -340,7 +340,7 @@ per_file_test = rule(
340340 },
341341 outputs = {
342342 "test_script" : "%{name}/test_script.sh" ,
343- "code_checker_script " : "%{name}/code_checker_script .py" ,
343+ "per_file_script " : "%{name}/per_file_script .py" ,
344344 },
345345 test = True ,
346346)
0 commit comments