You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new release adds the `flat_module_pattern`, `macro_trailing_comma`,
`unicode_ellipsis_in_panic_messages`, and `unknown_perfectionist_lints`
rules. Fix the trailing-comma violations the new rule reports and drop
the now-redundant flat-module-pattern bullet from `CONTRIBUTING.md`.
Two `macro_trailing_comma` warnings remain in `tests/tree_builder.rs`
and `tests/visualizer.rs`. They are triggered by single-element
multi-line `vec!` invocations that `rustfmt` actively reformats away
from a trailing comma, and `#[allow(perfectionist::...)]` cannot be
used without nightly `register_tool`. The warnings do not fail the
build because `test.sh` does not pass `-D warnings` to `cargo dylint`.
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,8 @@ use crate::get_size::{GetBlockCount, GetBlockSize};
54
54
55
55
### Module Organization
56
56
57
-
- Use the flat file pattern (`module.rs`) rather than `module/mod.rs` for submodules.
57
+
The flat file pattern (`module.rs` rather than `module/mod.rs`) is enforced by the `perfectionist::flat_module_pattern` dylint check. In addition to that requirement, follow these conventions:
58
+
58
59
- List `pub mod` declarations first, then `pub use` re-exports, then private imports and items.
59
60
- Use `pub use` to re-export key types at the module level for convenience.
0 commit comments