commitlint icon indicating copy to clipboard operation
commitlint copied to clipboard

subject must not be sentence-case, start-case, pascal-case, upper-case [subject-case]

Open rawbin- opened this issue 6 years ago • 9 comments

Expected Behavior

check passed commit msg: feat: Ocr 识别范围扩大,增加入口

Current Behavior

check error commit msg: feat: Ocr 识别范围扩大,增加入口 image

Affected packages

  • [ ] cli
  • [ ] core
  • [ ] prompt
  • [ ] config-angular

Possible Solution

Steps to Reproduce (for bugs)

  1. First step
  2. Second step
commitlint.config.js ```js ```

Context

Your Environment

Executable Version
commitlint --version 9.1.1
git --version 2.28.0
node --version 10.20.1

rawbin- avatar Sep 09 '20 12:09 rawbin-

Hey @rawbin- ,
please fill out the missing information regarding "commitlint config".
According to your error it looks like the config is not allowing to start subject in Uppercase. Bur Ocr is uppercase.

escapedcat avatar Sep 10 '20 01:09 escapedcat

Hey @rawbin- , please fill out the missing information regarding "commitlint config". According to your error it looks like the config is not allowing to start subject in Uppercase. Bur Ocr is uppercase.

we are using the default config,OCR,Ocr,O C R,all failed module.exports = { extends: ['@commitlint/config-conventional'] }

rawbin- avatar Sep 10 '20 05:09 rawbin-

OCR,Ocr,O C R

All these are pascal-case/upper-case. They start with a capital letter. Default config is only accepting lower-case.
So either you start your subject lower-case like this:

ocr ...

or you change the config to accept upper-case/pascal-case/etc..

escapedcat avatar Sep 10 '20 06:09 escapedcat

OCR,Ocr,O C R

All these are pascal-case/upper-case. They start with a capital letter. Default config is only accepting lower-case. So either you start your subject lower-case like this:

ocr ...

or you change the config to accept upper-case/pascal-case/etc..

got it,thanks a lot~

rawbin- avatar Sep 10 '20 08:09 rawbin-

Hello, This default value goes against the spec of conventional commits, rule n°15 is as follows:

The units of information that make up Conventional Commits MUST NOT be treated as case sensitive by implementors, with the exception of BREAKING CHANGE which MUST be uppercase.

nassim-wema avatar Mar 28 '23 13:03 nassim-wema

The error is so ambigous. Don't tell me what case I shouldn't use, tell me what case I should use

tomaszs avatar Sep 08 '23 09:09 tomaszs

subject must not be sentence-case, start-case, pascal-case, upper-case [subject-case]

Came here to inform share that this "error" message is very bad and difficult to understand. Thank you.

ZynthCode avatar Jan 26 '24 09:01 ZynthCode

The link in

OCR,Ocr,O C R

All these are pascal-case/upper-case. They start with a capital letter. Default config is only accepting lower-case. So either you start your subject lower-case like this:

ocr ...

or you change the config to accept upper-case/pascal-case/etc..

Would be helpful to link specifically to a guide how to disable this, rather than point someone at the top level of the documentation. I'm not here to learn how to use the tool; I'm just here to shut it up.

gswallow avatar Sep 27 '24 16:09 gswallow

Would be helpful to link specifically to a guide how to disable this, rather than point someone at the top level of the documentation.

Docs were switched to a new tool. Old links got lost. Should link to this now: https://commitlint.js.org/reference/rules.html#subject-case

escapedcat avatar Sep 27 '24 17:09 escapedcat