Auto-fix licese header violations in precommit script
Also fixes a violation.
This commit is contained in:
parent
5af7880c39
commit
e757a34e9b
@ -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)
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user