Open
Description
Is your feature request related to a problem? Please describe.
cspell: # run the cspell action
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install node
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- name: Install CSpell
run: npm install -g cspell@latest
- name: Check spelling
run: npx cspell lint --config .github/cspell/cspell.json --unique "**/CHANGELOG.md"
The configuration produces a similar output:
/home/runner/work/repo/repofolder/CHANGELOG.md:28:24 - Forbidden word (word1)
/home/runner/work/repo/repofolder/CHANGELOG.md:28:24 - Forbidden word (word2)
/home/runner/work/repo/repofolder/CHANGELOG.md:279:11 - Unknown word (user1 without @)
/home/runner/work/repo/repofolder/CHANGELOG.md:284:3 - Unknown word (user2 without @)
/home/runner/work/repo/repofolder/CHANGELOG.md:863:36 - Unknown word (user3 without @)
Describe the solution you'd like
I would like a way to exclude all unknown words in one shot from the output, so that only the forbidden words I have added in cspell.json are listed when encountered in CHANGELOG.md.
Describe alternatives you've considered
I couldn't find anything so far... adding all unknown words in a custom exclusion list is not an option for my use case, because the changelog contains several credits and I think it would be embarrassing to exclude username references one by one.