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.

Discuss the performance of Chinese message

See original GitHub issue

Expected Behavior

If git message appears in Chinese, it will prompt a subject-case error.

Although it is possible to disable this verification through configuration, my hope is to be able to verify both subject-case and Chinese

Current Behavior

f Chinese appears, the following error will occur

git commit -m "feat(build): 增加 git commit message 验证"
 > running commit-msg hook: commitlint -E GIT_PARAMS
⧗   input:
feat(build): 增加 git commit message 验证

✖   subject must not be sentence-case, start-case, pascal-case, upper-case [subject-case]
✖   found 1 problems, 0 warnings 

Affected packages

  • cli
  • core
  • prompt
  • config-angular

Possible Solution

Steps to Reproduce (for bugs)

module.exports = {
  extends: ['@commitlint/config-angular']
};

Context

Your Environment

Executable Version
commitlint --version 7.0.0
git --version 2.17.1
node --version 10.3.0

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
scrapooocommented, Jul 10, 2018

// .commitlintrc

{
  "rules": {
    "subject-case": [0]
  }
}
2reactions
weihongyu12commented, Jan 22, 2019

@escapedcat Now the commit message starting with Chinese will not prompt the error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Facts about the So-called "Shen Yun" Performance by the ...
Clearly, the so-called "Shen yun" is not a cultural performance at all but a political tool of "Falun Gong" to preach cult messages,...
Read more >
Media system in China: a Chinese perspective | SpringerLink
This paper will explain the nature of the media system in China and its internal mechanics from a Chinese perspective. The media system...
Read more >
Student Performance Q&A - College Board
2015 AP® Chinese Language and Culture Free-Response Questions ... Based on your experience of student responses at the AP® Reading, what message would...
Read more >
Shen Yun: What You Need to Know About the Show ... - Insider
The show, organized by Chinese religious minority Falun Gong which is opposed to the Chinese government, carries a strong political message.
Read more >
What Enables a Chinese Firm to Create New-to-the-World ...
This was the fifth entrant in the Chinese instant messaging sector. ... To explain how Tencent created WeChat as a new-to-the-world ...
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