mctools / ncrystal

NCrystal : a library for thermal neutron transport in crystals and other materials
https://mctools.github.io/ncrystal/
Other
39 stars 18 forks source link

Set up static analysis #32

Open tkittel opened 5 years ago

tkittel commented 5 years ago

Since we are open source we should be able to benefit from free coverity scans:

https://scan.coverity.com/github

Supposedly there is even github/travisCI integration.

tkittel commented 3 years ago

Perhaps a simple solution is to simply run our travis builds with -DCMAKE_CXX_CLANG_TIDY='clang-tidy-10;--export-fixes=-;--header-filter=.*NC.*'.

Of course with appropriate flags (we can consider turning warnings into errors, but only after having reached 0 warnings... which is complicated by the fact that clang-tidy does not understand our RCBase/RCHolder objects and the memory managements in the C-interface.