diff options
| author | PartiallyTyped <me@partiallytyped.dev> | 2023-11-08 22:28:06 +0100 |
|---|---|---|
| committer | PartiallyTyped <me@partiallytyped.dev> | 2023-11-08 22:42:12 +0100 |
| commit | 7e716ff9551965c8b458e6a2a935a4a36463fb77 (patch) | |
| tree | a6e6caac7da7033ac905ec7e33f7eedacc329ed0 /tests/rustdoc-js-std/parser-errors.js | |
| parent | ba43632808bbbcf3214ea687ba2e8237724b0cf0 (diff) | |
| download | rust-7e716ff9551965c8b458e6a2a935a4a36463fb77.tar.gz rust-7e716ff9551965c8b458e6a2a935a4a36463fb77.zip | |
[`mod_module_files`] Don't emit lint for modules in tests
fixes: #11775
current state: indiscriminately emits the lint for mod files in tests.
The following
tests/
common/
mod.rs
test.rs
is a common pattern for code shared across the tests and is suggested in
the rust book. The change adds an additional check to verify that the
mod file is not in tests.
changelog: Fix [`mod_module_files`]: false positive for mod files in
tests folder
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions
