Since function name staring with a Capital letter remains an exception (it only applies for factory functions named after their result type), Iād propose to not change the regex, but instead to skip (not evaluate) the rule if, and only if, the function name is identical to the result type name.