Skip to content

Commit 12abab3

Browse files
authored
Merge pull request #2757 from alexandear/ci-add-codespell
CI: add spell checker
2 parents 8370d05 + e061f06 commit 12abab3

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.codespellrc

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# https://github.com/codespell-project/codespell#using-a-config-file
2+
3+
[codespell]
4+
5+
# Comma separated list of dirs to be skipped.
6+
skip = .git,*.pb.desc,*/node_modules/*,*/public/js/*,*/public/scss/*
7+
8+
# Comma separated list of words to be ignored. Words must be lowercased.
9+
ignore-words-list = ans,distroname,testof,hda,ststr
10+
11+
# Check file names as well.
12+
check-filenames = true

.github/workflows/test.yml

+14
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,20 @@ jobs:
6767
# the allow list corresponds to https://github.com/cncf/foundation/blob/e5db022a0009f4db52b89d9875640cf3137153fe/allowed-third-party-license-policy.md
6868
run: go-licenses check --include_tests ./... --allowed_licenses=Apache-2.0,BSD-2-Clause,BSD-2-Clause-FreeBSD,BSD-3-Clause,MIT,ISC,Python-2.0,PostgreSQL,X11,Zlib
6969

70+
spell:
71+
name: "Spell check"
72+
runs-on: ubuntu-24.04
73+
timeout-minutes: 5
74+
steps:
75+
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
76+
with:
77+
fetch-depth: 1
78+
- uses: codespell-project/actions-codespell@406322ec52dd7b488e48c1c4b82e2a8b3a1bf630 # v2.1
79+
with:
80+
check_filenames: true
81+
check_hidden: true
82+
# by default, codespell uses configuration from the .codespellrc
83+
7084
unit:
7185
name: "Unit tests"
7286
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)