ignore more false positive clippy lints
This commit is contained in:
parent
a3e9233dc0
commit
69e0938b01
@ -250,7 +250,7 @@ impl ArgumentResult {
|
|||||||
let len = self.len();
|
let len = self.len();
|
||||||
if len > max {
|
if len > max {
|
||||||
let mut err = String::with_capacity(50);
|
let mut err = String::with_capacity(50);
|
||||||
#[allow(clippy::format_push_string)]
|
#[allow(unknown_lints, clippy::format_push_string)]
|
||||||
err.push_str(&format!("Only {max} argument", max = max));
|
err.push_str(&format!("Only {max} argument", max = max));
|
||||||
if max != 1 {
|
if max != 1 {
|
||||||
err.push('s');
|
err.push('s');
|
||||||
|
@ -58,6 +58,11 @@ grass input.scss
|
|||||||
clippy::cast_precision_loss,
|
clippy::cast_precision_loss,
|
||||||
clippy::float_cmp,
|
clippy::float_cmp,
|
||||||
|
|
||||||
|
// todo: unignore once we bump MSRV
|
||||||
|
clippy::format_push_string,
|
||||||
|
clippy::unnecessary_unwrap,
|
||||||
|
clippy::needless_late_init,
|
||||||
|
|
||||||
unknown_lints,
|
unknown_lints,
|
||||||
)]
|
)]
|
||||||
|
|
||||||
|
@ -1196,10 +1196,9 @@ pub(crate) trait StylesheetParser<'a>: BaseParser<'a> + Sized {
|
|||||||
|
|
||||||
let right = self.supports_condition_in_parens()?;
|
let right = self.supports_condition_in_parens()?;
|
||||||
operation = Some(AstSupportsCondition::Operation {
|
operation = Some(AstSupportsCondition::Operation {
|
||||||
left: Box::new(
|
left: Box::new(operation.unwrap_or_else(|| {
|
||||||
operation
|
AstSupportsCondition::Interpolation(expression.clone().node)
|
||||||
.unwrap_or(AstSupportsCondition::Interpolation(expression.clone().node)),
|
})),
|
||||||
),
|
|
||||||
operator: operator.clone(),
|
operator: operator.clone(),
|
||||||
right: Box::new(right),
|
right: Box::new(right),
|
||||||
});
|
});
|
||||||
|
@ -36,46 +36,31 @@ grass input.scss
|
|||||||
#![deny(missing_debug_implementations)]
|
#![deny(missing_debug_implementations)]
|
||||||
#![allow(
|
#![allow(
|
||||||
clippy::use_self,
|
clippy::use_self,
|
||||||
clippy::missing_docs_in_private_items,
|
|
||||||
clippy::unreachable,
|
|
||||||
clippy::module_name_repetitions,
|
|
||||||
// filter isn't fallible
|
// filter isn't fallible
|
||||||
clippy::manual_filter_map,
|
clippy::manual_filter_map,
|
||||||
clippy::new_ret_no_self,
|
|
||||||
renamed_and_removed_lints,
|
renamed_and_removed_lints,
|
||||||
clippy::unknown_clippy_lints,
|
clippy::unknown_clippy_lints,
|
||||||
clippy::single_match,
|
clippy::single_match,
|
||||||
clippy::unimplemented,
|
clippy::new_without_default,
|
||||||
clippy::option_if_let_else,
|
|
||||||
clippy::branches_sharing_code,
|
|
||||||
clippy::derive_partial_eq_without_eq,
|
|
||||||
|
|
||||||
// temporarily allowed while under heavy development.
|
|
||||||
// eventually these allows should be refactored away
|
|
||||||
// to no longer be necessary
|
|
||||||
clippy::too_many_lines,
|
|
||||||
clippy::cast_possible_truncation,
|
|
||||||
clippy::single_match_else,
|
clippy::single_match_else,
|
||||||
clippy::redundant_pub_crate,
|
|
||||||
// the api is changing too often to allot this
|
|
||||||
clippy::missing_errors_doc,
|
|
||||||
clippy::missing_const_for_fn,
|
|
||||||
clippy::multiple_crate_versions,
|
clippy::multiple_crate_versions,
|
||||||
|
|
||||||
clippy::wrong_self_convention,
|
clippy::wrong_self_convention,
|
||||||
clippy::items_after_statements,
|
clippy::comparison_chain,
|
||||||
// this is only available on nightly
|
|
||||||
|
// these features are only available on nightly
|
||||||
clippy::unnested_or_patterns,
|
clippy::unnested_or_patterns,
|
||||||
clippy::uninlined_format_args,
|
clippy::uninlined_format_args,
|
||||||
|
|
||||||
// todo:
|
// todo: these should be enabled
|
||||||
clippy::cast_sign_loss,
|
clippy::cast_sign_loss,
|
||||||
clippy::cast_lossless,
|
clippy::cast_lossless,
|
||||||
clippy::cast_precision_loss,
|
clippy::cast_precision_loss,
|
||||||
clippy::float_cmp,
|
clippy::float_cmp,
|
||||||
clippy::wildcard_imports,
|
|
||||||
clippy::comparison_chain,
|
// todo: unignore once we bump MSRV
|
||||||
clippy::bool_to_int_with_if,
|
clippy::format_push_string,
|
||||||
|
clippy::unnecessary_unwrap,
|
||||||
|
clippy::needless_late_init,
|
||||||
|
|
||||||
unknown_lints,
|
unknown_lints,
|
||||||
)]
|
)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user