summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-12-29 14:54:58 -0500
committerDavid Robillard <d@drobilla.net>2017-12-29 14:55:10 -0500
commitff5aa9481b91cbe7f4497b2e6608cec4e643289e (patch)
treea4dd1d27810281c951d016d2d076bb8b920504c3
parentc307bd9d03c9e11d1012c3fef8aaca4cc9ddc9a2 (diff)
downloadsuil-ff5aa9481b91cbe7f4497b2e6608cec4e643289e.tar.gz
suil-ff5aa9481b91cbe7f4497b2e6608cec4e643289e.tar.bz2
suil-ff5aa9481b91cbe7f4497b2e6608cec4e643289e.zip
Use clang-tidy for linting
-rw-r--r--wscript17
1 files changed, 16 insertions, 1 deletions
diff --git a/wscript b/wscript
index ea785f3..b1d12ec 100644
--- a/wscript
+++ b/wscript
@@ -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)