Programs for static code analysis are associated with the name lint for historical reasons. See http://en.wikipedia.org/wiki/Lint_(software) for discussion of this.
There are tools for various different languages.
- CeeLanguage
- Clang (CeeLanguageFamilyFrontEnd)
- Splint (http://www.splint.org/)
- more items to come
- CeePlusPlus
- Clang (CeeLanguageFamilyFrontEnd)
- Cppcheck (http://cppcheck.sourceforge.net/)
- more items to come
- FortranLanguage
- Ftnchek (http://www.dsm.fordham.edu/~ftnchek/) not updated since 2005
- JavaLanguage
- PythonLanguage
- PhpLanguage
- (command line -l switch)
- PhpDepend
- PhpMd
- PhpCodeSniffer
- Other