diff options
author | David Robillard <d@drobilla.net> | 2018-09-23 14:04:28 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-09-23 14:04:28 +0200 |
commit | 569dc8a49d7590e6669e150052ad27faf590ab29 (patch) | |
tree | 184421fed7e32da57c3d29091e55a946d9030442 | |
parent | c498b60ae068aa3dd2304e458280b103a8772efb (diff) | |
download | lv2-569dc8a49d7590e6669e150052ad27faf590ab29.tar.xz |
Improve lint target
-rw-r--r-- | wscript | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -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" |