Skip to content

Commit

Permalink
🤖 Fix spellcheck
Browse files Browse the repository at this point in the history
Signed-off-by: Ettore Di Giacinto <[email protected]>
  • Loading branch information
mudler committed Dec 10, 2022
1 parent c313143 commit 7f67d58
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/actions/spelling/excludes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,22 @@
(?:^|/)go\.sum$
(?:^|/)package(?:-lock|)\.json$
(?:^|/)vendor/
(?:^|/)test/
(?:^|/)pkg/
(?:^|/)cmd/
(?:^|/)internal/
(?:^|/)images/
(?:^|/)overlay/
(?:^|/)scripts/
(?:^|/)sdk/
(?:^|/)docs/assets/
(?:^|/)docs/layouts/
(?:^|/)docs/scripts/
(?:^|/)docs/static/
(?:^|/)docs/themes/
CNAME$

Makefile$
\.a$
\.ai$
\.avi$
Expand All @@ -19,6 +35,8 @@
\.eot$
\.exe$
\.gif$
\.toml$
\.json$
\.gitattributes$
\.graffle$
\.gz$
Expand Down
69 changes: 69 additions & 0 deletions .github/actions/spelling/patterns.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,74 @@
# See https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples:-patterns

# Automatically suggested patterns
# hit-count: 54 file-count: 30
# GitHub SHAs (markdown)
(?:\[`?[0-9a-f]+`?\]\(https:/|)/(?:www\.|)github\.com(?:/[^/\s"]+){2,}(?:/[^/\s")]+)(?:[0-9a-f]+(?:[-0-9a-zA-Z/#.]*|)\b|)

# hit-count: 22 file-count: 16
# githubusercontent
/[-a-z0-9]+\.githubusercontent\.com/[-a-zA-Z0-9?&=_\/.]*

# hit-count: 20 file-count: 9
# Compiler flags
(?:^|[\t ,"'`=(])-[DPWXYLlf](?=[A-Z]{2,}|[A-Z][a-z]|[a-z]{2,})

# hit-count: 17 file-count: 12
# uuid:
\b[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}\b

# hit-count: 12 file-count: 5
# URL escaped characters
\%[0-9A-F][A-F]

# hit-count: 11 file-count: 7
# hex runs
\b[0-9a-fA-F]{16,}\b

# hit-count: 8 file-count: 8
# tar arguments
\b(?:\\n|)g?tar(?:\.exe|)(?:(?:\s+--[-a-zA-Z]+|\s+-[a-zA-Z]+|\s[ABGJMOPRSUWZacdfh-pr-xz]+\b)(?:=[^ ]*|))+

# hit-count: 6 file-count: 2
# version suffix <word>v#
(?:(?<=[A-Z]{2})V|(?<=[a-z]{2}|[A-Z]{2})v)\d+(?:\b|(?=[a-zA-Z_]))

# hit-count: 3 file-count: 2
# IPv6
\b(?:[0-9a-fA-F]{0,4}:){3,7}[0-9a-fA-F]{0,4}\b

# hit-count: 2 file-count: 2
# Google Calendar
\bcalendar\.google\.com/calendar(?:/u/\d+|)/embed\?src=[@./?=\w&%]+

# hit-count: 2 file-count: 2
# ipfs url
/ipfs/[0-9a-z]*

# hit-count: 1 file-count: 1
# Amazon
\bamazon\.com/[-\w]+/(?:dp/[0-9A-Z]+|)

# hit-count: 1 file-count: 1
# Slack
\bslack\.com/[-0-9a-zA-Z/_~?&=.]*

# hit-count: 1 file-count: 1
# shields.io
\bshields\.io/[-\w/%?=&.:+;,]*

# hit-count: 1 file-count: 1
# Wikipedia
\ben\.wikipedia\.org/wiki/[-\w%.#]+

# hit-count: 1 file-count: 1
# hex digits including css/html color classes:
(?:[\\0][xX]|\\u|[uU]\+|#x?|\%23)[0-9_a-fA-FgGrR]*?[a-fA-FgGrR]{2,}[0-9_a-fA-FgGrR]*(?:[uUlL]{0,3}|u\d+)\b

# hit-count: 1 file-count: 1
# go install
go install(?:\s+[a-z]+\.[-@\w/.]+)+

# Questionably acceptable forms of `in to`
# Personally, I prefer `log into`, but people object
# https://www.tprteaching.com/log-into-log-in-to-login/
Expand Down

1 comment on commit 7f67d58

@github-actions
Copy link

Choose a reason for hiding this comment

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

@check-spelling-bot Report

🔴 Please review

See the 📜action log or 👼 SARIF report for details.

Unrecognized words (11)
CNCF
dflags
Earthfile
Hetzner
iah
Rtc
spellcheck
Stderr
Stdout
UUID
videotest
Previously acknowledged words that are now absent aaad aab Aarea abcde abcdefghijklmnopqrstuvwxyz addrs aea agetty Aissue algolia allexport Aopen ARegular Arelease ATIME Autoload autologin autoprefixer AWSEC azuretools bafae bashrc bce bcm bdd bdfb beforeahead bfaaeb bfe binpath blackfriday bootcmdline bootstraping bpffs bpfilter breadcrumb browserconfig bufio bugzilla cae Catmull cbb ccb cccd CDLABEL cdroot ced certs cfcdfb cgi cgroup chardev chvt closemedium cloudconfig clusterplugin cmds CNAME cncf cni commd CONTAINERDIR containerrunner controlplane controlvm copytruncate cpuset cratonica createmedium createvm css ctx CTYPE ctz cvf danderson dba dbpath debianutils ded denisbrodbeck dfde dff diabling dirname dirs dmesg dmi dnf docsearch dracula dupliate dvd dvddrive eaa eab eae earthfile ebec eeprom efe emptydrive epel erikgeiser errcheck Errored Errorf fakegetty farbox favicon fce fedb Fflavor fooz forceunmount FPV FRome FRONTEND fsck fsdu gcs getty Getwd ghw githubembed githubusercontent gkas goarray godotenv gohugoio gojq goldmark gopkg gptfdisk greedly grubinstall gruboptions guestssh haideralipunjabi harderning hashicorp hdd HDMI hetzner hiddenentry highlighter hostiocache hugetlb hwe iconunix iface ifnames includedir inet initrdefi inittab installprompt Intn ioutil iputils IPv iscsid isoinfo itchyny jaypipes jetstack joho jpg jsondata kernelcmd kubelet kvm Lastmod lastword len liah libexec linenos LINGUAS linuxefi loadfont logfile Lunr machineid makecache menuentry metaldata missingok MKISO mktemp mnt modifyvm motd mountpath mountpoint multierror Mutex NArg natpf navbar neetnet neovim nethogs nic noclear nodev noexec nolint NOLOCK nomodeset NOPASSWD nosuid Noto nowait Npqw nryfng nxadm oauth objs oemlabel oemtimeout oibaf omitempty oneshot openstack OSFS ostype otiai outdir outfile params permalinks permsisions pid pidfile pigz pki PKz Placeholders policycoreutils popd portcount postcss promptkit pterm publicpath pushd pygments qeesung qga raspberrypi realpath recoverylabel recoverytoken relatime rels remoterecovery renovatebot respawn restorecon rmem rootdir rsakey rshared rtc runstage runtimes russross scaleway scss selinux Setenv shlex shortcodes showvminfo SIGINT SIGTERM snapd someuser spectrocloudcommunity squashimg srv ssl standalone startvm STATEDIR stderr stdio stdout storageattach storagectl subdir subpath sudoers SUT svg syscall sysvinit TConfig temporarly testgist textinput textmode tgz timezone tmpdir tmpfs tmux toml twpayne uint umounting unicode unmarshal unmarshalling unregistervm urfave utc uuid vdi vfs virtserialport Virtualbox vmname vmtoolsd vscode vsliveshare vsys vultr webmanifest whitespaces wikipedia workaround WRONLY wsz XDG xml xvf xvzf xyproto ZCP :arrow_right:
To accept ✔️ these unrecognized words as correct and remove the previously acknowledged and now absent words, run the following commands

... in a clone of the [email protected]:kairos-io/kairos.git repository
on the master branch (ℹ️ how do I use this?):

curl -s -S -L 'https://raw.githubusercontent.com/check-spelling/check-spelling/main/apply.pl' |
perl - 'https://github.com/kairos-io/kairos/actions/runs/3665308381/attempts/1'
Available 📚 dictionaries could cover words not in the 📘 dictionary

This includes both expected items (1000) from .github/actions/spelling/expect.txt and unrecognized words (11)

Dictionary Entries Covers
cspell:cpp/src/cpp.txt 30216 124
cspell:software-terms/src/software-terms.txt 1237 108
cspell:node/node.txt 1768 44
cspell:python/src/python/python-lib.txt 3873 42
cspell:php/php.txt 2597 39
cspell:aws/aws.txt 218 25
cspell:npm/npm.txt 288 23
cspell:typescript/typescript.txt 1211 22
cspell:win32/src/win32.txt 53509 19
cspell:django/django.txt 859 19

Consider adding them using (in .github/workflows/spelling.yml):

      with:
        extra_dictionaries:
          cspell:cpp/src/cpp.txt
          cspell:software-terms/src/software-terms.txt
          cspell:node/node.txt
          cspell:python/src/python/python-lib.txt
          cspell:php/php.txt
          cspell:aws/aws.txt
          cspell:npm/npm.txt
          cspell:typescript/typescript.txt
          cspell:win32/src/win32.txt
          cspell:django/django.txt

To stop checking additional dictionaries, add:

      with:
        check_extra_dictionaries: ''
Errors (1)

See the 📜action log or 👼 SARIF report for details.

❌ Errors Count
❌ forbidden-pattern 18

See ❌ Event descriptions for more information.

If the flagged items are 🤯 false positives

If items relate to a ...

  • binary file (or some other file you wouldn't want to check at all).

    Please add a file path to the excludes.txt file matching the containing file.

    File paths are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your files.

    ^ refers to the file's path from the root of the repository, so ^README\.md$ would exclude README.md (on whichever branch you're using).

  • well-formed pattern.

    If you can write a pattern that would match it,
    try adding it to the patterns.txt file.

    Patterns are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your lines.

    Note that patterns can't match multiline strings.

Please sign in to comment.