Skip to content

Commit 4238ce9

Browse files
liuly0322peter-jerry-ye
authored andcommitted
chore: add autocorrect to CI
1 parent 4bccb31 commit 4238ce9

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.autocorrectrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# yaml-language-server: $schema=https://huacnlee.github.io/autocorrect/schema.json
2+
rules:
3+
# Default rules: https://github.com/huacnlee/autocorrect/raw/main/autocorrect/.autocorrectrc.default
4+
halfwidth-punctuation: 0

.github/workflows/typo.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,8 @@ jobs:
1515

1616
- name: check typos
1717
uses: crate-ci/[email protected]
18-
18+
19+
- name: autocorrect lint
20+
uses: huacnlee/autocorrect-action@v2
21+
with:
22+
args: . --lint --no-diff-bg-color

0 commit comments

Comments
 (0)