From b426c8de45fab54e19c67d5fdb5b4e714bc642c4 Mon Sep 17 00:00:00 2001 From: FujiApple Date: Tue, 24 Dec 2024 08:46:02 +0800 Subject: [PATCH] ci: add job to check spelling --- .config/spellcheck.toml | 9 ++++ .config/trippy.dic | 107 +++++++++++++++++++++++++++++++++++++++ .github/workflows/ci.yml | 13 ++++- 3 files changed, 128 insertions(+), 1 deletion(-) create mode 100644 .config/spellcheck.toml create mode 100644 .config/trippy.dic diff --git a/.config/spellcheck.toml b/.config/spellcheck.toml new file mode 100644 index 00000000..f4123537 --- /dev/null +++ b/.config/spellcheck.toml @@ -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 diff --git a/.config/trippy.dic b/.config/trippy.dic new file mode 100644 index 00000000..859b98a2 --- /dev/null +++ b/.config/trippy.dic @@ -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 \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5743df55..a6612e0f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -231,4 +231,15 @@ jobs: uses: webiny/action-conventional-commits@v1.3.0 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - allowed-commit-types: "feat,fix,chore,docs,style,refactor,test,build,ci,revert" \ No newline at end of file + 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 \ No newline at end of file