Add a warning for consecutive duplicate words - #45497
Conversation
How to review these changes 👓Thank you for your contribution. To review these changes, choose one of the following options: A Hubber will need to deploy your changes internally to review. Table of review linksNote: Please update the URL for your staging server or codespace. The table shows the files in the
Key: fpt: Free, Pro, Team; ghec: GitHub Enterprise Cloud; ghes: GitHub Enterprise Server 🤖 This comment is automatically generated. |
|
👋 Hey there spelunker. It looks like you've modified some files that we can't accept as contributions:
You'll need to revert all of the files you changed that match that list using GitHub Desktop or The complete list of files we can't accept are:
We also can't accept contributions to files in the content directory with frontmatter |
|
@raulkolaric Thank you very much for your thoughtfulness here; however, unfortunately as you'll have seen from the failing check, we're unable to accept non-content-related contributions. Your recent contributions have been really valued, so please do feel free to keep sending similar; however, I'm afraid on this occasion I can only close this one out 🙇 |
|
@subatoi Sorry about the invalid PR! This was an idea I had after my first contribution, and I implemented it without checking the contribution guidelines first 😆 Would it be appropriate to open an issue suggesting this feature instead, or is this kind of linting not the best approach for this repository? I’m new to open source and still figuring things out, so I’d really appreciate your input. Thank you! |
|
@raulkolaric No problem! In general yes, we'd advise that you open an issue; however, I'd recommend having a browse at https://docs.github.com/en/contributing first, as it describes what we can and can't accept. Essentially, we can only accept content changes from contributors in this repo, so any sort of linter changes (for example) would be automatically rejected. |
Why:
Closes:
Recent documentation fixes removed consecutive duplicate words that are difficult to notice during review:
Together, these PRs corrected 11 duplicated words across 11 files. A content-linter rule can identify this pattern earlier and prevent similar mistakes from reaching the documentation.
What's being changed (if available, include any code snippets, screenshots, or gifs):
This PR adds
GHD068,consecutive-duplicate-words.The rule:
textcode fences.OR orandhostname HOSTNAME.Check whether the repeated word "<word>" is intentional.Historical validation found all 11 duplicates corrected by PRs #45476 and #45488:
The historical findings included
use use,more more,the the,Chat chat,Storage storage, andto toinside atextfence.Validation performed:
npm run buildnpm run tscnpm run lintnpm run prettier-checkCheck off the following: