# Move Clippy configuration to the workspace level \(\#8891\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/22fe03913ca11259b12eb250119dfb091bd70800)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 22fe03913ca11259b12eb250119dfb091bd70800

Requested commit: 22fe03913ca11259b12eb250119dfb091bd70800

Commit: 22fe03913ca11259b12eb250119dfb091bd70800

Tree: 0eb17f440785b8e31a9570fce29235a635ec162e

Author: Marshall Bowers

Committer: GitHub

## Message

````
Move Clippy configuration to the workspace level (#8891)

This PR moves the Clippy configuration up to the workspace level.

We're using the [`lints`
table](https://doc.rust-lang.org/cargo/reference/workspaces.html#the-lints-table)
to configure the Clippy ruleset in the workspace's `Cargo.toml`.

Each crate in the workspace now has the following in their own
`Cargo.toml` to inherit the lints from the workspace:

```toml
[lints]
workspace = true
```

This allows for configuring rust-analyzer to show Clippy lints in the
editor by using the following configuration in your Zed `settings.json`:

```json
{
  "lsp": {
    "rust-analyzer": {
      "initialization_options": {
        "check": {
          "command": "clippy"
        }
      }
    }
  }
```

Release Notes:

- N/A
````

## Parents

- [52f750b2164b6c7b94da82f28ce79b1cb647b4cd](https://git.cafe/gitcafe/zed/commit/52f750b2164b6c7b94da82f28ce79b1cb647b4cd?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/22fe03913ca11259b12eb250119dfb091bd70800?format=markdown)
