Skip to content

Lint feature descriptions with Vale #3045

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Lint feature descriptions with Vale #3045

wants to merge 1 commit into from

Conversation

ddbeck
Copy link
Collaborator

@ddbeck ddbeck commented Jun 11, 2025

This PR imposes some automatic checks on feature descriptions using Vale.

I've turned on some default rules from Vale (like detecting words doubled doubled up) and a couple of rules from our guidelines. There are many other rules we could turn on (such as spelling) if we like this approach.

See my self review (and generated comments) to see how this would work in practice.

@github-actions github-actions bot added documentation Improvements or additions to documentation feature definition Creating or defining new features or groups of features. tools and infrastructure Project internal tooling, such as linters, GitHub Actions, or repo settings labels Jun 11, 2025
@ddbeck ddbeck force-pushed the vale-lint branch 8 times, most recently from d75df18 to 5059a5d Compare June 11, 2025 13:41
@@ -1,5 +1,5 @@
name: "@charset"
description: The `@charset` CSS at-rule specifies the character encoding of an external style sheet.
description: The `@charset` CSS at-rule specifies the character encoding of an external style sheet.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed this file so it would get flagged on review. Before merging, I ought to undo this change, to show I'm just ignoring this suggestion.

@@ -1,5 +1,5 @@
name: <del>
description: The `<del>` element element represents a range of text that has been deleted from a document, styling text as strikethrough by default.
description: The `<del>` element element represents a range of text that has been deleted from a document, styling text as strikethrough by default.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed this file so it would get flagged on review. Before merging, I ought to push a change fixing it.

@@ -1,5 +1,5 @@
name: beforeunload
description: "The `beforeunload` event is fired when the current window is about to be unloaded. Typically this is used to display a dialog to confirm if users really want to leave the page when there is unsaved data that would be lost."
description: "The `beforeunload` event is fired when the current window is about to be unloaded. Typically you use this to display a dialog to confirm if users really want to leave the page when there is unsaved data that would be lost."
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This (and several other feature changes) fix warnings or errors from Vale.

@ddbeck ddbeck changed the title Add Vale prose linting to feature descriptions Lint feature descriptions with Vale Jun 11, 2025
@ddbeck ddbeck marked this pull request as ready for review June 25, 2025 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation feature definition Creating or defining new features or groups of features. tools and infrastructure Project internal tooling, such as linters, GitHub Actions, or repo settings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant