Refactored LintFunctionDef to return a case class instead of a tuple. For easier usage