-
Notifications
You must be signed in to change notification settings - Fork 2
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
Update Contributor Guidelines #89
Comments
I fully agree. Do you maybe want to volunteer to draft an PR?
But you still want to perform automatic checks in the CI that those rules are obeyed? Or not? |
Let's collect here first, so I don't go into a wrong direction.
anything else you can think of? When a PR is submitted that follows all the rules, a review should not require changes to new/undocumented rules. Instead we can add a commit to the PR changing this and also adding the new rule to the guidelines. |
Okay, I agree. Overall, I would refer to pre-existing coding standards as much as possible. Here are my comments:
|
Regarding naming of variables: Do you know why they capitalize variable names? To me it seems like this would remove the differentiation with class names. While I see the benefit of adopting something standard, looking over the LLVM guide it seems to me very strict. My intention of updating our contributor guidelines was to make it easier to know what will be accepted. But the LLVM guidelines seem more strict that what we enforce. I feel like, as long as it stay relatively short, it would be better if we just copy the most important guidelines from the LLVM guidelines and not blankedly say, we adhere to all of them. |
To be discussed:
|
@stv0g and me discussed exceptions offline and decided to not allow exceptions in new code and, over time. remove the existing exceptions. My suggestion for error handling would be to use I would probably implement a typedef for std::expected with just a string for the error type so that we can change this if there is a need. This is a C++23 feature but there are supposed to be implementations for earlier version. Another thing I found was Regarding RTTI, I would suggest saying it is discourages in new code. @stv0g what do you think? |
The contributor guidelines should be updated, and better enforced.
I think it's a good idea to just make people use clang-format and editorconf.
We should also document how commit messages should be formatted and where and how to comment things.
By enforce, I also mean, that we should not force people to use a style that is not documented in the guidelines. This leads to frustration and people not wanting to contribute.
The text was updated successfully, but these errors were encountered: