diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-05-16 02:59:04 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-05-16 01:25:24 +0100 |
commit | 3f08e957d46efc624ea50fd5ef9cbae58d4d85f1 (patch) | |
tree | 85c38d8dba66e1d453d5b7c4f80db7b996d2e693 /Meta/lint-commit.sh | |
parent | 04f26183cb81d9066ec13e0ac8d763ad40d01785 (diff) | |
download | serenity-3f08e957d46efc624ea50fd5ef9cbae58d4d85f1.zip |
Meta: Add a check for periods on the end of titles to commit linter
Diffstat (limited to 'Meta/lint-commit.sh')
-rwxr-xr-x | Meta/lint-commit.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Meta/lint-commit.sh b/Meta/lint-commit.sh index d9360e98cb..38b8e21131 100755 --- a/Meta/lint-commit.sh +++ b/Meta/lint-commit.sh @@ -28,6 +28,10 @@ while read -r line; do error "Missing category in commit title (if this is a fix up of a previous commit, it should be squashed)" fi + if [[ $line_number -eq 1 ]] && [[ "$line" =~ \.$ ]]; then + error "Commit title ends in a period" + fi + if [[ $line_length -gt 72 ]]; then error "Commit message lines are too long (maximum allowed is 72 characters)" fi |