Adds function to count tab characters in files to run_test.sh.

In case you're frustrated by mixed use of tab characters and
spaces for indentation, this function finds tab characters in
all the Python, CSS, Javascript and HTML files in the project,
and lists out any offending files that contain tabs.

Returns proper exit codes in case we someday want to gate on
this check.

Change-Id: I70195e9d00368a5d177cd3792921028e0bcd9b53
This commit is contained in:
Gabriel Hurley
2011-11-14 23:46:30 -08:00
parent e9b06ca773
commit 7cd53c2506
2 changed files with 35 additions and 0 deletions

View File

@@ -77,6 +77,16 @@ For more detailed code analysis you can run::
The output will be saved in ``./pylint.txt``.
Tab Characters
--------------
For those who dislike having a mix of tab characters and spaces for indentation
there's a command to check for that in Python, CSS, JavaScript and HTML files::
./run_tests.sh --tabs
This will output a total "tab count" and a list of the offending files.
Running the development server
==============================