Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 63ceaa2

Browse files
committed
Detangle readme and move documentation out to reference manual
1 parent 4724d0a commit 63ceaa2

12 files changed

Lines changed: 466 additions & 570 deletions

CONTRIBUTING.md

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,43 @@
1-
Contributing guidelines are available at the [wiki](https://github.com/martypitt/swagger-springmvc/wiki/Contribution-guidelines)
1+
# Some general guidelines
2+
3+
## Before you submit an issue please read [issue submitting guidelines](https://github.com/springfox/springfox/wiki/Issue-Submission)
4+
5+
### Here are some great resources
6+
[Github Flow](https://guides.github.com/introduction/flow/index.html)
7+
8+
[Creating Effective Pull Requests](http://codeinthehole.com/writing/pull-requests-and-other-good-practices-for-teams-using-github/)
9+
10+
Here is an example of [a great pull request](https://github.com/bitly/dablooms/pull/19)
11+
12+
### Before starting to work on a PR
13+
14+
- Create an issue with the problem description **_BEFORE_** creating a PR directly. Provide examples if possible. This
15+
gives an opportunity for the library authors to prioritize the work stream as well.
16+
- Describe the approach you'd like to use to solve the problem. This way the library authors will have a better idea
17+
when it comes to reviewing the PR. Its also a good way to vet ideas out, in case there is a simpler solution.
18+
19+
### Unit Testing
20+
_A lot of effort has gone into refactoring and getting this library into a state where it is thoroughly unit tested_. This has really paid off and we want to maintain the same diligence with unit testing for as long as this library is maintained. All pull requests must have accompanying unit tests. PR's without unit tests will, most likely, be rejected. The unit testing framework of choice is spock. There are lots of examples in the existing code base and the existing contributors are more than happy to help out with unit testing. **Make sure there are tests that cover the change**.
21+
22+
### Keeping PR process efficient
23+
While working on the PR, here are some suggestions to make submitting a PR fun for everyone!
24+
25+
- Before starting on a feature or a bug, if you see some cleanup opportunities upfront do them all and group these
26+
into one or more logical commits. Definitely if there are whitespace changes I get them out of the way. That way the
27+
code reviewer can focus on reviewing what has actually changed, without having to open up the IDE.
28+
- Never mix class rename/move changes with changes to the class itself.
29+
- Break up your commits into chunks of work. Group logical changes together into one commit. This gives a history and
30+
context as to what the thought processes is or how you arrived at the final solution
31+
- If you encounter significant cleanup required mid-way through your work try to isolate that as a separate commit.
32+
This is not to say ever single minute cleanup needs to be in its own commit, just the large chunks of cleanup.
33+
- Finally clean up all the merge commits by rebaseing against the source repo often.
34+
35+
Along the lines of the _agile manifesto_:
36+
37+
- Prefer separate commits over one big change
38+
- Prefer isolating code cleanup/formatting issues on a separate commit over mixing it with the commit that addresses
39+
an issue
40+
- Prefer not squashing commits/re-writing history after it has been reviewed
41+
- Prefer squashing commits like "fixed broken test", "oops I forgot to add this before I pushed it" to having the
42+
commit noise
43+
- Prefer squashing merge commits for sure

0 commit comments

Comments
 (0)