-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
build: apply cpp linting and formatting to ncrypto #55362
Conversation
Review requested:
|
CC @nodejs/crypto |
Oh nice. Thank you. I've been meaning to get to this. Very helpful |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #55362 +/- ##
==========================================
- Coverage 88.40% 87.91% -0.50%
==========================================
Files 654 654
Lines 187637 187746 +109
Branches 36098 35818 -280
==========================================
- Hits 165887 165057 -830
- Misses 14994 15885 +891
- Partials 6756 6804 +48 |
btw, the intention is to move ncrypto out to a separate repo once all of the work is done to separate it out. It'll be a while tho. At that time that separate project will have its own build and linting stuff |
This comment was marked as outdated.
This comment was marked as outdated.
Hey, can someone restart the failed builds so this fix can land? Thanks! |
c48c984
to
bb8a7d2
Compare
@jasnell would you mind re-approving + CI-ing now that a new commit has been added? |
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.
Why would we be linting a vendored dependency? 🤔
Because we are the author of the dependency. It's our dependency, and it lives in this repository, shouldn't it follow the same lint rules? If/when ncrypto is moved to its own repository, this can be changed. |
Does it need to be you doing that, or could it be anyone doing that? It seems to me we should do that instead of applying a linter in |
No, but the process of separating these out into the dependency is tedious and difficult to get right without introducing breaking changes. I would rather it be done after that work is completed to make code reviews easier. In the meantime the linting and stuff is annoying and applying it here is useful. |
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.
lgtm
Landed in e7991e8 |
PR-URL: #55362 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
PR-URL: nodejs#55362 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
PR-URL: nodejs#55362 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
CC @jasnell (who appears to have contributed most of this work)
If these files are maintained in this repository, should they not follow the same linting / formatting rules? This PR has
clang-format
andcpplint
apply to these files.