heisenbug Heisenbug 2019 SPb (17.05.2019)

Continuous static code analysis

img

We’ll see how to make static analyzers useful in your continuous integration pipeline, including projects that are old and didn’t employ static analysis previously.

Static analyzers are our trusty allies capable of checking code for formatting violations, common bugs, and even spelling and configuration errors. In this talk, we’ll see how to make these analyzers useful in your continuous integration pipeline, including projects that are old and didn’t employ static analysis previously. We’ll discuss limitations of the analysers and their place in the continuous integration process. We’ll explore "ratchet method" of decreasing the number of static analysis findings. Code examples will be in Jenkins, but general principles can be applied to any CI system.