File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 14
14
- [ New subcommands] ( ./implementation/subcommands.md )
15
15
- [ Console Output] ( ./implementation/console.md )
16
16
- [ Filesystem] ( ./implementation/filesystem.md )
17
+ - [ Formatting] ( ./implementation/formatting.md )
17
18
- [ Debugging] ( ./implementation/debugging.md )
18
19
- [ Tests] ( ./tests/index.md )
19
20
- [ Running Tests] ( ./tests/running.md )
Original file line number Diff line number Diff line change
1
+ # Formatting
2
+
3
+ When modifying user files, like ` Cargo.toml ` , we should not change other
4
+ sections of the file,
5
+ preserving the general formatting.
6
+ This includes the table, inline-table, or array that a field is being edited in.
7
+
8
+ When adding new entries, they do not need to match the canonical style of the
9
+ document but can use the default formatting.
10
+ If the entry is already sorted, preserving the sort order is preferred.
11
+
12
+ When removing entries,
13
+ comments on the same line should be removed but comments on following lines
14
+ should be preserved.
15
+
16
+ Inconsistencies in style after making a change are left to the user and their
17
+ preferred auto-formatter.
You can’t perform that action at this time.
0 commit comments