Skip to content

Commit

Permalink
ci: add job to check spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiapple852 committed Dec 24, 2024
1 parent da6735d commit b426c8d
Show file tree
Hide file tree
Showing 3 changed files with 128 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .config/spellcheck.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
dev_comments = true
skip_readme = false

[Hunspell]
lang = "en_US"
search_dirs = ["."]
extra_dictionaries = ["trippy.dic"]
skip_os_lookups = false
use_builtin = true
107 changes: 107 additions & 0 deletions .config/trippy.dic
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
100
%
'
+
100ms
10ms
1s
300s
5s
=
>
ASN
BSD4
CSV
Cloudflare
DF
DSCP
ECMP
ECN
Endianness
FreeBSD
GeoIp
Geolocation
Graphviz
ICMPv4
ICMPv6
IPinfo
IPs
IPv4
IPv6
MaxMind
NAT'ed
Num
ROFF
RTT
TBD
TODO
TOS
TXT
Trippy
Tui
XDG
accessor
addr
addrs
asn
boolean
calc
checksum
checksums
cidr
cloneable
config
connectionless
datagram
dec
deserialization
dest
dns
dublin
endianness
enqueue
enqueued
enqueuing
frontend
geolocation
getsockname
holsravbwdt
hostname
hostnames
icmp
impl
ip
ipv6
jitter
json
localhost
lookups
macOS
mmdb
mpls
multipath
newtype
paris
rfc1889
rfc2460
rfc3550
rfc4443
rfc4884
src
stddev
struct
submodule
syscall
tcp
timestamp
toml
traceroute
trippy
ttl
tui
tuple
u8
udp
uninitialised
unix
unselected
13 changes: 12 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -231,4 +231,15 @@ jobs:
uses: webiny/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
allowed-commit-types: "feat,fix,chore,docs,style,refactor,test,build,ci,revert"
allowed-commit-types: "feat,fix,chore,docs,style,refactor,test,build,ci,revert"

spelling:
runs-on: ubuntu-22.04
steps:
- name: Install cargo-spellcheck
uses: taiki-e/install-action@v2
with:
tool: cargo-spellcheck
- uses: actions/checkout@v4
- name: Run cargo-spellcheck
run: cargo spellcheck --code 1

0 comments on commit b426c8d

Please sign in to comment.