You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/basics.md
+5-2
Original file line number
Diff line number
Diff line change
@@ -93,8 +93,11 @@ cargo dev ra_setup
93
93
```
94
94
95
95
## lintcheck
96
-
`cargo lintcheck` will build and run clippy on a fixed set of crates and generate a log of the results. You can `git diff` the updated log against its previous version and see what impact your lint made on a small set of crates.
97
-
If you add a new lint, please audit the resulting warnings and make sure there are no false positives and that the suggestions are valid.
96
+
`cargo lintcheck` will build and run clippy on a fixed set of crates and generate a log of the results.
97
+
You can `git diff` the updated log against its previous version and
98
+
see what impact your lint made on a small set of crates.
99
+
If you add a new lint, please audit the resulting warnings and make sure
100
+
there are no false positives and that the suggestions are valid.
Copy file name to clipboardExpand all lines: lintcheck/README.md
+4-2
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,9 @@ is checked.
69
69
is explicitly specified in the options.
70
70
71
71
### Fix mode
72
-
You can run `./lintcheck/target/debug/lintcheck --fix` which will run Clippy with `-Zunstable-options --fix` and print a warning if Clippys suggestions fail to apply (if the resulting code does not build).
72
+
You can run `./lintcheck/target/debug/lintcheck --fix` which will run Clippy with `-Zunstable-options --fix` and
73
+
print a warning if Clippys suggestions fail to apply (if the resulting code does not build).
73
74
This lets us spot bad suggestions or false positives automatically in some cases.
74
75
75
-
Please note that the target dir should be cleaned afterwards since clippy will modify the downloaded sources which can lead to unexpected results when running lintcheck again afterwards.
76
+
Please note that the target dir should be cleaned afterwards since clippy will modify
77
+
the downloaded sources which can lead to unexpected results when running lintcheck again afterwards.
0 commit comments