question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

subject-case has all value but failed when check

See original GitHub issue

Expected Behavior

Current Behavior

Affected packages

  • cli
  • core
  • prompt
  • config-angular

Possible Solution

Steps to Reproduce (for bugs)

  1. commit with different message had different behaviour
  2. git commit -m “chore: update config to support publicPath” -> failed
  3. git commit -m “chore: update config to support publicpath” -> success
  4. 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:closed
  • Created 2 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
keeplzcommented, Apr 29, 2021

Thanks @curly210102 !

@540692039 if you want to figure it out, have a look youself. Happy for any feedback or a PR to improve this. In general I think this is not a real usecase and wouldn’t bother to “fix” this and would close this issue.

ok thanks all of you

1reaction
curly210102commented, Apr 29, 2021
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found