Skip to content

Commit

Permalink
Add typos check action and config.
Browse files Browse the repository at this point in the history
  • Loading branch information
ni4 committed Sep 18, 2024
1 parent e70225b commit 113ed54
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ jobs:
scandir: './ci'
env:
SHELLCHECK_OPTS: -x
typos:
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v4
with:
fetch-depth: 1
submodules: true
- uses: crate-ci/typos@master

version-cmake-up-to-date:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"
Expand Down Expand Up @@ -74,4 +84,3 @@ jobs:
set -eux
pwd
[[ "$(cat ./rnp/version.txt)" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]];
32 changes: 32 additions & 0 deletions _typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[default]
extend-ignore-identifiers-re = [
".*fpr.*",
".*FPR.*",
".*[0-9a-fA-F]{4,}",
]

[default.extend-identifiers]
validate_desig_revokes = "validate_desig_revokes"
desig_rev = "desig_rev"
Nominet = "Nominet"
NOMINET = "NOMINET"
PNGs = "PNGs"
FOF = "FOF"
EDE3 = "EDE3"
ede3 = "ede3"
ffrom = "ffrom"
clen = "clen"
__THW_INTEL__ = "__THW_INTEL__"

[default.extend-words]
MERCHANTIBILITY = "MERCHANTIBILITY"
FOF = "FOF"
FO = "FO"
claus = "claus"
desig = "desig"

[files]
extend-exclude = [
"src/tests/data/**",
"src/libsexpp/**"
]

0 comments on commit 113ed54

Please sign in to comment.