Skip to content

Commit 572635c

Browse files
committed
chore(commitlint): tell editors commit line lengths are 72 characters
The repository obeys an 100 character soft limit for source lines. However, commit messages generally have lines shorter than 72 characters to make gerrit print them without wrapping. Annoyingly, the editorconfig can't express this and the 100 character limit applies to commit messages, requiring manual formatting. Luckily, when writing commit messages the file `.git/COMMIT_EDITMSG` is open. So we can set its line length to be 72 characters. Change-Id: Id96dcab8ce500ee965e53dd53a51c6761811440e Signed-off-by: Boyan Karatotev <[email protected]>
1 parent 742d0e6 commit 572635c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.editorconfig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2017-2020, Arm Limited and Contributors. All rights reserved.
2+
# Copyright (c) 2017-2024, Arm Limited and Contributors. All rights reserved.
33
#
44
# SPDX-License-Identifier: BSD-3-Clause
55
#
@@ -70,3 +70,6 @@ indent_style = space
7070
# [PEP8] Maximum Line Length
7171
# "Limit all lines to a maximum of 79 characters."
7272
max_line_length = 79
73+
74+
[.git/COMMIT_EDITMSG]
75+
max_line_length = 72

0 commit comments

Comments
 (0)