- Be sparing with comments. Don't add comments to obvious code. Only add comments when extra context is required for a human to understand a piece of code.
- Use Jujutsu for all version control operations.
- Never run any
jjcommand except for the following (with appropriate arguments):jj newjj commitjj showjj diffjj logjj status
- When writing unit tests, favor table-based testing rather than many tests with similar structure.
- Using
unwrap()is fine in tests. We don't need an error message for everything. - Where convenient, use the test-case crate for table-based testing.