(input_api, output_api)
| 307 | |
| 308 | |
| 309 | def CheckL10nStrings(input_api, output_api): |
| 310 | devtools_root = input_api.PresubmitLocalPath() |
| 311 | devtools_front_end = input_api.os_path.join(devtools_root, 'front_end') |
| 312 | script_path = input_api.os_path.join(devtools_root, 'third_party', 'i18n', |
| 313 | 'check-strings.js') |
| 314 | affected_front_end_files = _GetAffectedFiles( |
| 315 | input_api, [devtools_front_end, script_path], [], ['.js', '.ts']) |
| 316 | if len(affected_front_end_files) == 0: |
| 317 | return [] |
| 318 | return _CheckWithNodeScript(input_api, |
| 319 | output_api, |
| 320 | script_path, [devtools_front_end], |
| 321 | message='l10n strings') |
| 322 | |
| 323 | |
| 324 | def CheckForTooLargeFiles(input_api, output_api): |
nothing calls this directly
no test coverage detected