From 9ba87539165f6ea1f1d85f916152e7164623d03b Mon Sep 17 00:00:00 2001 From: Bernhard Schuster Date: Fri, 23 Oct 2020 17:28:23 +0200 Subject: [PATCH] chore: add cargo spellcheck configuration and custom topic specifc dictionary (#1841) --- polkadot/.config/lingua.dic | 88 ++++++++++++++++++++++++++++++++ polkadot/.config/spellcheck.toml | 12 +++++ 2 files changed, 100 insertions(+) create mode 100644 polkadot/.config/lingua.dic create mode 100644 polkadot/.config/spellcheck.toml diff --git a/polkadot/.config/lingua.dic b/polkadot/.config/lingua.dic new file mode 100644 index 0000000000..74981374ca --- /dev/null +++ b/polkadot/.config/lingua.dic @@ -0,0 +1,88 @@ +90 +annualised/MS +Apache-2.0/M +api/SM +API/SM +APIs +async +BFT/M +bitfield/MS +blake2/MS +blockchain/MS +borked +BTC/S +CLI/MS +config/MS +crypto/MS +customizable/B +debian/M +decodable/MS +DOT/S +ed25519 +enum/MS +ERC-20 +ethereum/MS +externality/MS +extrinsic/MS +extrinsics +fedora/M +GiB/S +GPL/M +GPLv3/M +Handler/MS +https +inherent/MS +initialize/RG +instantiate/B +intrinsic/MS +intrinsics +io +js +keccak256/M +KSM/S +kusama/S +KYC/M +merkle/MS +misbehavior/SM +misbehaviors +MIT/M +multivalidator/SM +oneshot/MS +others' +parablock/MS +parachain/MS +parameterize/D +polkadot/MS +pov-block/MS +PoV/MS +promethius +promethius' +provisioner/MS +redhat/M +repo/MS +RPC/MS +runtime/MS +rustc/MS +sr25519 +struct/MS +subsystem/MS +subsystems' +taskmanager/MS +teleport/RG +teleportation/SM +teleporter/SM +teleporters +testnet/MS +trie/MS +trustless/Y +ubuntu/M +union/MSG +unservable/B +validator/SM +w3f/MS +wasm/M +WND/S +XCM/S +XCMP/M +include/BG +isolate/BG \ No newline at end of file diff --git a/polkadot/.config/spellcheck.toml b/polkadot/.config/spellcheck.toml new file mode 100644 index 0000000000..0e7d6b1309 --- /dev/null +++ b/polkadot/.config/spellcheck.toml @@ -0,0 +1,12 @@ +[hunspell] +lang = "en_US" +search_dirs = ["."] +extra_dictionaries = ["lingua.dic"] + +[hunspell.quirks] +# `Type`'s +# 5x +# He tagged it as 'TheGreatestOfAllTimes' +transform_regex = ["^'([^\\s])'$", "^[0-9]+(?:\\.[0-9]*)?x$", "^'s$", "^\\+$"] +allow_concatenation = true +allow_dashes = true