Skip to content

Conversation

@chakkk309
Copy link
Contributor

@chakkk309 chakkk309 commented Nov 28, 2025

Which issue does this PR close?

Rationale for this change

Replace #[allow] with #[expect] to enable automatic detection when lint suppressions are no longer needed.

What changes are included in this PR?

Replace 4 #[allow] attributes with #[expect] in datafusion-catalog

  • Add #![deny(clippy::allow_attributes)] lint rule to lib.rs
  • Convert unused_variables and clippy::too_many_arguments suppressions

Are these changes tested?

yes

Are there any user-facing changes?

No user-facing changes.

@github-actions github-actions bot added the catalog Related to the catalog crate label Nov 28, 2025
#![cfg_attr(not(test), deny(clippy::clone_on_ref_ptr))]
#![deny(clippy::needless_pass_by_value)]
#![cfg_attr(test, allow(clippy::needless_pass_by_value))]
#![warn(clippy::allow_attributes)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be a deny like we do for needless_pass_by_value above?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the suggestion, I've updated the lint level to deny .

@Jefffrey Jefffrey added this pull request to the merge queue Nov 28, 2025
Merged via the queue into apache:main with commit 7925735 Nov 28, 2025
28 checks passed
@Jefffrey
Copy link
Contributor

Thanks @chakkk309

@chakkk309 chakkk309 deleted the Enable-clippyallow_attributes-lint-for-datafusion-catalog- branch November 28, 2025 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

catalog Related to the catalog crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants