diff options
author | David Robillard <d@drobilla.net> | 2012-05-13 19:21:44 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-05-13 19:21:44 +0000 |
commit | ae250db884dba00df5cca72599b44333cb11e8ac (patch) | |
tree | 36080ce6891c832a9d2cad72ef7391e2f32ea7c5 /wscript | |
parent | ea09cab085bcdf91f8e47195a9997a36a305c471 (diff) | |
download | raul-ae250db884dba00df5cca72599b44333cb11e8ac.tar.gz raul-ae250db884dba00df5cca72599b44333cb11e8ac.tar.bz2 raul-ae250db884dba00df5cca72599b44333cb11e8ac.zip |
Lint.
git-svn-id: http://svn.drobilla.net/lad/trunk/raul@4388 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1,5 +1,6 @@ #!/usr/bin/env python import os +import subprocess from waflib.extras import autowaf as autowaf import waflib.Options as Options @@ -189,3 +190,6 @@ def test(ctx): autowaf.pre_test(ctx, APPNAME) autowaf.run_tests(ctx, APPNAME, tests.split(), dirs=['./src','./test']) autowaf.post_test(ctx, APPNAME) + +def lint(ctx): + subprocess.call('cpplint.py --filter=-whitespace/comments,-whitespace/tab,-whitespace/braces,-whitespace/labels,-build/header_guard,-readability/casting,-readability/todo,-build/namespaces,-whitespace/line_length,-runtime/rtti,-runtime/references,-whitespace/blank_line,-runtime/sizeof,-readability/streams,-whitespace/operators,-whitespace/parens,-build/include,-whitespace/comma,-whitespace/newline `find -name *.cpp -or -name *.hpp`', shell=True) |