Re-add swiftlint --fix invocation

This commit is contained in:
Michelle Linington 2021-10-12 11:45:36 -07:00
parent fa190b88cd
commit 6028212361

View File

@ -319,6 +319,11 @@ def process(filepath):
env_copy = os.environ.copy()
env_copy["SCRIPT_INPUT_FILE_COUNT"] = "1"
env_copy["SCRIPT_INPUT_FILE_0"] = '%s' % ( short_filepath, )
try:
lint_output = subprocess.check_output(['swiftlint', '--fix', '--use-script-input-files'], env=env_copy)
except subprocess.CalledProcessError, e:
lint_output = e.output
print lint_output
try:
lint_output = subprocess.check_output(['swiftlint', 'lint', '--use-script-input-files'], env=env_copy)
except subprocess.CalledProcessError, e: