Nick Morrott
2015-07-12 22:54:20 UTC
Whilst tidying trailing whitespace across the core libs/utilities last
night I became aware of the variety of different indentation styles
used in the project. I cleaned up the few files with more esoteric 5,
6 and 8 space indents.
Running the Indent Finder tool
(http://www.freehackers.org/Indent_Finder) against the XMLTV repo
(omitting CVS-specific files and test data) gives me the following
stats as I write this:
$ find xmltv-cvs -type f -name * -print | \
grep -Pv 'CVS|blib|/t/data' | sort | \
xargs python indent_finder.py | \
awk -F ' : ' '{print $2}' | sort | uniq -c
9 mixed tab 8 space 2
62 mixed tab 8 space 4
27 space 2
2 space 3
185 space 4
16 tab 4
I'm of the opinion that, "tabs v spaces" arguments aside, above all
they should be used consistently across the project.
Does anyone else agree?
Cheers,
Nick
night I became aware of the variety of different indentation styles
used in the project. I cleaned up the few files with more esoteric 5,
6 and 8 space indents.
Running the Indent Finder tool
(http://www.freehackers.org/Indent_Finder) against the XMLTV repo
(omitting CVS-specific files and test data) gives me the following
stats as I write this:
$ find xmltv-cvs -type f -name * -print | \
grep -Pv 'CVS|blib|/t/data' | sort | \
xargs python indent_finder.py | \
awk -F ' : ' '{print $2}' | sort | uniq -c
9 mixed tab 8 space 2
62 mixed tab 8 space 4
27 space 2
2 space 3
185 space 4
16 tab 4
I'm of the opinion that, "tabs v spaces" arguments aside, above all
they should be used consistently across the project.
Does anyone else agree?
Cheers,
Nick