-
Notifications
You must be signed in to change notification settings - Fork 13
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
What I did:
- Added a simple config (see below) consisting only of the example config on the description format page.
- Ran the command
commitlint --from HEAD~1 --to HEAD~1in a repository with existing commits - Received the error below.
The same error also occurs with the "type format" and "scope format" rules. I tried changing the format regex a few times, but no matter the regex, the error always remained the same. After removing the configuration for the "description format" rule (and optionally adding a bunch of other rules), the error went away.
Config
rules:
description-format:
level: error
format: ^[A-Z].*$Error message
thread 'tokio-runtime-worker' panicked at /.cargo/registry/src/index.crates.io-6f17d22bba15001f/commitlint-rs-0.1.6/src/rule/description_format.rs:34:62:
called `Option::unwrap()` on a `None` value
Expected behavior
No error.
Version
# Run the following command
$ commitlint --version
commitlint-rs 0.1.6Additional context
N/A
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working