Skip to content

Commit

Permalink
Add allow_attribute lints
Browse files Browse the repository at this point in the history
  • Loading branch information
PoignardAzur committed Oct 16, 2024
1 parent b0ba328 commit c54246b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions content/wiki/canonical_lints.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ All Linebender projects should include the following set of lints in their `Carg
# This one may vary depending on the project.
rust.unsafe_code = "forbid"

# These two should be added to projects with an MSRV of 1.81 or higher
# Note that allow_attributes only warns on outer `#[allow(...)]` attributes.
clippy.allow_attributes = "warn"
# Combined with allow_attributes, this is expected to trigger on module-wide or crate-wide `#![allow(...)]` attributes.
clippy.allow_attributes_without_reason = "warn"

# LINEBENDER LINT SET
# See https://linebender.org/wiki/canonical-lints/
rust.keyword_idents_2024 = "forbid"
Expand Down

0 comments on commit c54246b

Please sign in to comment.