mirror of
https://github.com/status-im/nim-style-guide.git
synced 2025-02-22 19:18:18 +00:00
Nim 1.2 isn't current anymore, and --styleCheck:error is generally feasible (#14)
This commit is contained in:
parent
369e933e24
commit
9eebb6d613
@ -2,7 +2,7 @@
|
||||
|
||||
Always use the same identifier style (case, underscores) as the declaration.
|
||||
|
||||
Enable `--styleCheck:usages`.
|
||||
Enable `--styleCheck:usages`, and, where feasible, `--styleCheck:error`.
|
||||
|
||||
* `Ref` for `ref object` types, which have surprising semantics
|
||||
* `type XxxRef = ref Xxx`
|
||||
|
@ -22,8 +22,8 @@ func someLongFunctinName(
|
||||
|
||||
### Practical notes
|
||||
|
||||
* We do not use `nimpretty` - as of writing (nim 1.2), it is not stable enough for daily use:
|
||||
* We do not use `nimpretty` - as of writing (Nim 1.6), it is not stable enough for daily use:
|
||||
* Can break working code
|
||||
* Naive formatting algorithm
|
||||
* We do not make use of Nim's "flexible" identifier names - all uses of an identifier should match the declaration in capitalization and underscores
|
||||
* Enable `--styleCheck:usages`
|
||||
* Enable `--styleCheck:usages` and, where feasible, `--styleCheck:error`
|
||||
|
Loading…
x
Reference in New Issue
Block a user