Right codestyle flow for your ruby app
I know, I know, someone might be skeptical about codestyle.
But beautifully formatted code is more easy to read and maintain.
It creates the right mood. So it's matter of quality.
And it's automated nowadays with rubocop!
1. Prepare config which suits your project or just use the one from community, f.e:
https://github.com/thoughtbot/guides/blob/master/style/ruby/.rubocop.yml
2. Run rubocop against the added/changed diff.git diff-tree -r --no-commit-id --name-only head origin/master | xargs rubocop -a
3. Double check the result. Fat models files have issues sometimes.
Profit!
PS: You can also use linter for your cucumber features written in gherkin, f.e. for Sublime Text:
https://github.com/waynemoore/sublime-gherkin-formatter