diff options
author | David Robillard <d@drobilla.net> | 2017-12-26 20:15:58 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-12-29 10:56:53 -0500 |
commit | 1a03e92bfb0c232ba836e8259622fb8bf1d5daf1 (patch) | |
tree | 02181e358c0c129b1e8591bfab44246879f16dbd | |
parent | 96c608dfb8e26a36aa6e446c2f392e46b84d87d1 (diff) | |
download | serd-1a03e92bfb0c232ba836e8259622fb8bf1d5daf1.tar.gz serd-1a03e92bfb0c232ba836e8259622fb8bf1d5daf1.tar.bz2 serd-1a03e92bfb0c232ba836e8259622fb8bf1d5daf1.zip |
Use clang-tidy for linting
-rw-r--r-- | wscript | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -174,8 +174,14 @@ def build(bld): def lint(ctx): "checks code for style issues" import subprocess - subprocess.call('cpplint.py --filter=+whitespace/comments,-whitespace/tab,-whitespace/braces,-whitespace/labels,-build/header_guard,-readability/casting,-readability/todo,-build/include src/* serd/*', shell=True) - subprocess.call('clang-tidy -checks="*,-misc-unused-parameters,-readability-else-after-return,-llvm-header-guard,-google-readability-todo,-clang-analyzer-alpha.*" -extra-arg="-std=c99" -extra-arg="-I." -extra-arg="-Ibuild" ./serd/*.h ./src/*.c ./src/*.h', shell=True) + cmd = ("clang-tidy -p=. -header-filter=.* -checks=\"*," + + "-clang-analyzer-alpha.*," + + "-google-readability-todo," + + "-llvm-header-guard," + + "-misc-unused-parameters," + + "-readability-else-after-return\" " + + "../src/*.c") + subprocess.call(cmd, cwd='build', shell=True) def amalgamate(ctx): "builds single-file amalgamated source" |