We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5c4b48 commit 5e5778bCopy full SHA for 5e5778b
1 file changed
commitizen/commands/check.py
@@ -53,6 +53,10 @@ def __init__(self, config: BaseConfig, arguments: CheckArgs, *args: object) -> N
53
if message_length_limit is not None
54
else config.settings["message_length_limit"]
55
)
56
+ if self.message_length_limit < 0:
57
+ raise InvalidCommandArgumentError(
58
+ "message_length_limit must be a non-negative integer"
59
+ )
60
61
# we need to distinguish between None and [], which is a valid value
62
allowed_prefixes = arguments.get("allowed_prefixes")
0 commit comments