Skip to content

Vale not checking heading correctly using capitalization #960

@tjperry07

Description

@tjperry07

Check for existing issues

  • Completed

Environment

When using the built in https://vale.sh/docs/checks/capitalization, it fails heading checks that should be correct.

It seems to be failing on headings that contain words that are three tokens or less. AND, OR, AN, A, Git.

It fails as a action and locally.

Vale version vale version 3.9.4
GH action version: uses: errata-ai/vale-action@v2.1.1

Image

Describe the bug / provide steps to reproduce it

Create the capitalization rule:

extends: capitalization
message: "'%s' should use title-style capitalization."
level: error
scope: heading
match: $title
style: AP

Then test against New Repository and Project.

It wants New Repository AND Project.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions