Add cargo xtask clippy (#8722)

This PR sets up a `cargo xtask clippy` command for running `cargo
clippy` with our defined set of options.

The intent is to make this easier to manage as we start enabling more
Clippy rules.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-03-02 14:46:02 -05:00 committed by GitHub
parent c19587d4e4
commit c9a509c805
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 111 additions and 7 deletions

View file

@ -2,8 +2,4 @@
set -euxo pipefail
# clippy.toml is not currently supporting specifying allowed lints
# so specify those here, and disable the rest until Zed's workspace
# will have more fixes & suppression for the standard lint set
cargo clippy --release --workspace --all-features --all-targets -- --allow clippy::all --deny clippy::dbg_macro --deny clippy::todo
cargo clippy --package gpui -- --deny warnings
cargo xtask clippy