Revert "Do not require arguments to run run_localization_check.py"
This reverts commit 1d181da138a1c7b77bcf2992638d61b06651b5a5.
Reason for revert: run_localization_check.py breaks PRESUBMIT for any json files. Reverting this as it builds on top of the original CL which introduced run_localization_check.py
Original change's description:
> Do not require arguments to run run_localization_check.py
>
> Also conform to convention for command line argument naming
>
> R=szuend@chromium.org
>
> Change-Id: I4a2288d2b8315d816b338863c3ccf51f44c2ab9d
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1925054
> Commit-Queue: Yang Guo <yangguo@chromium.org>
> Reviewed-by: Simon Zünd <szuend@chromium.org>
TBR=yangguo@chromium.org,szuend@chromium.org
Change-Id: Icbad9da9cf631d1dee0d173415488535bb01e155
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1926495
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index f78de66..e479e68 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -135,7 +135,7 @@
script_path = input_api.os_path.join(devtools_root, 'scripts', 'test', 'run_localization_check.py')
if check_all_files == True:
# Scan all files and fix any errors
- args = ['--autofix', '--all']
+ args = ['--autofix', '--a']
else:
devtools_front_end = input_api.os_path.join(devtools_root, 'front_end')
affected_front_end_files = _getAffectedFiles(input_api, [devtools_front_end], ['D'],