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:
Alex Okafor 2023-11-20 20:17:11 -05:00 committed by GitHub
parent 5a4a2882c7
commit 67df504671
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -31,6 +31,7 @@ members = [
[workspace.lints.clippy]
type_complexity = "allow"
doc_markdown = "warn"
[lints]
workspace = true

View file

@ -17,8 +17,7 @@ bitflags! {
}
}
const CLIPPY_FLAGS: [&str; 6] = [
"-Wclippy::doc_markdown",
const CLIPPY_FLAGS: [&str; 5] = [
"-Wclippy::redundant_else",
"-Wclippy::match_same_arms",
"-Wclippy::semicolon_if_nothing_returned",