autolint/autolint.py
def run_linter(self, pretty_print=False, print_all=True):
        """Load the configurations and run the linter.

        :param pretty_print If true prints a hierarchy of languages,
                            linters and files describing the execution. It
                            also summarize the failed files and total files.

        :param print_all If true prints the stdout and stderr for each
                         execution of the linter. It keeps the order each
                         output was printed by the linter.

        :return A tuple of two elemts, the first is 1 if there is at leat one
                linter execution returned a return_code != 0 and 0 otherwise.
                The second element es the complete result dict as returned by
                __lint.
        """

        all_files = self.__get_all_files()
        to_lint_files = self.__remove_ignored_files(all_files)
        classified_files = self.__classify_files(to_lint_files)
        results = self.__lint(classified_files,
                              self.print_all_fx if print_all else None)
        return_code = 0

        if print_all:
            for lang, v in results.items():
                for linter, r in v.items():
                    for filename, result in r.items():
                        if result[0] != 0:
                            return_code = 1

        elif pretty_print:
            return_code = 1 if self.__pretty_print(results) > 0 else 0

        else:
            for v in results.itervalues():
                for r in v.itervalues():
                    for result in r.itervalues():
                        if result[0] != 0:
                            return 1, results

        return return_code, results
Load the configurations and run the linter.

        :param pretty_print If true prints a hierarchy of languages,
                            linters and files describing the execution. It
                            also summarize the failed files and total files.

        :param print_all If true prints the stdout and stderr for each
                         execution of the linter. It keeps the order each
                         output was printed by the linter.

        :return A tuple of two elemts, the first is 1 if there is at leat one
                linter execution returned a return_code != 0 and 0 otherwise.
                The second element es the complete result dict as returned by
                __lint.
        
Load the configurations and run the linter.
:param pretty_print If true prints a hierarchy of languages,
linters and files describing the execution. It
also summarize the failed files and total files.

:param print_all If true prints the stdout and stderr for each
execution of the linter. It keeps the order each
output was printed by the linter.

:return A tuple of two elemts, the first is 1 if there is at leat one
linter execution returned a return_code != 0 and 0 otherwise.
The second element es the complete result dict as returned by
lint.
Load the configurations and run the linter . : param pretty_print If true prints a hierarchy of languages linters and files describing the execution . It also summarize the failed files and total files . : param print_all If true prints the stdout and stderr for each execution of the linter . It keeps the order each output was printed by the linter . : return A tuple of two elemts the first is 1 if there is at leat one linter execution returned a return_code ! = 0 and 0 otherwise . The second element es the complete result dict as returned by lint .
def run_linter(self, pretty_print=False, print_all=True):
        all_files = self.__get_all_files()
        to_lint_files = self.__remove_ignored_files(all_files)
        classified_files = self.__classify_files(to_lint_files)
        results = self.__lint(classified_files,
                              self.print_all_fx if print_all else None)
        return_code = 0
        if print_all:
            for lang, v in results.items():
                for linter, r in v.items():
                    for filename, result in r.items():
                        if result[0] != 0:
                            return_code = 1
        elif pretty_print:
            return_code = 1 if self.__pretty_print(results) > 0 else 0
        else:
            for v in results.itervalues():
                for r in v.itervalues():
                    for result in r.itervalues():
                        if result[0] != 0:
                            return 1, results
        return return_code, results
def run_linter ( self , pretty_print = False , print_all = True ) : all_files = self . __get_all_files ( ) to_lint_files = self . __remove_ignored_files ( all_files ) classified_files = self . __classify_files ( to_lint_files ) results = self . __lint ( classified_files , self . print_all_fx if print_all else None ) return_code = 0 if print_all : for lang , v in results . items ( ) : for linter , r in v . items ( ) : for filename , result in r . items ( ) : if result [ 0 ] != 0 : return_code = 1 elif pretty_print : return_code = 1 if self . __pretty_print ( results ) > 0 else 0 else : for v in results . itervalues ( ) : for r in v . itervalues ( ) : for result in r . itervalues ( ) : if result [ 0 ] != 0 : return 1 , results return return_code , results
Load the configurations and run the linter.
Load the configurations and run the linter .
"""Load the configurations and run the linter.

        :param pretty_print If true prints a hierarchy of languages,
                            linters and files describing the execution. It
                            also summarize the failed files and total files.

        :param print_all If true prints the stdout and stderr for each
                         execution of the linter. It keeps the order each
                         output was printed by the linter.

        :return A tuple of two elemts, the first is 1 if there is at leat one
                linter execution returned a return_code != 0 and 0 otherwise.
                The second element es the complete result dict as returned by
                __lint.
        """
self
pretty_print
print_all