mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 06:11:43 +00:00
Use #[expect(lint)]
over #[allow(lint)]
where possible (#17822)
This commit is contained in:
parent
8535af8516
commit
fa628018b2
148 changed files with 221 additions and 268 deletions
|
@ -1150,14 +1150,14 @@ impl Flake8BanditOptions {
|
|||
extend_markup_names: self
|
||||
.extend_markup_names
|
||||
.or_else(|| {
|
||||
#[allow(deprecated)]
|
||||
#[expect(deprecated)]
|
||||
ruff_options.and_then(|options| options.extend_markup_names.clone())
|
||||
})
|
||||
.unwrap_or_default(),
|
||||
allowed_markup_calls: self
|
||||
.allowed_markup_calls
|
||||
.or_else(|| {
|
||||
#[allow(deprecated)]
|
||||
#[expect(deprecated)]
|
||||
ruff_options.and_then(|options| options.allowed_markup_calls.clone())
|
||||
})
|
||||
.unwrap_or_default(),
|
||||
|
@ -1308,7 +1308,7 @@ pub struct Flake8BuiltinsOptions {
|
|||
|
||||
impl Flake8BuiltinsOptions {
|
||||
pub fn into_settings(self) -> ruff_linter::rules::flake8_builtins::settings::Settings {
|
||||
#[allow(deprecated)]
|
||||
#[expect(deprecated)]
|
||||
ruff_linter::rules::flake8_builtins::settings::Settings {
|
||||
ignorelist: self
|
||||
.ignorelist
|
||||
|
@ -3951,7 +3951,7 @@ impl From<LintOptionsWire> for LintOptions {
|
|||
} = value;
|
||||
|
||||
LintOptions {
|
||||
#[allow(deprecated)]
|
||||
#[expect(deprecated)]
|
||||
common: LintCommonOptions {
|
||||
allowed_confusables,
|
||||
dummy_variable_rgx,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue