Skip to content

Words separated by spaces in exceptions list still being flagged as errors #786

@dgomezg

Description

@dgomezg

Check for existing issues

  • Completed

Environment

OS: macOS, Linux
Install Method: Homebrew, direct download.
Vale version: 3.2.2 (any version since v2.29.3)

Describe the bug / provide steps to reproduce it

We have a rule to ensure sentence-style capitalization of titles of type >= h2, but there are some "Product /tecnology names" that should keep the first letter capitalized, so we have those in an exception list:

extends: capitalization
message: "'%s' should use sentence-style capitalization."
level: error
scope:
  - heading.h2
  - heading.h3
  - heading.h4
  - heading.h5
  - heading.h6
match: $sentence
indicators:
  - ':'
exceptions:
  - Azure
  - Axon
  - Axon Framework
  - Axon Server
  - Axon Synapse
  - AxonIQ
  - AxonIQ Cloud
  - AxonIQ Console
  - AxonIQ Library
  - CLI
  - Code
  - Command-Query Responsibility Separation
  - Cosmos
  - Docker
  - Docker Compose

The problem is, for example, that Docker Compose or Axon Framework will still be detected as an error:

 build/site/synapse_ref/v0.9/configuration.html
 306:88  error  'Axon Server connection' should use sentence-style capitalization.

This was working properly up to v2.29.2

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