Category: github

Static code analysis refers to the technique of approximating the runtime behavior of a program.

Lately, however, the term “Static Code Analysis” is more commonly used to refer to one of the applications of this technique rather than the technique itself — program comprehension — understanding the program and detecting issues in it (anything from syntax errors to type mismatches, performance hogs likely bugs, security loopholes, etc)..

A syntax tree can get quite vast and complex, thus making it is difficult to write code for analyzing it.

Since a lot of code would be duplicated across these checkers, and this post is already so long, let’s first get some boilerplate code in place, which we can later reuse for all examples.

However, getting our code to work on that edge case is nuanced, and is out of scope for this post.

Related Articles