Browse Source

remove some filters

StalderT 6 years ago
parent
commit
5ba12bde52
3 changed files with 28 additions and 1 deletions
  1. 16 0
      CPPLINT.cfg
  2. 1 1
      tools/amalgamate.py
  3. 11 0
      tools/travis/travis_linux_script.sh

+ 16 - 0
CPPLINT.cfg

@@ -0,0 +1,16 @@
+set noparent
+filter=-whitespace/line_length
+filter=-readability/casting
+filter=-legal/copyright
+filter=-build/include_subdir
+filter=-readability/todo
+filter=-runtime/casting
+filter=-runtime/int
+filter=-build/include_what_you_use
+filter=-readability/multiline_comment
+filter=-runtime/printf
+filter=-build/include
+filter=-build/header_guard
+filter=-readability/alt_tokens
+filter=-runtime/indentation_namespace
+exclude_files=deps/*

+ 1 - 1
tools/amalgamate.py

@@ -76,7 +76,7 @@ if is_c:
 else:
     file.write(u'''#ifndef %s
 #define %s
-''' % (outname.upper() + u"_H_", outname.upper() + u"_H_") )
+''' % (outname.upper() + u"_H_", outname.upper() + u"_H_"))
 
 for fname in args.inputs:
     with io.open(fname, encoding='utf8', errors='replace') as infile:

+ 11 - 0
tools/travis/travis_linux_script.sh

@@ -18,6 +18,17 @@ if ! [ -z ${LINT+x} ]; then
 	cmake ..
 	make cpplint
 	if [ $? -ne 0 ] ; then exit 1 ; fi
+        cd ..
+        cpplint include/*.h
+	if [ $? -ne 0 ] ; then exit 1 ; fi
+        cpplint plugins/*.c
+	if [ $? -ne 0 ] ; then exit 1 ; fi
+        cpplint plugins/*.h
+	if [ $? -ne 0 ] ; then exit 1 ; fi
+        cpplint examples/*.c
+	if [ $? -ne 0 ] ; then exit 1 ; fi
+        cpplint examples/*.h
+	if [ $? -ne 0 ] ; then exit 1 ; fi
     exit 0
 fi