-
-
Notifications
You must be signed in to change notification settings - Fork 217
Open
Labels
Description
I don't know the "right" way to do this, but some kind folks in the #gentoo-dev-help channel on libera irc helped me discover scan-build
Min test case for use
scan-build cmake ..
scan-build make -j$(nproc)
This will build the code while using a static code analysis tool to report errors. It seems to successfully find bugs like the ones found at runtime with #780
It also makes a cool html report at the end. I don't know how to do github actions well, but this would be an excellent way to add some automated testing. This might be a good start to work on that https://github.com/marketplace/actions/run-cmake