-
Notifications
You must be signed in to change notification settings - Fork 38
clippy: added clippy support #117
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
base: main
Are you sure you want to change the base?
Conversation
added support for running clippy checks Addresses: eclipse-score/score#2008 Signed-off-by: Dan Calavrezo <195309321+dcalavrezo-qorix@users.noreply.github.com>
|
warnings/errors on the build job? |
Addresses: eclipse-score/score#2008 Signed-off-by: Dan Calavrezo <195309321+dcalavrezo-qorix@users.noreply.github.com>
pawelrutkaq
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have not looked into "old rust api".
| tags = ["manual"], | ||
| tags = [ | ||
| "manual", | ||
| "no-clippy", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why no clippy ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rust_test
| srcs = ["ipc_bridge_gen.rs"], | ||
| visibility = [ | ||
| "//score/mw/com:__subpackages__", | ||
| "//visibility:public", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe the subpackages visibility shall be changed to public in module only ? I guess most of them shall not be public as such for external consumers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point
Changed the visibility after PR review Signed-off-by: Dan Calavrezo <195309321+dcalavrezo-qorix@users.noreply.github.com>
LittleHuba
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please switch you approach to use rules_lint clippy instead.
This is the preferred way of integrating linters with bazel.
https://github.com/aspect-build/rules_lint/blob/79afc5ce25f55e918a93ef66ed81163423cdf632/example/tools/lint/linters.bzl#L6
added support for running clippy checks
Addresses: eclipse-score/score#2008