rebol/r3 — pull request #56 by hostilefork (2012-12-31 10:44:37+00:00)
Title: Baby steps toward a pre-commit script, just checks for "pure" tabbed indentation

Developing cross platform in Rebol (possibly using OSes and editors with which one is unfamiliar, and copying and pasting between virtual machines) introduces lots of possibilities for improper tabbing etc. Had it happen to me twice now.

*Detab me once? Shame on you. Detab me twice? Shame on me.*

Given that git actually supports [pre-commit hooks](http://git-scm.com/book/en/Customizing-Git-Git-Hooks), it would be nice to offer one. Or at least a step someone could run manually to dot their Indents and cross their Tabs.

As the journey of 1,000 miles begins with a single step, I started with the simplest: look for lines that indent with something other than pure tabs.

Since no one is running it yet, the existence of this checker does no harm. It points out some cases that exist in [14 files of the current codebase](https://gist.github.com/4418893)...the most extreme in generated files. Obviously it can be crafted to ignore specific files or enforce other policies if there's a good reason not to use tabs in `boot-code.r` etc.

There's tremendous room for improvement and expansion. But the immediate goal is just to get the ball rolling so that we have one of these around so as to keep discussions focused on code, and not formatting.