Thanos Coding Style Guide #49
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
https://thanos.io/tip/contributing/coding-style-guide.md/
Code for readability, low cognitive load.
Never use panics.
Avoid variable shadowing.
Prefer early returns.
Never use print, use a logger.
Comments Should be Full Sentences.