'Checks for violations in a Mako template.
Arguments:
mako_template: The contents of the Mako template.
results: A file results objects to which violations will be added.'

def _check_mako_file_is_safe(self, mako_template, results):

    if self._is_django_template(mako_template):
        return
    has_page_default = self._has_page_default(mako_template, results)
    self._check_mako_expressions(mako_template, has_page_default, results)
    self._check_mako_python_blocks(mako_template, has_page_default, results)
    results.prepare_results(mako_template, line_comment_delim=self.LINE_COMMENT_DELIM)
