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].
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

fix item.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']
}
}
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 |
Thanks for reporting this! This sounds like a bug with @commitlint/core.
Fixed with release v5.2.5
Most helpful comment
Fixed with release v5.2.5