Open boluo250 opened 2 years ago
@erenon
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 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
` 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