summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-12-29 15:23:37 -0500
committerDavid Robillard <d@drobilla.net>2017-12-29 15:23:37 -0500
commit29ad2127d35e347decd92545c4884d5a41f286d0 (patch)
treef492c41405bf6a125aa1edd47afb2fb81f7db90d
parent282a89fa770a612d09cf499ece72f99b35d3e84a (diff)
downloadingen-29ad2127d35e347decd92545c4884d5a41f286d0.tar.gz
ingen-29ad2127d35e347decd92545c4884d5a41f286d0.tar.bz2
ingen-29ad2127d35e347decd92545c4884d5a41f286d0.zip
Use clang-tidy for linting
-rw-r--r--wscript19
1 files changed, 18 insertions, 1 deletions
diff --git a/wscript b/wscript
index feee53bb..c948f2d5 100644
--- a/wscript
+++ b/wscript
@@ -292,7 +292,24 @@ def build(bld):
bld.add_post_fun(autowaf.run_ldconfig)
def lint(ctx):
- subprocess.call('cpplint.py --filter=-whitespace/comments,-whitespace/tab,-whitespace/braces,-whitespace/labels,-build/header_guard,-readability/casting,-readability/todo,-build/namespaces,-whitespace/line_length,-runtime/rtti,-runtime/references,-whitespace/blank_line,-runtime/sizeof,-readability/streams,-whitespace/operators,-whitespace/parens,-build/include,-build/storage_class `find -name *.cpp -or -name *.hpp`', shell=True)
+ "checks code for style issues"
+ import subprocess
+ cmd = ("clang-tidy -p=. -header-filter=ingen/ -checks=\"*," +
+ "-clang-analyzer-alpha.*," +
+ "-cppcoreguidelines-*," +
+ "-cppcoreguidelines-pro-type-union-access," +
+ "-google-build-using-namespace," +
+ "-google-readability-casting," +
+ "-google-readability-todo," +
+ "-llvm-header-guard," +
+ "-llvm-include-order," +
+ "-llvm-namespace-comment," +
+ "-misc-unused-parameters," +
+ "-readability-else-after-return," +
+ "-readability-implicit-bool-cast," +
+ "-readability-named-parameter\" " +
+ "$(find .. -name '*.cpp')")
+ subprocess.call(cmd, cwd='build', shell=True)
def upload_docs(ctx):
import shutil