OLD | NEW |
1 # Copyright (C) 2009 Google Inc. All rights reserved. | 1 # Copyright (C) 2009 Google Inc. All rights reserved. |
2 # Copyright (C) 2010 Chris Jerdonek (chris.jerdonek@gmail.com) | 2 # Copyright (C) 2010 Chris Jerdonek (chris.jerdonek@gmail.com) |
3 # Copyright (C) 2010 ProFUSION embedded systems | 3 # Copyright (C) 2010 ProFUSION embedded systems |
4 # | 4 # |
5 # Redistribution and use in source and binary forms, with or without | 5 # Redistribution and use in source and binary forms, with or without |
6 # modification, are permitted provided that the following conditions are | 6 # modification, are permitted provided that the following conditions are |
7 # met: | 7 # met: |
8 # | 8 # |
9 # * Redistributions of source code must retain the above copyright | 9 # * Redistributions of source code must retain the above copyright |
10 # notice, this list of conditions and the following disclaimer. | 10 # notice, this list of conditions and the following disclaimer. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 from checkers.png import PNGChecker | 42 from checkers.png import PNGChecker |
43 from checkers.python import PythonChecker | 43 from checkers.python import PythonChecker |
44 from checkers.test_expectations import TestExpectationsChecker | 44 from checkers.test_expectations import TestExpectationsChecker |
45 from checkers.text import TextChecker | 45 from checkers.text import TextChecker |
46 from checkers.xcodeproj import XcodeProjectFileChecker | 46 from checkers.xcodeproj import XcodeProjectFileChecker |
47 from checkers.xml import XMLChecker | 47 from checkers.xml import XMLChecker |
48 from error_handlers import DefaultStyleErrorHandler | 48 from error_handlers import DefaultStyleErrorHandler |
49 from filter import FilterConfiguration | 49 from filter import FilterConfiguration |
50 from optparser import ArgumentParser | 50 from optparser import ArgumentParser |
51 from optparser import DefaultCommandOptionValues | 51 from optparser import DefaultCommandOptionValues |
52 from webkitpy.common.system.logutils import configure_logging as _configure_logg
ing | 52 from webkitpy.common.system.log_utils import configure_logging as _configure_log
ging |
53 | 53 |
54 | 54 |
55 _log = logging.getLogger(__name__) | 55 _log = logging.getLogger(__name__) |
56 | 56 |
57 | 57 |
58 # These are default option values for the command-line option parser. | 58 # These are default option values for the command-line option parser. |
59 _DEFAULT_MIN_CONFIDENCE = 1 | 59 _DEFAULT_MIN_CONFIDENCE = 1 |
60 _DEFAULT_OUTPUT_FORMAT = 'emacs' | 60 _DEFAULT_OUTPUT_FORMAT = 'emacs' |
61 | 61 |
62 | 62 |
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
719 checker = self._dispatcher.dispatch(file_path, | 719 checker = self._dispatcher.dispatch(file_path, |
720 style_error_handler, | 720 style_error_handler, |
721 min_confidence) | 721 min_confidence) |
722 | 722 |
723 if checker is None: | 723 if checker is None: |
724 raise AssertionError("File should not be checked: '%s'" % file_path) | 724 raise AssertionError("File should not be checked: '%s'" % file_path) |
725 | 725 |
726 _log.debug("Using class: " + checker.__class__.__name__) | 726 _log.debug("Using class: " + checker.__class__.__name__) |
727 | 727 |
728 checker.check(lines) | 728 checker.check(lines) |
OLD | NEW |