-
Notifications
You must be signed in to change notification settings - Fork 3.5k
fix: Add spell check and lint validation for individual feature files #15473
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
base: main
Are you sure you want to change the base?
Conversation
262d779 to
96a2191
Compare
Runs markdown-spellcheck on individual .features/pending/*.md files during features-validate, catching spelling errors early before release. Spell check is non-blocking (warning only) since feature files contain author names and GitHub usernames that trigger false positives. Fixes argoproj#15149 Signed-off-by: om7057 <[email protected]>
96a2191 to
ec8af7b
Compare
Signed-off-by: om7057 <[email protected]>
Signed-off-by: om7057 <[email protected]>
| features-validate: hack/featuregen/featuregen $(TOOL_MARKDOWNLINT) $(TOOL_MDSPELL) | ||
| # Validate all pending feature documentation files | ||
| $< validate | ||
| # Spell check individual feature files before they are combined (warning only, does not fail build) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we want this to not fail the build?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay @Joibel. It's set to warning-only since there are existing spelling issues in pending files (e.g., author names not in the dictionary). Happy to make it fail the build if it's preferred, please let me know.
Signed-off-by: om7057 <[email protected]>
Signed-off-by: om7057 <[email protected]>
|
@Joibel Could you please review the changes? |
Runs markdown-spellcheck and markdownlint on individual .features/pending/*.md files during features-validate, catching errors early before release.
Fixes #15149
Motivation
When generating the new features document for release, it can fail markdown lint and spelling checks. Currently, these checks only run on the combined output (
docs/new-features.md) during release time. If individual feature files in.features/pending/*.mdhave lint or spelling errors, they're not caught until the release CI runs, causing unexpected failures.This PR addresses the first part of the issue: validating individual feature documents early so contributors can fix issues before release.
Modifications
Modified the
features-validatetarget inMakefileto:$(TOOL_MDSPELL)as a dependencymdspell) on individual.features/pending/*.mdfilesmarkdownlint) on individual feature files before they are combinedVerification
Tested locally by running: