chore: enforce clippy::allow_attributes for functions-* crates #18986
+19
−12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
clippy::allow_attributes#18881.Rationale for this change
This is helpful to identify when the lint is no longer needed across
functions-*crates.What changes are included in this PR?
Added
#![deny(clippy::allow_attributes)]to allfunctions-*crates. Also, the following lints are removed:clippy::upper_case_acronymsis removed fordatafusion/datafusion/functions-aggregate/src/regr.rs
Lines 88 to 129 in 487de9d
avoid-breaking-exported-apiistrueso lint is suppressed. Ref. Settingavoid-breaking-exported-apitofalseraises multiple warnings as datafusion does not strictly followUpperCamelCasenaming convention.clippy::too_many_argumentsis removed fordatafusion/datafusion/functions/src/regex/regexpinstr.rs
Lines 289 to 297 in 487de9d
too-many-arguments-thresholdis 7 andregexp_instr_innertakes on 6 arguments.rustdoc::redundant_explicit_linksis removed for (1)datafusion/datafusion/functions/src/macros.rs
Lines 79 to 104 in 487de9d
datafusion/datafusion/functions/src/macros.rs
Lines 106 to 120 in 487de9d
[`ScalarUDF`](datafusion_expr::ScalarUDF)is not the same as the explicit link. Any concerns with this one?rustdoc::private_intra_doc_linksis removed for (1)datafusion/datafusion/functions-aggregate/src/approx_percentile_cont.rs
Lines 242 to 281 in 487de9d
datafusion/datafusion/functions-aggregate/src/approx_percentile_cont_with_weight.rs
Lines 254 to 259 in 487de9d
TDigest::to_scalar_state()is public, so we have the opposite case: from private to public items.Are these changes tested?
sh ci/scripts/rust_docs.shwith no warnings/errors.sh ci/scripts/rust_clippy.shwith no warnings/errors.Are there any user-facing changes?
No.