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:
@@ -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
|
||||
==============================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user