bazel_clang_tidy icon indicating copy to clipboard operation
bazel_clang_tidy copied to clipboard

not show error

Open boluo250 opened this issue 2 years ago • 3 comments

` root@324072f8380a:~/test/bazel_clang_tidy# bazel build //example --aspects clang_tidy/clang_tidy.bzl%clang_tidy_aspect --output_groups=report

Starting local Bazel server and connecting to it... INFO: Analyzed target //example:example (19 packages loaded, 89 targets configured). INFO: Found 1 target... INFO: From Run clang-tidy on example/app.cpp: 3005 warnings generated. Suppressed 3005 warnings (3005 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. Aspect //clang_tidy:clang_tidy.bzl%clang_tidy_aspect of //example:example up-to-date: bazel-bin/example/bazel_clang_tidy_example/app.cpp.example.clang-tidy.yaml INFO: Elapsed time: 9.878s, Critical Path: 1.11s INFO: 5 processes: 4 internal, 1 local. INFO: Build completed successfully, 5 total actions `

as blow,not show error

boluo250 avatar May 09 '22 03:05 boluo250

@erenon

yangjiwei-source avatar May 11 '22 15:05 yangjiwei-source

bazel build //example:example --aspects clang_tidy/clang_tidy.bzl%clang_tidy_aspect --output_groups=report this is not error but this can get error bazel build //example:lib --aspects clang_tidy/clang_tidy.bzl%clang_tidy_aspect --output_groups=report

yangjiwei-source avatar May 19 '22 07:05 yangjiwei-source

@yangjiwei-source thanks, seems that the doc should be updated:

# ... to run all targets
# --keep_going to continue after warning/error is reported
bazel build //example/... --aspects clang_tidy/clang_tidy.bzl%clang_tidy_aspect --output_groups=report --keep_going

@erenon FYI

MiaoDX avatar Nov 08 '23 07:11 MiaoDX