Add cpplint, lint script
This commit is contained in:
parent
ac46bdcec6
commit
c0add4d017
3 changed files with 4761 additions and 2 deletions
4753
externals/cpplint.py
vendored
Executable file
4753
externals/cpplint.py
vendored
Executable file
File diff suppressed because it is too large
Load diff
6
script/lint.sh
Executable file
6
script/lint.sh
Executable 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
|
||||
|
|
@ -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")',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue