conventional-changelog / conventional-changelog/commitlint

Camel-case is confused with sentence-case / start-case

Open
#3,501 2 comments 1 reaction 0 assignees View on GitHub
bug help wanted
Dominant language
TypeScript
Stars
18.7k
Forks
970
Avg merge
7h 33m
Merged PRs (30d)
49

Description

### Expected Behavior

If only `sentence-case` and `start-case` are denied from scopes, I'd expect `camel-case` to work.

### Current Behavior

With

```
scope-case:
- 2
- never
- - sentence-case
- start-case
```

I get

```
⧗ input: fix(ClearlyDefined): Make `Described` use `CurationFacets`

These are glob lists, not facet objects.

Signed-off-by: Sebastian Schuberth
✖ scope must not be sentence-case, start-case [scope-case]
```

### Affected packages

- [X] cli
- [ ] core
- [ ] prompt
- [ ] config-angular

### Possible Solution

When checking for `sentence-case` / `start-case`, ensure that there is more than a single word.

### Steps to Reproduce

```bash
See https://github.com/oss-review-toolkit/ort/actions/runs/3909253534/jobs/6680143679#step:4:17
```

### Context

_No response_

### commitlint --version

17.4.2

### git --version

2.39.0

### node --version

16.14.2

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.