Auto-fix licese header violations in precommit script

Also fixes a violation.
This commit is contained in:
Evan Hahn 2022-10-17 15:40:54 -05:00 committed by Max Radermacher
parent 5af7880c39
commit e757a34e9b
2 changed files with 5 additions and 2 deletions

View File

@ -355,7 +355,9 @@ if __name__ == "__main__":
if not args.skip_license_header_checks:
try:
subprocess.check_output("Scripts/lint/lint-license-headers", text=True)
subprocess.check_output(
["Scripts/lint/lint-license-headers", "--fix"], text=True
)
except subprocess.CalledProcessError as e:
sys.exit(1)

View File

@ -1,5 +1,6 @@
//
// Copyright (c) 2022 Open Whisper Systems. All rights reserved.
// Copyright 2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
//
import Foundation