autolint/autolint.py
def __pretty_print(self, results):
        """Print a hierarchy of the languages and linters ran.

        :param results, dict with the results of an execution of __lint.

        :return amount of files with return code != 0

        """

        total_files = 0
        failed_files = 0
        for lang, d1 in results.items():
            print("%s" % lang)
            lang_total_files = 0
            lang_failed_files = 0
            for linter, d2 in d1.items():
                linter_total_files = 0
                linter_failed_files = 0
                print("\t%s" % linter)
                for filename, result in d2.items():
                    linter_total_files += 1
                    if result[0] != 0:
                        linter_failed_files += 1
                        self.print_helper(filename, result[1], result[2])
                    else:
                        print("\t\t%s" % filename)
                if len(d1) > 1:
                    print(("\t%s: Checked %d files; %d with errors") % (
                            linter, linter_total_files, linter_failed_files))
                lang_total_files += linter_total_files
                lang_failed_files += linter_failed_files
            if len(results) > 1:
                print(("%s: Checked %d files; %d with errors") % (
                        lang, lang_total_files, lang_failed_files))
            total_files += lang_total_files
            failed_files += lang_failed_files
        print("Checked %d files, %d with errors" % (total_files,
                                                    failed_files))
        return failed_files
Print a hierarchy of the languages and linters ran.

        :param results, dict with the results of an execution of __lint.

        :return amount of files with return code != 0

        
Print a hierarchy of the languages and linters ran.
:param results, dict with the results of an execution of __lint.

:return amount of files with return code != 0
Print a hierarchy of the languages and linters ran . : param results dict with the results of an execution of __lint . : return amount of files with return code ! = 0
def __pretty_print(self, results):
        total_files = 0
        failed_files = 0
        for lang, d1 in results.items():
            print("%s" % lang)
            lang_total_files = 0
            lang_failed_files = 0
            for linter, d2 in d1.items():
                linter_total_files = 0
                linter_failed_files = 0
                print("\t%s" % linter)
                for filename, result in d2.items():
                    linter_total_files += 1
                    if result[0] != 0:
                        linter_failed_files += 1
                        self.print_helper(filename, result[1], result[2])
                    else:
                        print("\t\t%s" % filename)
                if len(d1) > 1:
                    print(("\t%s: Checked %d files; %d with errors") % (
                            linter, linter_total_files, linter_failed_files))
                lang_total_files += linter_total_files
                lang_failed_files += linter_failed_files
            if len(results) > 1:
                print(("%s: Checked %d files; %d with errors") % (
                        lang, lang_total_files, lang_failed_files))
            total_files += lang_total_files
            failed_files += lang_failed_files
        print("Checked %d files, %d with errors" % (total_files,
                                                    failed_files))
        return failed_files
def __pretty_print ( self , results ) : total_files = 0 failed_files = 0 for lang , d1 in results . items ( ) : print ( "%s" % lang ) lang_total_files = 0 lang_failed_files = 0 for linter , d2 in d1 . items ( ) : linter_total_files = 0 linter_failed_files = 0 print ( "\t%s" % linter ) for filename , result in d2 . items ( ) : linter_total_files += 1 if result [ 0 ] != 0 : linter_failed_files += 1 self . print_helper ( filename , result [ 1 ] , result [ 2 ] ) else : print ( "\t\t%s" % filename ) if len ( d1 ) > 1 : print ( ( "\t%s: Checked %d files; %d with errors" ) % ( linter , linter_total_files , linter_failed_files ) ) lang_total_files += linter_total_files lang_failed_files += linter_failed_files if len ( results ) > 1 : print ( ( "%s: Checked %d files; %d with errors" ) % ( lang , lang_total_files , lang_failed_files ) ) total_files += lang_total_files failed_files += lang_failed_files print ( "Checked %d files, %d with errors" % ( total_files , failed_files ) ) return failed_files
Print a hierarchy of the languages and linters ran.
Print a hierarchy of the languages and linters ran .
"""Print a hierarchy of the languages and linters ran.

        :param results, dict with the results of an execution of __lint.

        :return amount of files with return code != 0

        """
self
results