Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not show error #21

Open
boluo250 opened this issue May 9, 2022 · 3 comments
Open

not show error #21

boluo250 opened this issue May 9, 2022 · 3 comments

Comments

@boluo250
Copy link

boluo250 commented May 9, 2022

`
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

@yangjiwei-source
Copy link

@erenon

@yangjiwei-source
Copy link

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

@MiaoDX
Copy link

MiaoDX commented Nov 8, 2023

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants