Skip to content

Commit de08948

Browse files
authored
Update README (#30)
* Update README Add more parameters already in actions.yml * Add note about case sensitivity of words to actions.yml * Switch to a deliberate typo we're already using * Check our README separately ignoring the two intentional typos * Self censor ourselves!
1 parent 6de8633 commit de08948

3 files changed

Lines changed: 48 additions & 3 deletions

File tree

.github/workflows/testing.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,14 @@ jobs:
5959
check_filenames: true
6060
check_hidden: true
6161
# When using this Action in other repos, the --skip option below can be removed
62-
skip: ./.git,./codespell-problem-matcher/test,./test
62+
skip: ./.git,./codespell-problem-matcher/test,./test,./README.md,./.github/workflows/testing.yml
63+
# Check our README (and this workflow) ignoring the two intentional typos
64+
- uses: ./
65+
with:
66+
check_filenames: true
67+
check_hidden: true
68+
path: ./README.md,./.github/workflows/testing.yml
69+
ignore_words_list: abandonned,ackward
6370

6471
diagnose_bats:
6572
name: Diagnose bats

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,44 @@ with:
5757
skip: foo,bar
5858
```
5959

60+
### Parameter: builtin
61+
62+
Comma-separated list of builtin dictionaries to use.
63+
64+
This parameter is optional; by default `codespell` will use it's default selection of built in dictionaries.
65+
66+
```
67+
uses: codespell-project/actions-codespell@master
68+
with:
69+
builtin: clear,rare
70+
```
71+
72+
### Parameter: ignore_words_file
73+
74+
File that contains words which will be ignored by `codespell`. File must contain one word per line.
75+
Words are case sensitive based on how they are written in the dictionary file.
76+
77+
This parameter is optional; by default `codespell` will check all words for typos.
78+
79+
```
80+
uses: codespell-project/actions-codespell@master
81+
with:
82+
ignore_words_file: .codespellignore
83+
```
84+
85+
### Parameter: ignore_words_list
86+
87+
Comma-separated list of words which will be ignored by `codespell`.
88+
Words are case sensitive based on how they are written in the dictionary file.
89+
90+
This parameter is optional; by default `codespell` will check all words for typos.
91+
92+
```
93+
uses: codespell-project/actions-codespell@master
94+
with:
95+
ignore_words_list: abandonned,ackward
96+
```
97+
6098
### Parameter: path
6199

62100
Indicates the path to run `codespell` in.

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ inputs:
2323
required: false
2424
default: ''
2525
ignore_words_file:
26-
description: 'File with a list of words to be ignored'
26+
description: 'File with a list of words to be ignored. Words are case sensitive based on how they are written in the dictionary file'
2727
required: false
2828
default: ''
2929
ignore_words_list:
30-
description: 'Comma-separated list of words to be ignored'
30+
description: 'Comma-separated list of words to be ignored. Words are case sensitive based on how they are written in the dictionary file'
3131
required: false
3232
default: ''
3333
path:

0 commit comments

Comments
 (0)