(input_api,
output_api,
script_path,
script_arguments=None,
allow_typescript=False,
message=None)
| 106 | |
| 107 | |
| 108 | def _CheckWithNodeScript(input_api, |
| 109 | output_api, |
| 110 | script_path, |
| 111 | script_arguments=None, |
| 112 | allow_typescript=False, |
| 113 | message=None): |
| 114 | original_sys_path = sys.path |
| 115 | try: |
| 116 | sys.path = sys.path + [ |
| 117 | input_api.os_path.join(input_api.PresubmitLocalPath(), 'scripts') |
| 118 | ] |
| 119 | import devtools_paths |
| 120 | finally: |
| 121 | sys.path = original_sys_path |
| 122 | |
| 123 | process = [devtools_paths.node_path(), script_path] |
| 124 | |
| 125 | return _ExecuteSubProcess(input_api, |
| 126 | output_api, |
| 127 | process, |
| 128 | script_arguments=script_arguments, |
| 129 | message=message) |
| 130 | |
| 131 | |
| 132 | def _GetFilesToLint(input_api, lint_config_files, accepted_endings): |
no test coverage detected