Ignore clippy::struct_excessive_bools (pedantic)
“consider using a state machine or refactoring bools into two-variant enums” https://rust-lang.github.io/rust-clippy/master/index.html#struct_excessive_bools Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
committed by
Charlie Marsh
parent
0bb8b14ae1
commit
3205473612
@@ -42,6 +42,7 @@ use crate::{
|
||||
|
||||
const GLOBAL_SCOPE_INDEX: usize = 0;
|
||||
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct Checker<'a> {
|
||||
// Input data.
|
||||
path: &'a Path,
|
||||
|
||||
@@ -13,6 +13,7 @@ use crate::settings::types::{PatternPrefixPair, PerFileIgnore, PythonVersion};
|
||||
#[derive(Debug, Parser)]
|
||||
#[command(author, about = "Ruff: An extremely fast Python linter.")]
|
||||
#[command(version)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct Cli {
|
||||
#[arg(required = true)]
|
||||
pub files: Vec<PathBuf>,
|
||||
|
||||
@@ -21,6 +21,7 @@ pub struct Options {
|
||||
}
|
||||
|
||||
#[derive(Debug, Hash, Default)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct Settings {
|
||||
pub mypy_init_return: bool,
|
||||
pub suppress_dummy_args: bool,
|
||||
|
||||
Reference in New Issue
Block a user