Add doc_markdown clippy linting config to cargo workspace (#10640)
# Objective Partially Addresses #10612 fix: add clippy::doc_markdown linting to cargo workspace Rather than do all the warnings in `tools/ci/src/main.rs` in one-shot, just wanted to have an initial pr adding the first one to get the form correct as some may trigger build errors and require changes to get merged more easily. ## Solution - adding the doc_markdown and removing it from the ci check as it'll now be a build error during normal compilation. --------- Co-authored-by: François <mockersf@gmail.com>
This commit is contained in:
parent
5a4a2882c7
commit
67df504671
@ -31,6 +31,7 @@ members = [
|
|||||||
|
|
||||||
[workspace.lints.clippy]
|
[workspace.lints.clippy]
|
||||||
type_complexity = "allow"
|
type_complexity = "allow"
|
||||||
|
doc_markdown = "warn"
|
||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
workspace = true
|
workspace = true
|
||||||
|
|||||||
@ -17,8 +17,7 @@ bitflags! {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const CLIPPY_FLAGS: [&str; 6] = [
|
const CLIPPY_FLAGS: [&str; 5] = [
|
||||||
"-Wclippy::doc_markdown",
|
|
||||||
"-Wclippy::redundant_else",
|
"-Wclippy::redundant_else",
|
||||||
"-Wclippy::match_same_arms",
|
"-Wclippy::match_same_arms",
|
||||||
"-Wclippy::semicolon_if_nothing_returned",
|
"-Wclippy::semicolon_if_nothing_returned",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user