Title: Discussion: Clarify / standardize behavior for negative message_length_limit (should it require >= 0?) · Issue #1909 · commitizen-tools/commitizen · GitHub
Open Graph Title: Discussion: Clarify / standardize behavior for negative message_length_limit (should it require >= 0?) · Issue #1909 · commitizen-tools/commitizen
X Title: Discussion: Clarify / standardize behavior for negative message_length_limit (should it require >= 0?) · Issue #1909 · commitizen-tools/commitizen
Description: Description I’d like to start a discussion about how message_length_limit should behave when it is set to a negative value. My current thinking is that message_length_limit should be limited to non-negative integers (>= 0), and that nega...
Open Graph Description: Description I’d like to start a discussion about how message_length_limit should behave when it is set to a negative value. My current thinking is that message_length_limit should be limited to non...
X Description: Description I’d like to start a discussion about how message_length_limit should behave when it is set to a negative value. My current thinking is that message_length_limit should be limited to non...
Opengraph URL: https://github.com/commitizen-tools/commitizen/issues/1909
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Discussion: Clarify / standardize behavior for negative message_length_limit (should it require \u003e= 0?)","articleBody":"### Description\n\nI’d like to start a discussion about how `message_length_limit` should behave when it is set to a negative value.\n\nMy current thinking is that `message_length_limit` should be limited to non-negative integers (`\u003e= 0`), and that negative values should be rejected with an error.\n\nTo help explore this direction, I’ve also opened a PR: #1908 .\n\n### Steps to reproduce\n\n- `cz check -l -1 --message \"feat: hello\"`\n- `cz commit -l -1`\n\n### Current behavior\n\nnegative `message_length_limit` equals to no limit\n\n### Desired behavior\n\nI’d like to clarify the intended behavior and, if this matches the expected design, make it consistent:\n\n- `message_length_limit \u003c 0` raises an error.\n- `message_length_limit = 0` disables the length limit.\n- Leaving it unset in the CLI, or explicitly passing `None`, falls back to the config value consistently.\n\nIf maintainers prefer a different policy, I’d be happy to adjust the PR accordingly.\n\n### Screenshots\n\n_No response_\n\n### Environment\n\nCommitizen Version: 4.13.9\nPython Version: 3.14.3 (main, Feb 3 2026, 15:32:20) [Clang 15.0.0 (clang-1500.1.0.2.5)]\nOperating System: Darwin","author":{"url":"https://github.com/ttw225","@type":"Person","name":"ttw225"},"datePublished":"2026-03-20T04:13:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1909/commitizen/issues/1909"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8b4c6bd0-576c-7e91-5579-41208d25bd74 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 81DA:396D8D:4C52E:62A21:6A4EC9BB |
| html-safe-nonce | 756daaed013570649ba3d4f308e5fce7a664e2d373f58b8114bd6863fe24fefc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MURBOjM5NkQ4RDo0QzUyRTo2MkEyMTo2QTRFQzlCQiIsInZpc2l0b3JfaWQiOiI3ODE0MTk0OTIyMzgzMTMzMTE1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9b3c1a2896c6b43bff3f25fcfc7190ced77e08c856ec54b734d999708a0fc6ab |
| hovercard-subject-tag | issue:4105626469 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/commitizen-tools/commitizen/1909/issue_layout |
| twitter:image | https://opengraph.githubassets.com/45a068b70c56a372f6abb34e4f43caf5c921e9bbf1ef820ab6f31e38b5bfd9f7/commitizen-tools/commitizen/issues/1909 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/45a068b70c56a372f6abb34e4f43caf5c921e9bbf1ef820ab6f31e38b5bfd9f7/commitizen-tools/commitizen/issues/1909 |
| og:image:alt | Description I’d like to start a discussion about how message_length_limit should behave when it is set to a negative value. My current thinking is that message_length_limit should be limited to non... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ttw225 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| go-import | github.com/commitizen-tools/commitizen git https://github.com/commitizen-tools/commitizen.git |
| octolytics-dimension-user_id | 62252524 |
| octolytics-dimension-user_login | commitizen-tools |
| octolytics-dimension-repository_id | 106127589 |
| octolytics-dimension-repository_nwo | commitizen-tools/commitizen |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 106127589 |
| octolytics-dimension-repository_network_root_nwo | commitizen-tools/commitizen |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width