-
Notifications
You must be signed in to change notification settings - Fork 304
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
Add 'Code Style and Quality Guide' #224
Conversation
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.
Thanks for driving this @rmetzger , found a few nits but otherwise looks good. The third page is long but I think that's fine.
Thanks for your review @sjwiesman. I addressed your comments. |
### Use inspections in IntelliJ | ||
|
||
* Import the inspections settings into the IDE (see IDE setup guide) | ||
* TODO: Need to agree on a profile and export it (like checkstyle) |
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.
our docs shouldn't contain TODOS
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.
I would throw out this entire section because it isn't remotely well-defined
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.
Can we comment this out for now?
I think we should agree upon a set of inspections for all committers/contributors to use. That would help a lot in my opinion.
I'd volunteer with a first suggestion of inspections.
Exceptions are ****hotfixes****, like fixing typos in JavaDocs or documentation files. | ||
|
||
|
||
Name the pull request in the form `[FLINK-XXXX] [component] Title of the pull request`, where `FLINK-XXXX` should be replaced by the actual issue number. The components should be the same as used in the JIRA issue. |
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.
the majority of PRs/commits that I see do not have a space between ][
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.
+1
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.
Any version works, as long as we are consistent.
I am fine with "no space in between".
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.
I also see the "no space in between" variant more often. I'll change it
|
||
Examples for changes that strictly need to go into a separate commit include | ||
|
||
|
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.
Please standardize the number of empty lines before lists.
## 4. Commit Naming Conventions | ||
|
||
Commit messages should follow a similar pattern as the pull request as a whole: | ||
`[FLINK-XXXX] [component] Commit description`. |
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.
same as above, no space seems more common
I think the third page would be best split up into
|
Thanks a lot for your suggestions and comments! I have updated the pull request. I'll merge it by end of this week, if there's no further feedback. |
This closes apache#224
This closes apache#224
Based on this document https://docs.google.com/document/d/1owKfK1DwXA-w6qnx3R7t2D_o0BsFkkukGlRhvl3XXjQ/edit# and the discussion here https://lists.apache.org/thread.html/461d0922787c62447c3baff3177a0c8f34fee7c95e2896e5ddf59691@%3Cdev.flink.apache.org%3E