aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-09-23 14:04:28 +0200
committerDavid Robillard <d@drobilla.net>2018-09-23 14:04:28 +0200
commit569dc8a49d7590e6669e150052ad27faf590ab29 (patch)
tree184421fed7e32da57c3d29091e55a946d9030442 /wscript
parentc498b60ae068aa3dd2304e458280b103a8772efb (diff)
downloadlv2-569dc8a49d7590e6669e150052ad27faf590ab29.tar.xz
Improve lint target
Diffstat (limited to 'wscript')
-rw-r--r--wscript17
1 files changed, 15 insertions, 2 deletions
diff --git a/wscript b/wscript
index 97b87b5..cf941a6 100644
--- a/wscript
+++ b/wscript
@@ -410,8 +410,21 @@ def build(bld):
bld.recurse('plugins')
def lint(ctx):
- for i in ctx.path.ant_glob('lv2/**/*.h'):
- subprocess.call('cpplint.py --filter=+whitespace/comments,-whitespace/tab,-whitespace/braces,-whitespace/labels,-build/header_guard,-readability/casting,-build/include,-runtime/sizeof ' + i.abspath(), shell=True)
+ "checks code for style issues"
+ import subprocess
+
+ subprocess.call("flake8 --ignore E203,E221,W503,W504,E302,E305,E251,E241,E722 "
+ "wscript lv2specgen/lv2docgen.py lv2specgen/lv2specgen.py "
+ "plugins/literasc.py",
+ shell=True)
+
+ cmd = ("clang-tidy -p=. -header-filter=.* -checks=\"*," +
+ "-hicpp-signed-bitwise," +
+ "-llvm-header-guard," +
+ "-misc-unused-parameters," +
+ "-readability-else-after-return\" " +
+ "build-test.c")
+ subprocess.call(cmd, cwd='build', shell=True)
def test(ctx):
"runs unit tests"