-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Uniformize coding style #864
Comments
This is definitely a point that needs to be addressed. Though I suggest to push that until we have official contribution guidelines (where such styles should be defined), which I already spent some thoughts on. I can't promise these for the 1.6.1 release yet though I'd love to. At the moment I am still reviewing old issues to verify that we don't miss any old unsolved problems from the past which we may carry with us without realising it. With this I also gain some knowledge about what happened in the recent years... |
I agree that we need to take a serious look at the style inconsistencies throughout the code base and I also agree we should push that out a bit until we can resolve some more of these old issues. |
I'll let you know as soon as I am done with reviewing the remaining 439 closed issues incl. PRs ... We will then see what remains and can then decide on a good point in time when to deal with this. I could imagine that such styling fixes in the codebase will result in many changes in several parts. |
@martonmiklos: As you can see I've moved this to the v1.6.2 milestone for now, which is currently planned for September 2020 - so this can remain outstanding for quite some time. I assume that we will see quite some changes in v1.6.1, so it seems reasonable to wait with this in order to avoid (additional) incompatibilities. |
Alright! |
I think we are ready to deal with this as from now. |
I've attached this to a recent PR which also partially addresses this issue. |
This is also going to be addressed in the linked PR. |
I came across the package |
I've added a local config file to the project and started going through all available options. I'll push the related, commits soon, so you can have a look at it. |
Hello folks,
I have found a few code style inconsistencies (whitespaces at the end of the lines, tabs, etc.) during my last contribution.
I would propose to agree on the coding style and document it in a clang-formatter format, format the whole code with it and setup a github action (or integrate the clang-formatter to the Travis CI) to check the coding style on each commit. I would also recommend to leverage coding style from existing projects to make it easier to define the it.
I know it will make the git blame harder sometimes in the future, however it is always more pleasurable to work on code which is formatted and indented consistently.
I can help with the github action setup, or even creating the clang formatter file.
The text was updated successfully, but these errors were encountered: