Programs for static code analysis are associated with the name lint for historical reasons. See http://en.wikipedia.org/wiki/Lint_%28software%29 for discussion of this.
There are tools for various different languages.
CategoryLint