-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Description
As the Nova project grows it is important that we maintain convention and especially conform to certain rules when it comes to the GC (as described in the CONTRIBUTING document). To ease this I suggest we implement some project specific lints using dylint just for nova and projects embedding nova.
Rules
These are some rules I suggest we implement off the top of my head:
- Warn when a function could take a
NoGcScopeinstead of aGcScope - Make sure
Agentis the first argument of fn definitions - Make sure
GcScope/NoGcScopeis the last argument of fn definitions - Make sure
GcScope/NoGcScopeare only passed by value - Check formatting of spec doc comments
- No unbinding of values into local variables
- No duplicate scoping of values
- Calling reborrow only at the call site
yossydevyossydev
Metadata
Metadata
Assignees
Labels
No labels