Text files in various repositories of ours need to be checked for whitespace, line endings, encoding problems, etc. This code should be centralized into this repository.
Things to check:
- Encoding is UTF-8, no BOM
- Uses Unix line endings (except perhaps specific Windows files like .rc?)
- Does not contain leading tabs (exceptions for some file types which need it)
- Does not contain trailing whitespace
Add any additional checks that would be useful for general files. Additional validators can extend functionality for certain repositories and/or file types.
Potentially useful: https://google-styleguide.googlecode.com/svn/trunk/cpplint/cpplint.py