MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / _GetFilesToLint

Function _GetFilesToLint

PRESUBMIT.py:132–146  ·  view source on GitHub ↗
(input_api, lint_config_files, accepted_endings)

Source from the content-addressed store, hash-verified

130
131
132def _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
149def _CheckFormat(input_api, output_api):

Callers 1

CheckDevToolsLintFunction · 0.85

Calls 2

_GetAffectedFilesFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected