Skip to content

Commit 5cce0c1

Browse files
authored
Merge pull request #11 from codespell-project/peternewman-docs
Update the docs
2 parents 05adf77 + 05ab9ab commit 5cce0c1

2 files changed

Lines changed: 52 additions & 4 deletions

File tree

README.md

Lines changed: 51 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,55 @@ Any warnings or errors will be annotated in the Pull Request.
66
## Usage
77

88
```
9-
uses: peternewman/actions-codespell@master
9+
uses: codespell-project/actions-codespell@master
10+
```
11+
12+
### Parameter: check_filenames
13+
14+
If set, check file names for spelling mistakes as well.
15+
16+
This parameter is optional; by default `codespell` will only check the file contents.
17+
18+
```
19+
uses: codespell-project/actions-codespell@master
20+
with:
21+
check_filenames: true
22+
```
23+
24+
### Parameter: check_hidden
25+
26+
If set, check hidden files (those starting with ".") for spelling mistakes as well.
27+
28+
This parameter is optional; by default `codespell` will not check hidden files.
29+
30+
```
31+
uses: codespell-project/actions-codespell@master
32+
with:
33+
check_hidden: true
34+
```
35+
36+
### Parameter: exclude_file
37+
38+
File with lines that should not be checked for spelling mistakes.
39+
40+
This parameter is optional; by default `codespell` will check all lines.
41+
42+
```
43+
uses: codespell-project/actions-codespell@master
44+
with:
45+
exclude_file: src/foo
46+
```
47+
48+
### Parameter: skip
49+
50+
Comma-separated list of files to skip (it accepts globs as well).
51+
52+
This parameter is optional; by default `codespell` won't skip any files.
53+
54+
```
55+
uses: codespell-project/actions-codespell@master
56+
with:
57+
skip: foo,bar
1058
```
1159

1260
### Parameter: path
@@ -17,7 +65,7 @@ This can be useful if your project has code you don't want to spell check for so
1765
This parameter is optional; by default `codespell` will run on your whole repository.
1866

1967
```
20-
uses: peternewman/actions-codespell@master
68+
uses: codespell-project/actions-codespell@master
2169
with:
2270
path: src
2371
```
@@ -31,7 +79,7 @@ All errors and warnings are annotated in Pull Requests, but it will act like eve
3179
This parameter is optional; setting this to any value will enable it.
3280

3381
```
34-
uses: peternewman/actions-codespell@master
82+
uses: codespell-project/actions-codespell@master
3583
with:
3684
only_warn: 1
3785
```

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ inputs:
1111
required: false
1212
default: ''
1313
exclude_file:
14-
description: 'FILE with lines that should not be changed'
14+
description: 'File with lines that should not be checked for spelling mistakes'
1515
required: false
1616
default: ''
1717
skip:

0 commit comments

Comments
 (0)