checkNestedFunction

Checks if there are any nested functions used. Using nested functions is often discouraged because it can degrade code readability.

Exemption tag: %@ok<CNSTF>