kmod-project / kmod

kmod - Linux kernel module handling
GNU Lesser General Public License v2.1
50 stars 39 forks source link

Setup static analysis in CI #87

Open evelikov opened 3 months ago

evelikov commented 3 months ago

While the project has been around for decades, it would be great to run some static analsys tools on both existing code and new changes.

Focus here is CI for incoming changes. If a specific tool does not support git diff range, or filtering of files, a general sweep might be needed prior to adding to the CI.

Some tools off the top of my head:

evelikov commented 2 months ago

CodeQL PR https://github.com/kmod-project/kmod/pull/132

evelikov commented 2 months ago

PVS prep https://github.com/kmod-project/kmod/pull/133 - we need to add link in README before they grant us free license. Fair deal IMHO.

evelikov commented 2 months ago

@lucasdemarchi just sent out *a request to add me as (co)maintainer on https://scan.coverity.com/projects/kmod in order to set things up. Alternatively feel free to give it a go as you have time.

evelikov commented 2 weeks ago

Based on https://github.com/kmod-project/kmod/pull/233#issuecomment-2466764443 the clang-tidy/clang-analyze unix.Malloc should probably be disabled.