Skip inspection if the function declaration is inside a type declaration
Merge pull request #638 from dlsniper/fix-437

Skip inspection if the function declaration is inside a type declaration (fixes #437)