Skip to content

Commit 933708b

Browse files
committed
Warn on clippy::doc_markdown for real
...now that I finally know how to configure this. I'm also trying to differentiate between "this is such an obvious mechanical change you should do it right now" and "this seems off but if you commit it and come back later that's probably fine."
1 parent eef1176 commit 933708b

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

clippy.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
doc-valid-idents = ["..", "MessagePack"]

src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
clippy::from_over_into,
2424
clippy::needless_raw_string_hashes,
2525
clippy::semicolon_if_nothing_returned,
26-
clippy::similar_names,
2726
)]
2827
#![warn(
2928
// Print macros can panic, and should only be for temporary debugging.
@@ -32,6 +31,9 @@
3231
// The following macros represent incomplete implementation work.
3332
clippy::todo,
3433
clippy::unimplemented,
34+
// Style-type things that might not need an _immediate_ fix.
35+
clippy::doc_markdown,
36+
clippy::similar_names,
3537
)]
3638

3739
use std::fmt;

src/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
clippy::from_over_into,
1414
clippy::needless_raw_string_hashes,
1515
clippy::semicolon_if_nothing_returned,
16-
clippy::similar_names,
1716
)]
1817
#![warn(
1918
// Print macros can panic, and should only be for temporary debugging.
@@ -22,6 +21,9 @@
2221
// The following macros represent incomplete implementation work.
2322
clippy::todo,
2423
clippy::unimplemented,
24+
// Style-type things that might not need an _immediate_ fix.
25+
clippy::doc_markdown,
26+
clippy::similar_names,
2527
)]
2628

2729
use std::borrow::Cow;

0 commit comments

Comments
 (0)