rust-clippy icon indicating copy to clipboard operation
rust-clippy copied to clipboard

Modules with "test" in name no longer considered test modules

Open jdygert-spok opened this issue 7 months ago • 2 comments

Description

It seems like an intentional change from #13049. However, it is common in our codebase to have a testing feature that enables test utilities for integration tests or tests in other crates in the workspace. These are no longer excluded from wildcard_imports and some other lints. It would be great to have configuration for this, either checking for the "test" name again or setting a list of features that are included in the cfg check.

Regardless of whether that becomes available, the docs for wildcard_import should be updated: https://github.com/rust-lang/rust-clippy/blob/0ee9f44568b60aaef5d04684cb08f112edd89542/clippy_lints/src/wildcard_imports.rs#L70

Version

No response

Additional Labels

No response

jdygert-spok avatar Jul 16 '24 18:07 jdygert-spok