-
Notifications
You must be signed in to change notification settings - Fork 213
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
Rename files for consistency #989
Conversation
+1 for this convention. Can we have a quick script that checks all source files match that convention? [a-z_]+? |
I like this style, I prefer |
@eddyashton I suggest we align directories also, at least things like: /src/apps/jsgeneric/js_generic.cpp, as well as public headers, and probably binary artifacts too (js_generic.enclave.so.signed)? |
LGTM. |
|
@eddyashton thank you for taking the time to do this, the repo looks much cleaner now! |
Codecov Report
@@ Coverage Diff @@
## master #989 +/- ##
==========================================
+ Coverage 63.19% 67.63% +4.43%
==========================================
Files 135 103 -32
Lines 8971 8266 -705
==========================================
- Hits 5669 5590 -79
+ Misses 3302 2676 -626
|
file_snake_casing@6436 aka 20200325.32 vs master ewma over 30 builds from 6062 to 6428 |
Resolves #707.
We have no fixed naming scheme for our file names. This PR adds one - we
snake_case.h
the basenames (dirs are stilldirs are also nownamespacelikeconcatenated
./snake_case/snake_case.h
).Opening as a draft so people have a chance to veto if they wish, but I'd like to clear this tonight/tomorrow morning so I don't spend too much time resolving conflicts.
Do we like this style?
Do we prefer oneword for some of our core concepts? eg this PR says
ring_buffer.h
,key_pair.h
, etc, does this go too far?I've ignoredThis now also renames libbyz files tolibbyz/
so far - should I lower-case those files in the same PR?lower_snake_case
. This reordered some includes in breaking ways, so there are additional include statements to correct this.