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
@@ -2,6 +2,7 @@
|
||||
//! to automatically update the `ruff --help` output in the `README.md`.
|
||||
//!
|
||||
//! For the actual Ruff library, see [`ruff`].
|
||||
#![forbid(unsafe_code)]
|
||||
#![allow(clippy::must_use_candidate, dead_code)]
|
||||
|
||||
mod cli;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
#![forbid(unsafe_code)]
|
||||
#![allow(
|
||||
clippy::match_same_arms,
|
||||
clippy::missing_errors_doc,
|
||||
clippy::module_name_repetitions,
|
||||
clippy::too_many_lines
|
||||
)]
|
||||
#![forbid(unsafe_code)]
|
||||
|
||||
use std::io::{self};
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
Reference in New Issue
Block a user