-
Notifications
You must be signed in to change notification settings - Fork 8
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
Adds code formatting check in the CI #21
Conversation
I think you can format it in this pull request with an additional commit. |
Should we remove the existing hooks? It doesn't seem to be necessary anymore. |
Agreed! |
I just crashed everything yayyyy 😅 |
The order of imports in the header file broke it (which is a good thing because we did not include |
If you reorder the include files, you may break the amalgamation. I recommend you do not reorder the include files. |
Also, we would have problems with the includes order of idna.cpp, normalization.cpp, and probably more. Just added a |
Actually I think they are all about the amalgamation like @lemire said. I can try to refactor the amalgamation script + related things to not depend on the import order if the current solution is not okay |
There are still issues even if you preserve the original include order? |
No issues when preserve the original includes order (don't know if it is in the original order now, but I can make it) |
The exact order does not matter, but some orders will break the amalgamation script. |
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.
It seems the ordering issue is resolved.
That's correct. |
ref: ada-url/ada#170 and ada-url/ada#243 (comment)
Hello There! @lemire @anonrig
How do we proceed with the format of the whole codebase? Is there any big (code)change currently in progress for this repo? If not, can we run the format for all files?