subject-case has all value but failed when check
See original GitHub issueExpected Behavior
Current Behavior
Affected packages
- cli
- core
- prompt
- config-angular
Possible Solution
Steps to Reproduce (for bugs)
- commit with different message had different behaviour
- git commit -m “chore: update config to support publicPath” -> failed
- git commit -m “chore: update config to support publicpath” -> success
- git commit -m “chore: 更新配置支持 publicPath” -> success
commitlint.config.js
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'scope-case': [
2,
'always',
[
'lower-case',
'upper-case',
'camel-case',
'kebab-case',
'pascal-case',
'sentence-case',
'snake-case',
'start-case',
],
],
'subject-case': [
2,
'always',
[
'lower-case',
'upper-case',
'camel-case',
'kebab-case',
'pascal-case',
'sentence-case',
'snake-case',
'start-case',
],
],
},
}
Context
there are all configs, so i think i could type any kind of message, but as mentioned before, some kind of message failed. i want to know is it a bug or my config is wrong
Your Environment
Executable | Version |
---|---|
commitlint --version |
11.0.0 |
git --version |
2.30.1 |
node --version |
14.15.1 |
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
SQL Server query issue based on the column value populate ...
In the attached scenario, one of the column "result" is showing fail in one of the row and remaining all scenarios showing it...
Read more >Rules - conventional-changelog/commitlint - GitHub
For 1 it will be considered a warning for 2 an error. Applicable always|never : never inverts the rule. Value: value to use...
Read more >Edit and Allocation Procedures for the Minnesota Samples (for ...
This section describes the procedures for internal consistency checking, logical editing and missing data allocation for the Minnesota samples. Except where ...
Read more >IRS Disallows Deduction for Failure to Satisfy All-Events Test
Whether Taxpayer may deduct the estimated value of Reductions, under the all-events test under section 461, where students have earned Number, but have...
Read more >Case marking uniformity in developmental pronoun errors
First, morphemes carrying case represent other feature values that must be tracked simultaneously (i.e., number, person, gender). Second, subject case marking ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
ok thanks all of you
@540692039 You can get possible values of ‘subject-case’ by Official document, And learn the machanism by https://github.com/conventional-changelog/commitlint/blob/master/%40commitlint/rules/src/subject-case.ts.