mirror of
https://github.com/enso-org/enso.git
synced 2024-12-28 15:53:35 +03:00
Update style-guide.md (https://github.com/enso-org/ide/pull/92)
Original commit: c9c496b2e2
This commit is contained in:
parent
5af7a0fd2f
commit
1e0de6fc24
@ -78,6 +78,7 @@ impl Default for AxisOrder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// =================
|
// =================
|
||||||
// === Transform ===
|
// === Transform ===
|
||||||
// =================
|
// =================
|
||||||
@ -98,6 +99,7 @@ impl Default for TransformOrder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// =============================
|
// =============================
|
||||||
// === HierarchicalTransform ===
|
// === HierarchicalTransform ===
|
||||||
// =============================
|
// =============================
|
||||||
@ -123,6 +125,7 @@ impl<OnChange> HierarchicalTransform<OnChange> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// === Getters ===
|
// === Getters ===
|
||||||
|
|
||||||
impl<OnChange> HierarchicalTransform<OnChange> {
|
impl<OnChange> HierarchicalTransform<OnChange> {
|
||||||
@ -137,6 +140,7 @@ impl<OnChange> HierarchicalTransform<OnChange> {
|
|||||||
...
|
...
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// === Setters ===
|
// === Setters ===
|
||||||
|
|
||||||
impl<OnChange:Callback0> HierarchicalTransform<OnChange> {
|
impl<OnChange:Callback0> HierarchicalTransform<OnChange> {
|
||||||
@ -157,12 +161,15 @@ impl<OnChange:Callback0> HierarchicalTransform<OnChange> {
|
|||||||
|
|
||||||
### Vertical spacing
|
### Vertical spacing
|
||||||
We use the following amount of vertical spacing:
|
We use the following amount of vertical spacing:
|
||||||
- 2 blank lines after imports
|
- 3 blank lines after imports.
|
||||||
- 2 blank lines before each section.
|
- 3 blank lines before each section.
|
||||||
- 1 blank line before and after sub-section.
|
- 2 blank line before and after sub-section.
|
||||||
- 1 blank line before functions / structures / impls.
|
- 1 blank line before functions / structures / impls.
|
||||||
- 1 blank line at the end of the file.
|
- 1 blank line at the end of the file.
|
||||||
|
|
||||||
|
Please note that vertical spacing overlapps. For example, if there is a section
|
||||||
|
after imports, the total number of blank lines is 3, not 6.
|
||||||
|
|
||||||
|
|
||||||
### Multiline Expressions
|
### Multiline Expressions
|
||||||
Most (preferably all) expressions should be single line. Multiline expression is
|
Most (preferably all) expressions should be single line. Multiline expression is
|
||||||
|
Loading…
Reference in New Issue
Block a user