Skip to content

Latest commit

 

History

History
61 lines (52 loc) · 2.99 KB

CONTRIBUTING.md

File metadata and controls

61 lines (52 loc) · 2.99 KB

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