diff options
author | David Robillard <d@drobilla.net> | 2017-12-29 14:54:58 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-12-29 14:55:10 -0500 |
commit | ff5aa9481b91cbe7f4497b2e6608cec4e643289e (patch) | |
tree | a4dd1d27810281c951d016d2d076bb8b920504c3 /wscript | |
parent | c307bd9d03c9e11d1012c3fef8aaca4cc9ddc9a2 (diff) | |
download | suil-ff5aa9481b91cbe7f4497b2e6608cec4e643289e.tar.gz suil-ff5aa9481b91cbe7f4497b2e6608cec4e643289e.tar.bz2 suil-ff5aa9481b91cbe7f4497b2e6608cec4e643289e.zip |
Use clang-tidy for linting
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -385,7 +385,22 @@ def build(bld): bld.add_post_fun(lambda ctx: autowaf.make_simple_dox(APPNAME)) def lint(ctx): - subprocess.call('cpplint.py --filter=-whitespace,+whitespace/comments,-build/header_guard,-readability/casting,-readability/todo src/* suil/*', shell=True) + "checks code for style issues" + import subprocess + cmd = ("clang-tidy -p=. -header-filter=suil/ -checks=\"*," + + "-clang-analyzer-alpha.*," + + "-cppcoreguidelines-*," + + "-google-readability-todo," + + "-llvm-header-guard," + + "-llvm-include-order," + + "-misc-unused-parameters," + + "-misc-unused-parameters," + + "-modernize-*," + + "-readability-else-after-return," + + "-readability-implicit-bool-cast\" " + + "$(find .. -name '*.c' -or -name '*.cpp' -or -name '*.mm')") + print cmd + subprocess.call(cmd, cwd='build', shell=True) def release(ctx): autowaf.release(APPNAME.title(), VERSION) |