aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-12-26 20:15:58 -0500
committerDavid Robillard <d@drobilla.net>2017-12-29 10:56:53 -0500
commit1a03e92bfb0c232ba836e8259622fb8bf1d5daf1 (patch)
tree02181e358c0c129b1e8591bfab44246879f16dbd /wscript
parent96c608dfb8e26a36aa6e446c2f392e46b84d87d1 (diff)
downloadserd-1a03e92bfb0c232ba836e8259622fb8bf1d5daf1.tar.gz
serd-1a03e92bfb0c232ba836e8259622fb8bf1d5daf1.tar.bz2
serd-1a03e92bfb0c232ba836e8259622fb8bf1d5daf1.zip
Use clang-tidy for linting
Diffstat (limited to 'wscript')
-rw-r--r--wscript10
1 files changed, 8 insertions, 2 deletions
diff --git a/wscript b/wscript
index 574446c0..4adfe4aa 100644
--- a/wscript
+++ b/wscript
@@ -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"