CONTRIBUTING.md
July 23, 2017 ยท View on GitHub
First of all, I should thank you for your willing to contribute.
If you want to support a new MIME type:
- Write new Signature.
- Don't forget to link it with documation or existed MIME detection code from other project.
- Write test for it. If you don't know how to run the test, read the
.travis.yml. - Upgrade the version number in
lib/mime_sniff.lua. If you add a new kind of Signature, increase minor number by one. Otherwise, increase patch number is just enough. - Squash to one commit and submit a pull request.
It's my duty to update the wiki after your pull request is merged.
If you want to fix a bug:
- Write your bugfix.
- Add a test to avoid regression.
- Upgrade the patch part of the version number in
lib/mime_sniff.lua. - Squash to one commit and submit a pull request.
If you want to fix a typo:
- Fix it.
- Squash to one commit and submit a pull request.