Closed Bug 2031447 Opened 3 months ago Closed 3 months ago

Support configurable clippy warn/deny rules in clippy.yml

Categories

(Developer Infrastructure :: Lint and Formatting, task)

Tracking

(firefox152 fixed)

RESOLVED FIXED
152 Branch
Tracking Status
firefox152 --- fixed

People

(Reporter: Sylvestre, Assigned: Sylvestre)

References

(Blocks 1 open bug)

Details

Attachments

(5 files)

No description provided.

Append $(cargo_rustc_extra_flags) at the end of all force-cargo-*-% pattern
rules so that tools like clippy can inject driver flags (e.g. -W/-D) via an
environment variable.

Read warn and deny lists from clippy.yml and pass them as -W/-D flags
to the clippy driver. For gkrust crates, flags are passed via the
cargo_rustc_extra_flags env var. For non-gkrust crates, they are
appended directly to the cargo clippy command.

Attachment #9569472 - Attachment description: Bug 2031447 - Support passing extra rustc flags to cargo subcommands via cargo_rustc_extra_flags r?#linter-reviewers → Bug 2031447 - Support passing extra rustc flags to cargo subcommands via extra_rustflags r?#linter-reviewers
Pushed by sledru@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/3b86d4531536 https://hg.mozilla.org/integration/autoland/rev/0e1acbe483cc Support passing extra rustc flags to cargo subcommands via extra_rustflags r=firefox-build-system-reviewers,sergesanspaille,ahochheiden https://github.com/mozilla-firefox/firefox/commit/299b4f9a879d https://hg.mozilla.org/integration/autoland/rev/2297bf4cf65b Support configurable clippy warn/deny rules in clippy.yml r=linter-reviewers,ahal https://github.com/mozilla-firefox/firefox/commit/6e5e84b20201 https://hg.mozilla.org/integration/autoland/rev/4d2650e61290 Enable clippy::needless_return in clippy.yml r=linter-reviewers,ahal https://github.com/mozilla-firefox/firefox/commit/4cd78644928d https://hg.mozilla.org/integration/autoland/rev/85e804efdc14 Add new directories to clippy r=linter-reviewers,ahal https://github.com/mozilla-firefox/firefox/commit/76babe304c22 https://hg.mozilla.org/integration/autoland/rev/e11c7c684f82 Document how to enable additional clippy rules in clippy.yml r=linter-reviewers,ahal

not all patches landed

Status: RESOLVED → REOPENED
Resolution: FIXED → ---

sorry, wrong patch, it is fixed

Status: REOPENED → RESOLVED
Closed: 3 months ago3 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: