File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,22 @@ Note that this is still experimental and only supported on the nightly channel:
88
88
cargo clippy --fix -Z unstable-options
89
89
```
90
90
91
+ #### Workspaces
92
+
93
+ All the usual workspace options should work with Clippy. For example the following command
94
+ will run Clippy on the ` example ` crate:
95
+
96
+ ``` terminal
97
+ cargo clippy -p example
98
+ ```
99
+
100
+ As with ` cargo check ` , this includes dependencies that are members of the workspace, like path dependencies.
101
+ If you want to run Clippy ** only** on the given crate, use the ` --no-deps ` option like this:
102
+
103
+ ``` terminal
104
+ cargo clippy -p example -- --no-deps
105
+ ```
106
+
91
107
### Running Clippy from the command line without installing it
92
108
93
109
To have cargo compile your crate with Clippy without Clippy installation
You can’t perform that action at this time.
0 commit comments