Title: Add config option for line length warning (`-l/--message-length-limit`) · Issue #1571 · commitizen-tools/commitizen · GitHub
Open Graph Title: Add config option for line length warning (`-l/--message-length-limit`) · Issue #1571 · commitizen-tools/commitizen
X Title: Add config option for line length warning (`-l/--message-length-limit`) · Issue #1571 · commitizen-tools/commitizen
Description: Description In issue #191, it was suggested to be able to add command line arguments to commitizen to ensure the correct line length, implemented in #1076. This was further updated in #1178 to allow the same argument to be used in check ...
Open Graph Description: Description In issue #191, it was suggested to be able to add command line arguments to commitizen to ensure the correct line length, implemented in #1076. This was further updated in #1178 to allo...
X Description: Description In issue #191, it was suggested to be able to add command line arguments to commitizen to ensure the correct line length, implemented in #1076. This was further updated in #1178 to allo...
Opengraph URL: https://github.com/commitizen-tools/commitizen/issues/1571
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add config option for line length warning (`-l/--message-length-limit`)","articleBody":"### Description\n\nIn issue #191, it was suggested to be able to add command line arguments to commitizen to ensure the correct line length, implemented in #1076. This was further updated in #1178 to allow the same argument to be used in `check` in addition to `commit`. \n\nExamples:\n\n cz commit -l/--message-length-limit N\n\nor\n\n cz check -l N -m MESSAGE\n\nHowever, the is not yet support in [config](https://commitizen-tools.github.io/commitizen/config/) or [customisation](https://commitizen-tools.github.io/commitizen/customization/) to add such a default argument without requiring the command line specification.\n\n### Possible Solution\n\nAn additional config option should exist in the configuration file to optionally define a commit line length.\nThis would then be utilised by both commitizen pre-commit [commit-msg, pre-push] hooks and command line invocations on the root directory of a project (i.e. with the relevant pyproject.toml for a python package).\n\n pyproject.toml\n \n [tool.commitizen]\n name = \"cz_customize\"\n \n [tool.commitizen.customize]\n ... \n message_length_limit = 72 # or l=72?\n \nThen allowing the default parameter to propagate as follows:\n\n cz commit\n \u003e\u003e\u003e fails / succeeds depending on message length\n\n cz check -m MESSAGE\n \u003e\u003e\u003e fails / succeeds depending on message length\n\n\n\n### Additional context\n\n_No response_\n\n### Related issues\n\n_No response_","author":{"url":"https://github.com/mattgebert","@type":"Person","name":"mattgebert"},"datePublished":"2025-08-07T03:36:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/1571/commitizen/issues/1571"}
| 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:6699a0f8-459e-23e3-5ad7-afaba05b7bfc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A8E4:47423:2D9544B:3FC0B34:6A4F724C |
| html-safe-nonce | 757523af17eb51921bfd2882a366c3602cd4015879bbd42fb8ed53312fd48fae |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOEU0OjQ3NDIzOjJEOTU0NEI6M0ZDMEIzNDo2QTRGNzI0QyIsInZpc2l0b3JfaWQiOiI1NTY1MzM3ODQ4NDkwNDU1NjI4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1cd3f04571bed13e0818afcadc470730fbcf827dc9d3066a67ab533233125b88 |
| hovercard-subject-tag | issue:3298794371 |
| 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/1571/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fed0b8ec3957603cb124010e6ec49e2430b99e6bd66e147fac6ba22b2255de25/commitizen-tools/commitizen/issues/1571 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fed0b8ec3957603cb124010e6ec49e2430b99e6bd66e147fac6ba22b2255de25/commitizen-tools/commitizen/issues/1571 |
| og:image:alt | Description In issue #191, it was suggested to be able to add command line arguments to commitizen to ensure the correct line length, implemented in #1076. This was further updated in #1178 to allo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mattgebert |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| 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 | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width