-
Notifications
You must be signed in to change notification settings - Fork 5
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
Code formatting rules #15
Comments
You can use a github actions to perform a check. The following is based on git-clang. https://github.com/inexorgame/vulkan-renderer/blob/master/.github/workflows/code_style.yml |
Yes indeed checking formatting in a github actions is helpful, however the major problem here is the lack of clang-format configuration file for NodeEditor. |
Formatting is a major issue here. I've open a PR in master repo to at least keep one code style before applying any clang-format, but has been ignored. My main concern and what stopped me to refactory the whole repository until now is that the code base will diverge with the original repo in a non-reversible way. Github actions would be a great addition indeed, any help would be appreciated. I could start integrating that PR I mentioned before. |
That's true for an actively maintained upstream, which in that case, applying the patches back to the master repo is necessary.
|
I'll implement che code-styling check using github actions and clang. I used two services for continuous intergratino: travis and appveyor. Maybe they could be replaced with a github solution as well. @Daguerreo please point me to your PR that was declined by me. I can't see it among the open ones. |
@paceholder if you please could point me out which code style should be applied I can do a much better job this time. |
Let's take the For pointers and refs I prefer the following style:
Opening braces are everywhere on the new line. Indentation --- two spaces. Thanks. |
Roger |
As can be seen, the code style of NodeEditor is kept manually, or sometimes, non-consistent (see db2e32b#diff-0164c9b0ea36cd227809551953d8f53ea2e1f8a4d5071ff24e0778c8c4060e5eR37-R57)
This problem could be resolved by introducing a code formatting tool (e.g. clang-format), however, this may lead to some extra problems:
The text was updated successfully, but these errors were encountered: