OSHW-DEIMOS/CONTRIBUTING.md
2018-05-31 16:55:34 -07:00

3.6 KiB

How to contribute

It is great that you're reading this! We need volunteer developers to help this project come to fruition.

This guide is intended to direct you toward useful resources with the goal of enabling you to maximize your time and energy to contribute great things to the project.

Cultivate new ideas

Understand the project

Coding process

  1. Fork this repository
  2. Make local changes using the Git code versioning tool
  3. Commit and push the changes to your local fork
  4. Submit a Pull Request (PR) on this main repository and select your local branch to be merged

Coding guidelines

Coding conventions

Start reading our code and you'll get the hang of it. We optimize for readability:

  • We indent using four spaces (soft tabs)
  • We ALWAYS put spaces after list items and method parameters ([1, 2, 3], not [1,2,3]), around operators (x += 1, not x+=1), and around hash arrows
  • This is open source software, so please consider the people who will read your code and make it look nice for them
  • Comment your code and provide documentation when appropriate
  • Compose documentation using one sentence/statement per line; this makes modifications easier to follow

Commit messages

Always write a clear log message for your commits. Simply saying "Update" is not adequate to understand what change(s) you made. One-line messages are fine for small changes, but bigger changes should look like this:

  $ git commit -m "A brief summary of the commit (max 50 chars)
  > 
  > An optional paragraph describing what changed and its impact."

Please ensure that all of your commits are atomic (one feature per commit). This helps prevent tons of headaches digging through code in an attempt to reproduce your steps.

Branches

Branches should be used for non-trivial changes that would take numerous commits to implement or if such changes could break the build. Branches are not inherently expected to build; they provide a staging area for your particular fix or feature.

Testing

Test your code against the master branch prior to submitting a PR! One test per feature is ideal, but more tests should be included for more complicated features.

Submitting a PR

Please submit a GitHub Pull Request (PR) including a clear list of what you've done (read more about pull requests). Tests and examples provided with your code will help us tremendously to understand your contribution and expedite the merge. We can always use more test coverage.

Conclusion

We hope that we have not scared you away with formality. This is a great community that shares like interests and intentions with the project. If you are reading this, you certainly share much of the same passion as we do. We look forward to seeing what great ideas you come up with!

Thanks, TERES Development Team