[ci] Improve static code analysis
Currently the CI runs cpplint
and reports issues to the gitlab repo (!261 (merged)). There is also a clang-format
standard implemented in the project. These could be unified to both using clang-format
. And/or clang-tidy
can be introduced. And either of those can be integrated into the CMake side of things as well.
@mersi also suggested we check out https://www.sonarsource.com/. It does seem nice, but for the gitlab integrations, I think it costs money and would have to be done at the CERN level. Or it would require some manual implementation, at which point, clang-*
might be sufficient. But let's keep it in mind while designing these improvements.