Skip to content

Commit 123e68b

Browse files
stroxlermeta-codesync[bot]
authored andcommitted
Tell agents not to use inline qualified names
Summary: We use IDE settings to enforce this, and we try to catch it as a nit on code review, but I realized we're actually never telling agents about it which is likely part of why they periodically use qualified names. Reviewed By: ndmitchell Differential Revision: D92972130 fbshipit-source-id: a2ad76cae0029192b39fc33d9a8dff610f04b65b
1 parent 5056db1 commit 123e68b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

AGENTS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ Coding style: All code must be clean, documented and minimal. That means:
6363
- Minimize the number of places `Expr` nodes are passed around and the number of
6464
times they are parsed. Generally, this means extracting semantic information
6565
as early as possible.
66+
- **Imports:** Always add `use` imports at the top of the file rather than using
67+
inline qualified paths (e.g., write `use crate::foo::Bar;` and then `Bar`,
68+
not `crate::foo::Bar` inline). The only exception is when there is a name
69+
collision between two imports, which is rare.
6670

6771
## Development environments
6872

0 commit comments

Comments
 (0)