File: CONTRIBUTING.md

package info (click to toggle)
casacore 3.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 44,728 kB
  • sloc: cpp: 455,618; fortran: 16,301; ansic: 7,403; yacc: 4,547; lex: 2,327; sh: 1,679; python: 704; perl: 523; sed: 499; csh: 34; makefile: 24
file content (61 lines) | stat: -rw-r--r-- 3,064 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Casacore contribution policy

Casacore is an open source project and everybody is encouraged to help improve
the quality of the code. You can help by reporting issues or even better
fix issues yourself. We use github as a central communication and development
platform. Issues can be reported there. If you have a patch for casacore 
we use the github pull request system. Also to keep the casacore code
quality high we have written down some guidelines for contributing, see below.

## General considerations

 * If you have problems or questions with/about git or github, first check [1].
 * If you modify any code, make sure the test suite still runs (`make test`).
   If it fails, fix the code or the relevant test.
 * If you change a function/method signature, update the doxygen documentation
   accordingly.
 * If you add a function or method, add a test for it add it to the doxygen
   documentation.
 * The tested code coverage line count should increase, not decrease.
 * Follow the google style code as much as possible [2].

## Contribution procedure

 1. Create a github account, setup SSH keys.
 2. Fork the casacore repository on github [3].
 3. Create a branch and commit your changes to this branch.
 4. Push your branch to your github fork (not the original casacore, you
    probably don't have permission).
 5. Issue a pull request [4].
 6. When the pull request is reviewed and there are no problems it will be
    accepted. Merging a pull request should always happen by someone else.
 7. It can happen there are some mistakes here and there, we use the github
    commenting system to discuss these issues.
 8. If there is a problem with the commit, you need to fix it. You can commit
    to the same branch, the PR will be updated automatically.

## General notes about Pull requests

 * Please create descriptive commits containing atomic changes. Use short
   commit messages (try 50 characters, max is 70 characters); longer commit
   messages are possible in the body of the commit message (separated from
   the subject by an empty line). See [5].
 * If you fix an existing github issue, reference it in the commit message
   body, e.g. 'Fixes #41'.
 * If your Pull request does not refer to an existing github issue, it is not
   necessary to create one (because github will present the PR just like an
   issue).
 * You can rewrite the history of the commits in your branch using rebase,
   but don't rewrite the history before the first commit of your new branch.
 * We like to keep the history clean, and prevent a lot of 'fix typo' messages.
 * If you rewrite your history of your branch you can force push those changes
   to your branch. The PR will be updated. See e.g. [6].
 
## Links
 
 * [1] http://help.github.com
 * [2] https://google-styleguide.googlecode.com/svn/trunk/cppguide.html
 * [3] https://help.github.com/articles/fork-a-repo/
 * [4] https://help.github.com/articles/creating-a-pull-request/
 * [5] https://chris.beams.io/posts/git-commit
 * [6] https://developer.atlassian.com/blog/2015/04/force-with-lease/