-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a new CI test to make sure we use tabs and not spaces. Fixes #2050 #2105
Conversation
07d6c3b
to
714cf06
Compare
P.S. I know @skurfer was against using 'custom' scripts originally, but maybe I can persuade him here... ;-) There's definitely scope for us to expand this out in the future - adding in more scripts and stuff, and it's not exactly 'difficult' to remember (although maybe we should have a directory for travis stuff kept separate). |
God, I feel like the pesky guy ;-). I'm not too fond of dot-hiding the script, could it be moved under |
...probably a good idea :-) |
Man, you guys are really going ahead with this tab stuff, eh?
|
No reason except for sloppy git skills. Fixed
Cool
Personally I'm still pro spaces, but since the QS codebase is primarily tabs as Etienne's discovered, I thought it was best we go down that route
Hahaha, well that's just hilarious! Maybe we need to decide what 'coding style' we have for ruby though... what if we want to use spaces? ;-) |
Better. Were the tests not getting called via |
I basically copied the exact same command that Travis was calling before I made these changes. |
...I've also switched check_indent to use tabs...! |
Can this be merged? Every day that passes, we run the risk of ruining our code with spaces.. ;-) |
Add a new CI test to make sure we use tabs and not spaces. Fixes #2050
So, based on Etienne's recent PR on tabs/spaces, and after watching this video where a GitHub guy was saying they're now using CI for much more than just tests (CSS validation etc. - watch the video!) I thought it would be interesting if we did the same.
I've butchered Etienne's gist ruby script (and probably written very bad ruby code) and have attempted to write a script that will check all newly added lines in .m/.h files and check to make sure they start with tabs and not spaces