summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-10-20 09:52:59 -0500
committerDudemanguy <random342@airmail.cc>2023-10-20 15:52:49 +0000
commit5705d819ab075afb47eb0e8c3c75efe46a22d141 (patch)
tree7b9190053911c4c1f93805ccfeab81cfccdbc898 /ci
parent9a40a0977b26b09013811c62aa1a4c68a4685fca (diff)
downloadmpv-5705d819ab075afb47eb0e8c3c75efe46a22d141.tar.bz2
mpv-5705d819ab075afb47eb0e8c3c75efe46a22d141.tar.xz
ci/lint: allow the first word to be all caps
Otherwise acronyms and such would fail the lint, and it doesn't make any sense to enforce it here. Also make sure that the length of the word is greater than 1 to avoid something like "foo: A blah blah" from passing.
Diffstat (limited to 'ci')
-rwxr-xr-xci/lint-commit-msg.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ci/lint-commit-msg.py b/ci/lint-commit-msg.py
index 404621017e..4198ed4feb 100755
--- a/ci/lint-commit-msg.py
+++ b/ci/lint-commit-msg.py
@@ -74,6 +74,9 @@ def subsystem_prefix(body):
def description_lowercase(body):
if re.search(NO_PREFIX_WHITELIST, body[0]):
return True
+ # Allow all caps for acronyms and such
+ if re.search(r":\s[A-Z]{2,}\s", body[0]):
+ return True
return re.search(r":\s+[a-z0-9]", body[0])
@lint_rule("Subject line must not end with a full stop")