3.4 KiB
3.4 KiB
Contributing to tablesorter (FORK)
Getting Involved
There are a number of ways to get involved with the development of this fork of Tablesorter. Even if you've never contributed to an Open Source project before, we're always looking for help identifying issues.
How to Report issues, or make requests.
- First off make sure it's a new issue. Search the FAQ, documents and the issues.
- If it's an existing issue or feature request, and you want to show that it is also a concern for you. Add a comment!
- If it turns out to not be an issue, but a question instead:
- Please don't open a new issue.
- Jump on out freenode.net IRC channel:
#tablesorter
. - Ask the question on Stackoverflow (tablesorter or jQuery tag).
- If you do open a new issue:
- If the issue only occurs in a particular browser or version of jQuery, that would be awesome to know!
- Please include any relevant code (posting the entire page usually isn't that helpful).
- Add if there are any errors showing in the console (press F12 in the browser and go to the console tab).
- Include screenshots, animated gifs, videos (check out screenr) or funny cat pictures. You never know what might help!
Contributing Code
- Installation:
- Please see the Customize wiki page for specifics on how to install the necessary modules & create a custom build.
- If you aren't comfortable using grunt or making a build file, you can go ahead and just share the changes.
- Style Guide:
- We're not too strict, just try to follow the style that is already being used in the code; click here here for the .jscsrc file used in this project.
- When naming variables:
- Use names that describe it's contents. I'm guilty of naming things
t
andi
, but I'm slowly trying to rename them to make reading code and finding the variable in the code easier. - Name jQuery objects with a leading
$
, e.g.var $table = $('table');
- Use names that describe it's contents. I'm guilty of naming things
- We like semicolons! Jshint will yell at you if you don't use them.
- We like single quotes! It's OCD man!
- We like tabs!
- We like pizza!
- Pull request:
- Before opening a pull request, please make sure that your code is on a fork of the master. This is really for your own convenience: it's easy for us to accept your pull request from your master branch, but it's problematic for your fork when you want to pull the changes back and your master branch has diverged from upstream's master branch.
- Add unit tests - tablesorter is still missing a lot of unit tests, so adding tests for your contribution would be a tremendous help!
- Also, make sure to test your changes!
- There is no need to open an issue, then create a pull request. Just create the pull request and add any comments about your changes there.