-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs/contributing: Add coding conventions guide #248
Conversation
05a85e9
to
1fbbc9e
Compare
5d68483
to
11a22ab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot @RaduNichita, I left some comments.
It seems there are still a few TODOs left from the document, so also check those out.
15ac938
to
182dbee
Compare
0f72302
to
a16d556
Compare
c1d2b26
to
4322cce
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, this review comes unsolicited, I just wanted to look something up in our guidelines and ended up seeing things here and there. Hope it's okay :)
The implementation is usually found in one of the libraries in `/lib` or defined in the headers in `/include/uk`. | ||
For example: `uk_alloc()` | ||
|
||
* `ukplat_` - denotes a public Unikraft API, whose implementation is usually provided in `/plat` and depends on the platform (e.g., KVM) for which the Unikernel is compiled. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ukplat
and ukarch
are subject to become obsolete by plat-rearch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@michpappas, could you suggest a way to rephrase this? Should we drop it altogether?
4322cce
to
a0592da
Compare
3c9d3b8
to
91f3678
Compare
0a31511
to
e0914f3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the comments @RaduNichita.
Besides those, there seems to be a few more TODO items.
Also add dots at the end of sentences, even if in a list. I did not add comments to all of them to avoid spam, searched them with [^.]$
. Also check the linter errors.
c50a27d
to
dc2c0a2
Compare
cdf2dfb
to
a9239a6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks better @RaduNichita, thank you. Please check the unresolved conversations, if it is the case mark them as resolved, if they need more input from someone please ask for it.
a9239a6
to
3d9124e
Compare
3d9124e
to
51b6e50
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great @RaduNichita, see the few comments, we'll then wait for @razvand and @michpappas to have a look.
51b6e50
to
55250b3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me @RaduNichita, thanks a lot 🥇
d8b91d0
to
27ac3f2
Compare
Add extensive conventions for writing code. The goal is to create a consistent set of rules & guidelines to be used throughout the Unikraft codebase. Signed-off-by: Radu Nichita <[email protected]>
27ac3f2
to
e893e48
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @RaduNichita.
Reviewed-by: Razvan Deaconescu [email protected]
Approved-by: Razvan Deaconescu [email protected]
Add the coding conventions for Unikraft