suggestion about script that can be used to strip whitespaces

This commit is contained in:
Pawel "l0ner" Soltys 2015-01-20 15:13:39 +01:00
parent b5a2fcfd34
commit 668a1d97dd
3 changed files with 3 additions and 55 deletions

@ -1,54 +0,0 @@
============
Contributing
============
Want to improve the quality of tmux-mem-cpu-load code? Great! Here's a quick
guide:
1. Fork, then clone the repo:
git clone git@github.com:your-username/tmux-mem-cpu-load
2. Make your change. Add tests for your change.
3. See if it compiles and runs like it should.
4. Run tests to check if you didn't break anything:
make test
Push to your fork and `submit a pull request`_.
At this point you're waiting on us. We'll review your changes as soon as we can.
Before merging your changes we may request you to make some changes or
corrections.
Style guidelines
----------------
You'll need to follow the subsequent rules in order to get your code merged:
* Use Allman_ style for block braces.
* No space before `(`
* Add space after each `(` and before each `)`
* Use braces single line statements
* Don't use mixed case naming style, use underscores instead.
Bad example:
int myAwesomeVariable = 0;
doSomething( myAwesomeVariable );
Good example:
int my_awesome_variable = 0;
do_something( my_awesome_variable );
* Don't vertically align tokens on consecutive lines.
* If you break up an argument list, align the line to opening brace
* Use 2 space indentation (no tabs)
* Use spaces around operators, except for unary operators, such as `!`.
* Add LICENSE header in new files you create.
* Put vim modeline as the first line of file header
* Use the lower-case for CMake commands
* Do not add trailing whitespace
.. _`submit a pull request`: https://github.com/thewtex/tmux-mem-cpu-load/compare/
.. _Allman: http://en.wikipedia.org/wiki/Indent_style#Allman_style

@ -49,6 +49,8 @@ You'll need to follow the subsequent rules in order to get your code merged:
* Put vim modeline as the first line of file header * Put vim modeline as the first line of file header
* Use the lower-case for CMake commands * Use the lower-case for CMake commands
* Do not add trailing whitespace * Do not add trailing whitespace
You can use this bash script to strip unnecessary whitespaces:
http://git.io/z_GA3A
.. _`submit a pull request`: https://github.com/thewtex/tmux-mem-cpu-load/compare/ .. _`submit a pull request`: https://github.com/thewtex/tmux-mem-cpu-load/compare/
.. _Allman: http://en.wikipedia.org/wiki/Indent_style#Allman_style .. _Allman: http://en.wikipedia.org/wiki/Indent_style#Allman_style

@ -47,7 +47,7 @@ Installation
Dependencies Dependencies
------------ ------------
Currently, Linux and Mac OSX are supported. Currently, Linux, Mac OSX, FreeBSD and OpenBSD are supported.
Building Building
~~~~~~~~ ~~~~~~~~