subject must not be sentence-case, start-case, pascal-case, upper-case [subject-case]
Expected Behavior
check passed commit msg: feat: Ocr 识别范围扩大,增加入口
Current Behavior
check error
commit msg: feat: Ocr 识别范围扩大,增加入口

Affected packages
- [ ] cli
- [ ] core
- [ ] prompt
- [ ] config-angular
Possible Solution
Steps to Reproduce (for bugs)
- First step
- 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 |
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.
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
subjectin Uppercase. BurOcris uppercase.
we are using the default config,OCR,Ocr,O C R,all failed module.exports = { extends: ['@commitlint/config-conventional'] }
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..
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~
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.
The error is so ambigous. Don't tell me what case I shouldn't use, tell me what case I should use
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.
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.
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