Skip to content

False positive on imperative mood check due to adverb #393

@ejpcmac

Description

@ejpcmac

Problem description

In committed 1.0.20, using the following configuration:

style = "conventional"
subject_capitalized = false
allowed_types = ["feat"]

Let the following message:

feat: always use a given behaviour

committed reports the following error:

error Subject should be in the imperative mood but found `always`

Expected behaviour

“Always use a given behaviour.” is actually in imperative mood, but the verb is in second position, after an adverb. This should not report an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions