Skip to content

Report error message when type empty #442

@xieyongbin

Description

@xieyongbin

Describe the bug

Report type is longer than 4 characters when type empty

Config

rules:
  type-max-length:
    level: error
    length: 4

Error message

$> echo -n "add new flag" | commitlint 
type is longer than 4 characters

Expected behavior

type-max-length only check the length of type and type-empty check type empty

Version

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

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions