mirror of
https://github.com/astral-sh/ruff
synced 2026-01-21 05:20:49 -05:00
refactor: Move #![forbid(unsafe_code)] attributes up
What's forbidden is more important than which clippy lints are ignored and more important directives should come first.
This commit is contained in:
committed by
Charlie Marsh
parent
63b4f60ba4
commit
2125d0bb54
@@ -1,6 +1,7 @@
|
||||
//! This crate implements an internal CLI for developers of Ruff.
|
||||
//!
|
||||
//! Within the ruff repository you can run it with `cargo dev`.
|
||||
#![forbid(unsafe_code)]
|
||||
#![allow(
|
||||
clippy::collapsible_else_if,
|
||||
clippy::collapsible_if,
|
||||
@@ -13,7 +14,6 @@
|
||||
clippy::similar_names,
|
||||
clippy::too_many_lines
|
||||
)]
|
||||
#![forbid(unsafe_code)]
|
||||
|
||||
mod generate_all;
|
||||
mod generate_cli_help;
|
||||
|
||||
Reference in New Issue
Block a user