summaryrefslogtreecommitdiff
path: root/.github/actions/spelling/advice.md
diff options
context:
space:
mode:
authorMarc Cornellà <hello@mcornella.com>2021-12-01 12:18:32 +0100
committerMarc Cornellà <hello@mcornella.com>2021-12-01 12:20:46 +0100
commitaef393bdce523ed5e5754721965fab2da8080119 (patch)
tree5f7657dcd9048454bc91ced07128c0b47eb60955 /.github/actions/spelling/advice.md
parent0e41181d547e2f89ffc503a7afc8b0f3991dd1a8 (diff)
downloadzsh-aef393bdce523ed5e5754721965fab2da8080119.tar.gz
zsh-aef393bdce523ed5e5754721965fab2da8080119.tar.bz2
zsh-aef393bdce523ed5e5754721965fab2da8080119.zip
ci: add `check-spelling` GitHub Action
Diffstat (limited to '.github/actions/spelling/advice.md')
-rw-r--r--.github/actions/spelling/advice.md27
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/actions/spelling/advice.md b/.github/actions/spelling/advice.md
new file mode 100644
index 000000000..2a32b6520
--- /dev/null
+++ b/.github/actions/spelling/advice.md
@@ -0,0 +1,27 @@
+<!-- See https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples%3A-advice --> <!-- markdownlint-disable MD033 MD041 -->
+<details><summary>If you see a bunch of garbage</summary>
+
+If it relates to a ...
+<details><summary>well-formed pattern</summary>
+
+See if there's a [pattern](https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples:-patterns) that would match it.
+
+If not, try writing one and adding it to the `patterns.txt` file.
+
+Patterns are Perl 5 Regular Expressions - you can [test](
+https://www.regexplanet.com/advanced/perl/) yours before committing to verify it will match your lines.
+
+Note that patterns can't match multiline strings.
+</details>
+<details><summary>binary-ish string</summary>
+
+Please add a file path to the `excludes.txt` file instead of just accepting the garbage.
+
+File paths are Perl 5 Regular Expressions - you can [test](
+https://www.regexplanet.com/advanced/perl/) 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](
+../tree/HEAD/README.md) (on whichever branch you're using).
+</details>
+
+</details>