Expected Behavior
I set rule 'subject-case': [2, 'always', 'sentence-case']. With title fix item I expect to see error message: subject must be sentence-case [subject-case].
Current Behavior
I set rule 'subject-case': [2, 'always', 'sentence-case']. With title fix item I see error message: subject must not be sentence-case [subject-case].
Screen shot

Steps to Reproduce (for bugs)
- Create config files listed below.
- Add commit with header:
fix item.
- See error message with title
subject must not be sentence-case [subject-case].
.commitlintrc.js
module.exports = {
parserPreset: './.commitlint-preset',
rules: {
'subject-case': [2, 'always', 'sentence-case']
}
}
.commitlint-preset.js
module.exports = {
parserOpts: {
headerPattern: /^(.*)$/,
headerCorrespondence: ['subject']
}
}
Your Environment
I'm using Tower app to work with git. It uses system git binary. Commitlint is executed using husky and commitmsg script.
| Executable |
Version |
commitlint --version |
5.2.3 |
git --version |
2.13.6 (Apple Git-96) |
node --version |
8.9.2 |
Expected Behavior
I set rule
'subject-case': [2, 'always', 'sentence-case']. With titlefix itemI expect to see error message:subject must be sentence-case [subject-case].Current Behavior
I set rule
'subject-case': [2, 'always', 'sentence-case']. With titlefix itemI see error message:subject must not be sentence-case [subject-case].Screen shot
Steps to Reproduce (for bugs)
fix item.subject must not be sentence-case [subject-case]..commitlintrc.js
.commitlint-preset.js
Your Environment
I'm using Tower app to work with git. It uses system git binary. Commitlint is executed using
huskyandcommitmsgscript.commitlint --versiongit --versionnode --version