(input_api, lint_config_files, accepted_endings)
| 130 | |
| 131 | |
| 132 | def _GetFilesToLint(input_api, lint_config_files, accepted_endings): |
| 133 | run_full_check = False |
| 134 | files_to_lint = [] |
| 135 | |
| 136 | # We are changing the lint configuration; run the full check. |
| 137 | if len(lint_config_files) != 0: |
| 138 | run_full_check = True |
| 139 | else: |
| 140 | root_dir = input_api.os_path.join(input_api.PresubmitLocalPath()) |
| 141 | # Only run the linter on files that are relevant, to save PRESUBMIT time. |
| 142 | files_to_lint = _GetAffectedFiles(input_api, root_dir, ['D'], |
| 143 | accepted_endings) |
| 144 | |
| 145 | should_bail_out = len(files_to_lint) == 0 and not run_full_check |
| 146 | return should_bail_out, files_to_lint |
| 147 | |
| 148 | |
| 149 | def _CheckFormat(input_api, output_api): |
no test coverage detected