Skip to content

chore: allow multi-word proper nouns in the style checker's exceptions - #879

Open
sterlingkoch wants to merge 1 commit into
mainfrom
style/talos-director-heading-exception
Open

sterlingkoch wants to merge 1 commit into
mainfrom
style/talos-director-heading-exception

Conversation

@sterlingkoch

Copy link
Copy Markdown
Member

What

The style checker's exceptions list now accepts multi-word entries, and Talos Director is the first one.

Why

Headings with the product name, such as "How Talos Director differs from vSphere," get a sentence-case warning because "Director" isn't in the exceptions list. Adding "Director" as a single word would also let a bare "Director" through, and the product name is always "Talos Director."

Change

  • main.go: a line in exceptions.txt with several words is a phrase. Its words keep their capitals only together and in order. Single-word entries work as before.
  • exceptions.txt: adds Talos Director and explains phrases in the header.
  • main_test.go: one test that "Talos Director" passes in a heading, one that "Director" alone is still flagged.
  • README.md: documents phrases.

Testing

Headings such as "How Talos Director differs from vSphere" were flagged
because "Director" is not a proper noun on its own. A line with several
words in exceptions.txt is now a phrase whose words keep their capitals
only together, and "Talos Director" is the first one, so a bare
"Director" in a heading is still flagged.

Signed-off-by: Sterling Koch <sterling.koch@siderolabs.com>
@github-project-automation github-project-automation Bot moved this from In Review to Approved in Planning Oct 22, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Approved

Development

Successfully merging this pull request may close these issues.

3 participants