Skip to content

Conversation

@dcalavrezo-qorix
Copy link
Contributor

Decision record document for clippy

Decision record document for clippy

Signed-off-by: Dan Calavrezo <195309321+dcalavrezo-qorix@users.noreply.github.com>
@github-actions
Copy link

⚠️ Docs-as-Code version mismatch detected
Please check the CI build logs for details and align the documentation version with the Bazel dependency.

@github-actions
Copy link

The created documentation from the pull request is available at: docu-html

Comment on lines +58 to +66
- 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.
Copy link
Contributor

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.
Copy link
Contributor

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.

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

Successfully merging this pull request may close these issues.

5 participants