|
| 1 | +# Contributing |
| 2 | + |
| 3 | +We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's: |
| 4 | + |
| 5 | +- Reporting a bug |
| 6 | +- Discussing the current state of the code |
| 7 | +- Submitting a fix |
| 8 | +- Proposing new features |
| 9 | +- Becoming a maintainer |
| 10 | + |
| 11 | +## We Develop with Github |
| 12 | +We use GitHub to host code, to track issues and feature requests, and to accept Pull Requests. |
| 13 | + |
| 14 | +## Report Bugs using Github's [issues](https://github.com/briandk/transcriptase-atom/issues) |
| 15 | + |
| 16 | +If you find bugs, mistakes, or inconsistencies in this project's code or documents, please let us know by [opening a new issue](./src/issues), but consider searching through existing issues first to check and see if the problem has already been reported. If it has, it never hurts to add a quick "+1" or "I have this problem too". This helps prioritize the most common problems and requests. |
| 17 | + |
| 18 | +### Write Bug Reports with Detail, Background, and Sample Code |
| 19 | + |
| 20 | +[This is an example](http://stackoverflow.com/q/12488905/180626) of a good bug report by @briandk. Here's [another example from craig.hockenberry](http://www.openradar.me/11905408). |
| 21 | + |
| 22 | +**Great Bug Reports** tend to have: |
| 23 | + |
| 24 | +- A quick summary and/or background |
| 25 | +- Steps to reproduce |
| 26 | + - Be specific! |
| 27 | + - Give sample code if you can. [The stackoverflow bug report](http://stackoverflow.com/q/12488905/180626) includes sample code that *anyone* with a base R setup can run to reproduce what I was seeing |
| 28 | +- What you expected would happen |
| 29 | +- What actually happens |
| 30 | +- Notes (possibly including why you think this might be happening, or stuff you tried that didn't work) |
| 31 | + |
| 32 | +People *love* thorough bug reports. I'm not even kidding. |
| 33 | + |
| 34 | +## Submit Code Changes through Pull Requests |
| 35 | + |
| 36 | +Simple Pull Requests to fix typos, to document, or to fix small bugs are always welcome. |
| 37 | + |
| 38 | +We ask that more significant improvements to the project be first proposed before anybody starts to code as an [issue](./src/issues) or as a [draft Pull Request](./src/pulls), which is a [nice new feature](https://github.blog/2019-02-14-introducing-draft-pull-requests/) that gives other contributors a chance to point you in the right direction, give feedback on the design, and maybe discuss if related work is already under way. |
| 39 | + |
| 40 | +### Use a Consistent Coding Style |
| 41 | + |
| 42 | +* We indent using two spaces (soft tabs) |
| 43 | +* 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. |
| 44 | +* This is open-source software. Consider the people who will read your code, and make it look nice for them. It's sort of like driving a car: Perhaps you love doing donuts when you're alone, but with passengers the goal is to make the ride as smooth as possible. |
| 45 | + |
| 46 | +### Use [Github Flow](https://guides.github.com/introduction/flow/index.html) for Pull Requests |
| 47 | + |
| 48 | +We use [Github Flow](https://guides.github.com/introduction/flow/index.html). When you submit Pull Requests, please: |
| 49 | + |
| 50 | +1. Fork the repo and create your branch from `master`. |
| 51 | +2. If you've added code that should be tested, add tests. |
| 52 | +3. If you've changed APIs, update the documentation. |
| 53 | +4. Ensure the test suite passes. |
| 54 | +5. Make sure your code lints. |
| 55 | +6. Issue that Pull Request! |
| 56 | + |
| 57 | +### Submit Under the BSD-2-Clause Plus Patent License |
| 58 | + |
| 59 | +In short, when you submit code changes, your submissions are understood to be available under the same [BSD-2-Clause Plus Patent License](./src/LICENSE.md) that covers the project. We also ask all code contributors to GPG sign the [Contributor License Agreement (CLA.md)](./src/CLA.md) to protect future users of this project. Feel free to contact the maintainers if that's a concern. |
| 60 | + |
| 61 | +## References |
| 62 | + |
| 63 | +Portions of this CONTRIBUTING.md document were adopted from best practices of a number of open source projects, including: |
| 64 | +* [Facebook's Draft](https://github.com/facebook/draft-js/blob/a9316a723f9e918afde44dea68b5f9f39b7d9b00/CONTRIBUTING.md) |
| 65 | +* [IPFS Contributing](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md) |
0 commit comments