From 3b31860d52e73adc03b7c44d88aa8864da8ca83d Mon Sep 17 00:00:00 2001 From: Michael Sloan Date: Mon, 21 Apr 2025 14:14:56 -0600 Subject: [PATCH] Add to `.rules`: Avoid creating `mod.rs` paths (#29174) Release Notes: - N/A --- .rules | 1 + 1 file changed, 1 insertion(+) diff --git a/.rules b/.rules index 94ae8753be..c887db0358 100644 --- a/.rules +++ b/.rules @@ -5,6 +5,7 @@ * Prefer implementing functionality in existing files unless it is a new logical component. Avoid creating many small files. * Avoid using functions that panic like `unwrap()`, instead use mechanisms like `?` to propagate errors. * Be careful with operations like indexing which may panic if the indexes are out of bounds. +* Never create files with `mod.rs` paths - prefer `src/some_module.rs` instead of `src/some_module/mod.rs`. # GPUI