mirror of
https://github.com/bevyengine/bevy
synced 2024-11-21 20:23:28 +00:00
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
2 changed files with 2 additions and 2 deletions
|
@ -31,6 +31,7 @@ members = [
|
|||
|
||||
[workspace.lints.clippy]
|
||||
type_complexity = "allow"
|
||||
doc_markdown = "warn"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue