conventional-changelog/commitlint

Acronyms incorrectly detected as upper-case

Open

#3.312 geöffnet am 15. Aug. 2022

Auf GitHub ansehen
 (18 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (896 Forks)batch import
communitydiscussionhelp wanted

Repository-Metriken

Stars
 (15.497 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 5T 19h) (65 gemergte PRs in 30 T)

Beschreibung

Faulty Behavior

fix: JTD types -> JSON schema types
✖   subject must not be sentence-case, start-case, pascal-case, upper-case [subject-case]

The above fails as the linter detects the subject as being upper-case, even though it's just an acronym.

Affected packages

  • cli
  • core
  • prompt
  • config-angular

Possible Solution

Check that all letters in the word are uppercase and assume it's an acronym, ignoring any title-case lints. Skip for 1 letter words.

Steps to Reproduce (for bugs)

Lint the above commit message with @commitlint/config-conventional.

Your Environment

Executable Version
commitlint --version 17.0.3
git --version 2.34.1
node --version 16.15.1
@commitlint/config-conventional 17.0.3

Contributor Guide