zed/crates
Marshall Bowers 22fe03913c
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
2024-03-05 12:01:17 -05:00
..
activity_indicator Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
ai Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
assets Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
assistant Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
audio Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
auto_update Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
breadcrumbs Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
call Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
channel Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
cli Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
client Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
clock Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
collab Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
collab_ui Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
collections Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
color Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
command_palette Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
command_palette_hooks Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
copilot Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
copilot_ui Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
db Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
diagnostics Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
editor Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
extension Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
extension_api Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
extensions_ui Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
feature_flags Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
feedback Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
file_finder Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
fs Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
fsevent Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
fuzzy Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
git Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
go_to_line Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
gpui Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
gpui_macros Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
install_cli Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
journal Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
language Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
language_selector Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
language_tools Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
languages Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
live_kit_client Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
live_kit_server Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
lsp Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
markdown_preview Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
media Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
menu Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
multi_buffer Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
node_runtime Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
notifications Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
outline Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
picker Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
prettier Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
project Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
project_core Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
project_panel Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
project_symbols Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
quick_action_bar Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
recent_projects Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
refineable Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
release_channel Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
rich_text Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
rope Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
rpc Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
search Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
semantic_index Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
settings Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
snippet Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
sqlez Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
sqlez_macros Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
story Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
storybook Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
sum_tree Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
task Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
tasks_ui Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
telemetry_events Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
terminal Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
terminal_view Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
text Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
theme Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
theme_importer Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
theme_selector Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
time_format Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
ui Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
util Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
vcs_menu Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
vim Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
welcome Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
workspace Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
zed Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00
zed_actions Move Clippy configuration to the workspace level (#8891) 2024-03-05 12:01:17 -05:00