Move Clippy configuration to config.toml (#2541)

This commit is contained in:
Charlie Marsh
2023-02-03 09:26:36 -05:00
committed by GitHub
parent 924e264156
commit b5ac93d2ee
10 changed files with 29 additions and 71 deletions

View File

@@ -1,3 +1,5 @@
#![allow(dead_code)]
use std::path::PathBuf;
use clap::{command, Parser};

View File

@@ -2,9 +2,6 @@
//! to automatically update the `ruff help` output in the `README.md`.
//!
//! For the actual Ruff library, see [`ruff`].
#![forbid(unsafe_code)]
#![warn(clippy::pedantic)]
#![allow(clippy::must_use_candidate, dead_code)]
mod args;

View File

@@ -1,12 +1,3 @@
#![forbid(unsafe_code)]
#![warn(clippy::pedantic)]
#![allow(
clippy::match_same_arms,
clippy::missing_errors_doc,
clippy::module_name_repetitions,
clippy::too_many_lines
)]
use std::io::{self};
use std::path::PathBuf;
use std::process::ExitCode;