예제 #1
0
    def _check_code(self):
        """
        Verifies the file with run_pylint.

        This tool will call the static code checker pylint using the special
        autotest conventions and warn about problems. Some of the problems
        reported might be false positive, but it's allways good to look at them.
        """
        success = True
        for exc in self.check_exceptions:
            if re.search (exc, self.path):
                return success

        path = self._get_checked_filename()

        if run_pylint.check_file(path):
            success = False

        return success
예제 #2
0
    def _check_code(self):
        """
        Verifies the file with run_pylint.

        This tool will call the static code checker pylint using the special
        autotest conventions and warn about problems. Some of the problems
        reported might be false positive, but it's allways good to look at them.
        """
        success = True
        for exc in self.check_exceptions:
            if re.search(exc, self.path):
                return success

        path = self._get_checked_filename()

        if run_pylint.check_file(path):
            success = False

        return success