Flutter Engine
The Flutter Engine
|
Protected Member Functions | |
_FindNewViolationsOfRule (self, callable_rule, input_api, source_file_filter=None, error_formatter=_ReportErrorFileAndLine) | |
Definition at line 21 of file PRESUBMIT_test_mocks.py.
|
protected |
Find all newly introduced violations of a per-line rule (a callable). Arguments: callable_rule: a callable taking a file extension and line of input and returning True if the rule is satisfied and False if there was a problem. input_api: object to enumerate the affected files. source_file_filter: a filter to be passed to the input api. error_formatter: a callable taking (filename, line_number, line) and returning a formatted error string. Returns: A list of the newly-introduced violations reported by the rule.
Definition at line 22 of file PRESUBMIT_test_mocks.py.