'Checks if violation line is commented out.
Arguments:
violation: The violation to check
line_comment_delim: A string representing the start of a line
comment. For example "##" for Mako and "//" for JavaScript.
Returns:
True if the first line of the violation is actually commented out,
False otherwise.'

def _is_commented(self, violation, line_comment_delim):

    if ('parse' in violation.rule.rule_id):
        return False
    else:
        return violation.first_line().lstrip().startswith(line_comment_delim)
