From 947a4646e393a280221fe29d66f5887320a2dc8f Mon Sep 17 00:00:00 2001 From: mfenjiro <mohamed.fenjiro@savoirfairelinux.com> Date: Fri, 1 Mar 2019 17:20:20 -0500 Subject: [PATCH] SonarQube: integration of config files for static-analysis/linter This will improve code quality and detect possible bugs. Please note it is only for daemon and linux build at the moment. Change-Id: Ib91c188ed087c94c361ff585b69629cf2ffa755f --- .clang-tidy | 1 + sonar-project.properties | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 .clang-tidy create mode 100644 sonar-project.properties diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 0000000000..31d6642c3e --- /dev/null +++ b/.clang-tidy @@ -0,0 +1 @@ +Checks: '-*,clang-diagnostic-*,performance-*,bugprone-*,llvm-*,clang-analyzer-*,misc-*,-llvm-namespace-comment,-misc-unused-parameters,-misc-non-private-member-variables-in-classes,-llvm-header-guard,-llvm-include-order,-bugprone-suspicious-string-compare,modernize-use-override' diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000000..4786b2a500 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,11 @@ +sonar.analysis.mode=preview #change this value to 'publish' if you want to make the resluts public +sonar.projectKey=jami:daemon +sonar.projectName=jami-daemon +sonar.projectVersion=1.0 +sonar.language=c++ +sonar.sources=src/, test/ +sonar.cxx.includeDirectories=contrib/x86_64-linux-gnu/include/ +sonar.projectBaseDir=. +sonar.sourceEncoding=UTF-8 +sonar.cxx.clangtidy.reportPath=clang-tidy-report.txt +sonar.report.export.path=sonar-report.json -- GitLab