Skip to content

Commit

Permalink
Add typo check GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
shirayu committed Feb 5, 2023
1 parent ae33d72 commit 7380801
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/typos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
# yamllint disable rule:line-length
name: Typos

on: # yamllint disable-line rule:truthy
push:
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: typos-action
uses: crate-ci/typos@v1.13.10
15 changes: 15 additions & 0 deletions _typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Files for typos
# Instruction: https://github.com/marketplace/actions/typos-action#getting-started

[default.extend-identifiers]

[default.extend-words]
NIN="NIN"
parms="parms"
nin="nin"
extention="extention" # Intentionally left
nd="nd"


[files]
extend-exclude = ["_typos.toml"]

0 comments on commit 7380801

Please sign in to comment.