Skip to content

Commit

Permalink
Merge pull request #247 from strangiato/sort-wordlist-script
Browse files Browse the repository at this point in the history
Sort wordlist script
  • Loading branch information
pittar authored Oct 10, 2023
2 parents 8fda191 + eba6722 commit bb5626e
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .wordlist-md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ KokuMetricsConfig
Kubernetes
Kyverno
LDAP
Lifecycle
LVM
Lifecycle
MTA
MachineConfig
MultiClusterHub
Expand Down Expand Up @@ -197,5 +197,6 @@ thanos
truly
vSphere
vsphere
wordlist
workspaces
yaml
12 changes: 12 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,15 @@ metadata:
```

The `olm.providedAPIs` annotation is automatically added by OLM once a subscription has been installed. Including this annotation may cause reconciliation loops when utilizing these examples with GitOps tools such as ArgoCD.

## Spell Checking

This repo is configured to run a Spell Check on the repo as part of a Pull Request to help keep documentation correct.

Unfortunately there are many technical words that often get flagged by the spell checker that are acceptable. When submitting a PR if there are words that the spell checker flags that should be allowed, those words can be added to the [.wordlist](.wordlist) file.

Simply add any missing words to the file and run the following to sort the file before committing:

```sh
./scripts/sort-wordlist.sh
```
17 changes: 17 additions & 0 deletions scripts/sort-wordlist.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

set -e

TEMP_WORDLIST=.temp-wordlist-md
WORDLIST=.wordlist-md

if [ -e ${TEMP_WORDLIST} ] ; then
rm ${TEMP_WORDLIST}
fi
cat .wordlist-md | LC_COLLATE=C sort -u > ${TEMP_WORDLIST}

if [ -e ${WORDLIST} ] ; then
rm ${WORDLIST}
fi

mv ${TEMP_WORDLIST} ${WORDLIST}

0 comments on commit bb5626e

Please sign in to comment.