Open Bug 1935993 Opened 2 months ago Updated 2 months ago

mozlint/clippy: Bring back --fix

Categories

(Developer Infrastructure :: Lint and Formatting, task)

Tracking

(Not tracked)

People

(Reporter: Sylvestre, Unassigned)

Details

Currently:

 ./mach lint -W -v -n --fix -l clippy gfx/wr/peek-poke/
13:22:39.633 clippy (1565840) | Passing the following paths:
/home/sylvestre/dev/mozilla/mozilla-unified.hg/gfx/wr/peek-poke
13:22:39.634 clippy (1565840) | Run clippy with = /home/sylvestre/.mozbuild/srcdirs/mozilla-unified.hg-667bd89df37b/_virtualenvs/lint/bin/python /home/sylvestre/dev/mozilla/mozilla-unified.hg/mach --log-no-times cargo clippy -- --message-format=json
13:22:42.597 clippy (1565840) | Rust linting in mach does not support --fix
13:22:42.832 clippy (1565840) | Finished in 3.20 seconds

it isn't that easy given that it is called with:
./mach cargo clippy

Maybe it could be done here:
https://searchfox.org/mozilla-central/source/config/makefiles/rust.mk#332
but i could not make it work

You need to log in before you can comment on or make changes to this bug.