Add script to check coding styles.
This commit is contained in:
parent
0d8c4dde97
commit
ad708fdfbd
3 changed files with 4015 additions and 1 deletions
21
script/cpplint
Executable file
21
script/cpplint
Executable file
|
@ -0,0 +1,21 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cd "`dirname $0`/.."
|
||||||
|
|
||||||
|
# List all Objective-C headers here, should not cpplint them.
|
||||||
|
OBJC_HEADERS='
|
||||||
|
browser/atom_event_processing_window.h
|
||||||
|
browser/native_window_mac.h'
|
||||||
|
|
||||||
|
FILES=`find app browser common renderer -type f -name '*.h' -or -name '*.cc'`
|
||||||
|
FILTERED_FILES=
|
||||||
|
|
||||||
|
while read file; do
|
||||||
|
if ! echo "$OBJC_HEADERS" | grep "$file" > /dev/null ; then
|
||||||
|
FILTERED_FILES="$FILTERED_FILES $file"
|
||||||
|
fi
|
||||||
|
done <<< "$FILES"
|
||||||
|
|
||||||
|
python ./vendor/cpplint.py \
|
||||||
|
--filter=-build/header_guard,-build/include_what_you_use \
|
||||||
|
$FILTERED_FILES
|
3993
vendor/cpplint.py
vendored
Executable file
3993
vendor/cpplint.py
vendored
Executable file
File diff suppressed because it is too large
Load diff
2
vendor/node
vendored
2
vendor/node
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit 0de88a487108937c80e1184db4ed8b4e7b236dae
|
Subproject commit 15315eb17c8aa0d27efc5a39530949f010085ac1
|
Loading…
Reference in a new issue