Skip to content

Commit 9a4155c

Browse files
committed
Fix messed up rebase
1 parent a9fad0a commit 9a4155c

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

src/code_checker.bzl

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,12 @@ def _run_code_checker(
7474
headers = depset([src], transitive = [compilation_context.headers])
7575
inputs = depset([compile_commands_json, src], transitive = [headers])
7676

77-
outputs = [clang_tidy_plist, clangsa_plist, codechecker_log]
77+
outputs = [
78+
clang_tidy_plist,
79+
clangsa_plist,
80+
codechecker_log,
81+
codechecker_metadata,
82+
]
7883

7984
# Create CodeChecker wrapper script
8085
wrapper = ctx.actions.declare_file(ctx.attr.name + "/code_checker.sh")
@@ -131,7 +136,6 @@ def check_valid_file_type(src):
131136
return False
132137

133138
def _rule_sources(ctx):
134-
135139
srcs = []
136140
if hasattr(ctx.rule.attr, "srcs"):
137141
for src in ctx.rule.attr.srcs:
@@ -346,6 +350,7 @@ def _per_file_impl(ctx):
346350
sources_and_headers,
347351
)
348352
all_files += outputs
353+
349354
# merge metadata
350355
metadata = [file for file in all_files if file.path.endswith("metadata.json")]
351356
metadata_json = ctx.actions.declare_file(ctx.attr.name + "/data/metadata.json")
@@ -355,7 +360,7 @@ def _per_file_impl(ctx):
355360
executable = ctx.executable._metadata_merge_script,
356361
arguments = [metadata_json.path] + [file.path for file in metadata],
357362
mnemonic = "Metadata",
358-
progress_message = "Merging metadata.json"
363+
progress_message = "Merging metadata.json",
359364
)
360365
all_files.append(metadata_json)
361366
ctx.actions.write(
@@ -399,7 +404,7 @@ per_file_test = rule(
399404
"_metadata_merge_script": attr.label(
400405
default = ":metadata_merge",
401406
executable = True,
402-
cfg = 'exec',
407+
cfg = "exec",
403408
),
404409
"_python_runtime": attr.label(
405410
default = "@default_python_tools//:py3_runtime",

0 commit comments

Comments
 (0)