-
Notifications
You must be signed in to change notification settings - Fork 76
clippy: added decision record on how to integrate clippy #2466
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
Decision record document for clippy Signed-off-by: Dan Calavrezo <195309321+dcalavrezo-qorix@users.noreply.github.com>
|
|
|
The created documentation from the pull request is available at: docu-html |
| - Use the shared aspect from `@score_rust_policies//clippy:linters.bzl` | ||
| (repo-local aspects remain an option if needed). | ||
| - Reference the centralized Clippy configuration from the policies repo: | ||
| `@score_rust_policies//clippy/strict:clippy.toml`. | ||
| - Enable the aspect in `.bazelrc` via `build --aspects=...%clippy` and request | ||
| output groups `rules_lint_human` (and optionally `rules_lint_machine`). | ||
| - Skip linting for specific targets using the `no-lint` tag. | ||
| - For CI, add `--@aspect_rules_lint//lint:fail_on_violation=true` to fail on findings. | ||
| - Use `aspect_rules_lint` >= `2.0.0-rc0` to support `fail_on_violation` with 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.
This section might benefit from an example .bazelrc config with the relevant lines.
|
|
||
| ## 2. Decision | ||
|
|
||
| We adopt rules_lint for Clippy integration in S-CORE modules. |
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.
Note, no blocker for merging:
https://github.com/eclipse-score/score_rust_policies/blob/main/README.md should be updated ASAP, so that there is no confusion.
Decision record document for clippy