Add to .rules: Avoid creating mod.rs paths (#29174)

Release Notes:

- N/A
This commit is contained in:
Michael Sloan 2025-04-21 14:14:56 -06:00 committed by GitHub
parent 733cd6b68c
commit 3b31860d52
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

1
.rules
View file

@ -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