[cppcheck]
apt = cppcheck
command = cppcheck -j{njobs} --quiet -f . | grep -vF 'cppcheck: error: could not find or open any of the paths given.'
# TODO: drop the filter when #769757 gets fixed

[deheader]
apt = deheader
match = *.c *.cc *.cxx *.cpp
comment = Check if your C/C++ code contains any unnecessary headers.
command = echo deheader

[include-what-you-use]
apt = iwyu
match =
 *.c *.cc *.cxx *.cpp
 *.h *.hh *.hxx *.hpp
command = include-what-you-use {file}

[flawfinder]
apt = flawfinder
command = flawfinder -Q -c .

[pmccabe]
apt = pmccabe
match = 
 *.c *.cc *.cxx *.cpp
 *.h *.hh *.hxx *.hpp
command = pmccabe {files} | sort -nr

[clang-check]
flags = todo
apt = clang
match =
 *.c *.cc *.cxx *.cpp
 *.h *.hh *.hxx *.hpp
comment =
 Please consider checking your code with clang-check:
 http://clang.llvm.org/extra/clang-modernize.html
command = echo clang-check {files} --

[clang-tidy]
flags = todo
apt = clang-tidy
match =
 *.c *.cc *.cxx *.cpp
 *.h *.hh *.hxx *.hpp
command = echo clang-tidy {files} --

[clang-modernize]
apt = clang-modernize | clang-modernize-3.5
match =
 *.cc *.cxx *.cpp
 *.hh *.hxx *.hpp
comment =
 Please consider modernizing your C++ code with clang-modernize:
 http://clang.llvm.org/extra/clang-modernize.html
command = echo clang-modernize {files}

[m64-m32]
match =
 *.c *.cc *.cxx *.cpp
 *.h *.hh *.hxx *.hpp
comment = You should almost never use -m64 and -m32 when compiling.
command = grep -rE -- '-m64|-m32' .

[cbmc]
flags = todo
apt = cbmc
comment = needs to be a suggestion as it runs during a build

[vera]
flags = todo
comment = https://bitbucket.org/verateam/vera/overview

[nsiqcppstyle]
flags = todo
comment = https://code.google.com/p/nsiqcppstyle/

[cppclean]
flags = todo
comment = https://github.com/myint/cppclean/

# TODO: pscan
# TODO: adlint
# TODO: sparse
# TODO: splint
# TODO: kwstyle
# TODO: frama-c
# TODO: scan-build
# TODO: abi-compliance-checker
# TODO: complexity #781946
# TODO: http://oclint.org/
# TODO: http://saturn.stanford.edu/
# TODO: https://scan.coverity.com/
# TODO: https://github.com/facebook/flint
# TODO: https://github.com/Krazy-collection/krazy
# TODO: https://css.csail.mit.edu/stack/
# TODO: https://github.com/kframework/c-semantics
# TODO: https://code.google.com/p/checkheaders/ https://github.com/cristeab/checkheaders
# TODO: https://github.com/danmar/ublinter
# TODO: https://quickgit.kde.org/?p=clazy.git
# TODO: shell metacharacter injection: g_spawn_command_line* system popen

# vim:ft=dosini
