mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-19 22:49:00 +00:00
GitBook: [main] 66 pages modified
This commit is contained in:
parent
e0a9db2f78
commit
9216c1a0e2
@ -6,14 +6,14 @@ description: >-
|
||||
|
||||
# Coding Style
|
||||
|
||||
## Basic
|
||||
## Basics
|
||||
|
||||
1. Avoid cryptic abbreviations. Single letter variable names are fine in very short methods with few variables, otherwise make them informative.
|
||||
2. Clear code is preferable to comments. When possible make your naming so good you don't need comments. When that isn't possible comments should be thought of as mandatory, write them to be read.
|
||||
3. Logging, configuration, and public APIs are our "UI". Make them pretty, consistent, and usable.
|
||||
4. Maximum line length is 130.
|
||||
4. Maximum line length is 120.
|
||||
5. Don't leave TODOs in the code or FIXMEs if you can help it. Don't leave println statements in the code. TODOs should be filed as github tasks.
|
||||
6. User documentation should be considered a part of any user-facing the feature, just like unit tests. Example REST apis should've accompanaying documentation.
|
||||
6. User documentation should be considered a part of any user-facing the feature, just like unit tests. Example REST apis should've accompanying documentation.
|
||||
7. Tests should never rely on timing in order to pass.
|
||||
8. Every unit test should leave no side effects, i.e., any test dependencies should be set during setup and clean during tear down.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user