Skip to content

Description must immediately follow the colon and space after the type/scope prefix #446

@xieyongbin

Description

@xieyongbin

Describe the bug

According to the 5 rule specification

A description MUST immediately follow the colon and space after the type/scope prefix. The description is a short summary of the code changes, e.g., fix: array parsing issue when multiple spaces were contained in string.

I found miss check the number of space between type/scope and description

Config

If you have any config file, please paste it below:

Error message

$> echo "feat(cli): add new flag" | commitlint; echo $?
0
$> echo "feat(cli):  add new flag" | commitlint; echo $?
0
$> echo "feat(cli):add new flag" | commitlint; echo $?
0

Work well with any number of space

Expected behavior

Only : can follow type/scope

Version

# Run the following command
$ commitlint --version
commitlint-rs 0.2.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions