diff options
author | David Robillard <d@drobilla.net> | 2017-12-29 15:07:13 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-12-29 15:07:13 -0500 |
commit | 61d8766889d5cb2eb84b04079ead64a00719ff4c (patch) | |
tree | 1989ddf2d8c76e2b12cde2ba73133e5f463c6006 | |
parent | 6179eccb4d587523141b2afc330d31f47bdc79ef (diff) | |
download | jalv-61d8766889d5cb2eb84b04079ead64a00719ff4c.tar.gz jalv-61d8766889d5cb2eb84b04079ead64a00719ff4c.tar.bz2 jalv-61d8766889d5cb2eb84b04079ead64a00719ff4c.zip |
Use clang-tidy for linting
-rw-r--r-- | wscript | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -251,7 +251,17 @@ def upload_docs(ctx): os.system('rsync -avz --delete -e ssh build/%s.html drobilla@drobilla.net:~/drobilla.net/man/' % page) def lint(ctx): - subprocess.call('cpplint.py --filter=+whitespace/comments,-whitespace/tab,-whitespace/braces,-whitespace/labels,-build/header_guard,-readability/casting,-readability/todo,-build/include,-runtime/sizeof src/* jalv/*', shell=True) + "checks code for style issues" + import subprocess + cmd = ("clang-tidy -p=. -header-filter=src/ -checks=\"*," + + "-clang-analyzer-alpha.*," + + "-google-readability-todo," + + "-llvm-header-guard," + + "-llvm-include-order," + + "-misc-unused-parameters," + + "-readability-else-after-return\" " + + "$(find .. -name '*.c')") + subprocess.call(cmd, cwd='build', shell=True) def posts(ctx): path = str(ctx.path.abspath()) |