Spellchecking Code

It would be great to have a good spellchecker that can check code as well as comments.
I know Komodo has a spellchecker that checks comments but not the code itself.
I have been playing around with: aspell
It is a command line GNU program which can spell check words including run-together words and words with underscores.
I’ve put a few PHP source code files through it and apart from a few method names it doesn’t like, it actually gives useful output as a Komodo command.

The reason for having this is that it is quite easy to misspell a variable name or a class name, it works but looks bad if things are badly named.

I might put my Komodo command on GitHub, would anyone else be interested in playing this?
Linux only for now.