'Prints the results (i.e. violations) in this file.
Arguments:
options: A list of the following options:
list_files: True to print only file names, and False to print
all violations.
summary_results: A SummaryResults with a summary of the violations.
verbose: True for multiple lines of context, False single line.
out: output file
Side effect:
Updates the passed SummaryResults.'

def print_results(self, options, summary_results, out):

    if options['list_files']:
        if ((self.violations is not None) and (0 < len(self.violations))):
            print(self.full_path, file=out)
    else:
        self.violations.sort(key=(lambda violation: violation.sort_key()))
        for violation in self.violations:
            if (not violation.is_disabled):
                violation.print_results(options, out)
                summary_results.add_violation(violation)
