summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gclient5
-rw-r--r--.gitignore1
-rwxr-xr-xtools/lint.sh6
3 files changed, 11 insertions, 1 deletions
diff --git a/.gclient b/.gclient
index ec0dd52e5..5943d3d57 100644
--- a/.gclient
+++ b/.gclient
@@ -32,6 +32,11 @@ solutions = [{
'third_party/zlib'
}, {
'url':
+ 'https://github.com/cpplint/cpplint.git@a33992f68f36fcaa6d0f531a25012a4c474d3542',
+ 'name':
+ 'third_party/cpplint'
+}, {
+ 'url':
'https://github.com/rust-lang/libc.git@8a85d662b90c14d458bc4ae9521a05564e20d7ae',
'name':
'third_party/rust_crates/libc'
diff --git a/.gitignore b/.gitignore
index 3e495ea25..12cf21c76 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,6 +2,7 @@
node_modules
/v8/
/tools/protoc_wrapper/
+/third_party/cpplint/
/third_party/protobuf/
/third_party/zlib/
/third_party/rust_crates/libc/
diff --git a/tools/lint.sh b/tools/lint.sh
index c14cfa50d..5822a1cb6 100755
--- a/tools/lint.sh
+++ b/tools/lint.sh
@@ -1,7 +1,11 @@
#!/bin/sh
+# TODO(ry) Rewrite this script in python for portability to Windows.
+# TODO(ry) Call tslint here too.
set -e
cd `dirname "$0"`/..
-cpplint --filter=-build/include_subdir --repository=src \
+./third_party/cpplint/cpplint.py \
+ --filter=-build/include_subdir \
+ --repository=src \
src/*.cc \
src/*.h \
src/include/*.h