Vscode: Ability to configure long commit warning length

Created on 19 Jan 2017  路  11Comments  路  Source: microsoft/vscode

It would be nice to configure how long a commit message is before it displays the warning. Some repos I work on allow a 75 char line length, while others allow 100. I know we can enable/disable via git.enableLongCommitWarning config. Would be nice to add one more config for length.

  • VSCode Version: 1.8.1
  • OS Version: macOS Sierra

Steps to Reproduce:

  1. Enter a commit message longer than 50 characters.
  2. Observe warning.
feature-request git verification-needed verified

Most helpful comment

Starting next release, you can control this with git.inputValidationLength.

All 11 comments

GitHub shows the first 70 characters and GitLab shows the first 80. Would be nice to have this configurable so users can work to those limits.

I was just about to post this as a request.

I think that if the warning only shows a character count instead of the remaining characters there is no needs to configure the characters warning limit. It could just show the text length number.

VS Code _(only write 72 characters)_

code_2018-06-26_15-24-02

Atom _(write the description to infinite length)_

2018-06-26_15-24-53

@mittalyashu How is that related to this issue?

Moreover, you can write commit messages longer than 72 characters. If you don't want that warning, there's a configuration option to disable it.

Moreover, you can write commit messages longer than 72 characters. If you don't want that warning, there's a configuration option to disable it.

@pradyunsg, how to do it?

// Controls when to show commit message input validation.
"git.inputValidation": "warn"

It can take the values always, warn, off. To disable it, use off.

Starting next release, you can control this with git.inputValidationLength.

@joaomoreno Awesome! Thanks for this!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lukehoban picture lukehoban  路  3Comments

trstringer picture trstringer  路  3Comments

ryan-wong picture ryan-wong  路  3Comments

chrisdias picture chrisdias  路  3Comments

vsccarl picture vsccarl  路  3Comments