Hi,

as you know, our Ruby style guide prescribes that no tabs be used
for indentation. (A very practical rationale is that GitHub reviews
display tabs at 4 columns instead of the Only Correct Value 8, and
code then looks misaligned.)
https://github.com/SUSE/style-guides/blob/master/Ruby.md#code-layout

To help you with keeping this rule you can use the attached file.
Git commands showing diffs will then highlight initial tabs.

(I am also looking into editor settings, checking other style guide
aspects, and maybe automatic checks for pull requests, but I don't
have anything for general use yet.)
-- 
Martin Vidner, Cloud & Systems Management Team
http://en.opensuse.org/User:Mvidner

Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
# To apply globally, put this to $HOME/.config/git/attributes
# For fine grained control, see
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html

# Enable tab-in-indent in addition to the default WS errors
*               whitespace=trailing-space,space-before-tab,tab-in-indent
# except for makefiles where tabs are required; reset to defaults
Makefile*       !whitespace

# Custom diff hunk headers: @@ -k,l +n,m @@ FUNCTION
*.cc    diff=cpp
*.h     diff=cpp
*.html  diff=html
*.pm    diff=perl
*.py    diff=python
*.rb    diff=ruby

Attachment: signature.asc
Description: Digital signature

Reply via email to