Add cpplint, lint script

This commit is contained in:
Max Brunsfeld 2014-03-09 21:37:03 -07:00
parent ac46bdcec6
commit c0add4d017
3 changed files with 4761 additions and 2 deletions

4753
externals/cpplint.py vendored Executable file

File diff suppressed because it is too large Load diff

6
script/lint.sh Executable file
View file

@ -0,0 +1,6 @@
#!/usr/bin/env bash
find src -type f | xargs externals/cpplint.py \
--root=src \
--filter=-whitespace,-readability/namespace,-legal/copyright \
2>&1

View file

@ -6,8 +6,8 @@
'type': 'static_library',
'include_dirs': [
'include',
'src/compiler',
'src/runtime',
'src',
'src',
],
'sources': [
'<!@(find include src -name "*.h" -or -name "*.cpp" -or -name "*.c")',