From 777cd6a5e41bb610775410a12b203371e8e3cf35 Mon Sep 17 00:00:00 2001 From: Bernhard Schuster Date: Tue, 10 Aug 2021 16:34:01 +0200 Subject: [PATCH] fix: spellcheck, add metadata key --- Cargo.toml | 4 ++++ core-primitives/src/lib.rs | 2 +- node/core/pvf/src/worker_common.rs | 2 +- scripts/gitlab/lingua.dic | 3 ++- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 02c1d062241a..38702a3142f8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -142,3 +142,7 @@ polkadot = { path = "/usr/bin/polkadot" } [package.metadata.rpm.files] "../scripts/packaging/polkadot.service" = { path = "/usr/lib/systemd/system/polkadot.service", mode = "644" } + + +[package.metadata.spellcheck] +config = "./scripts/gitlab/spellcheck.toml" \ No newline at end of file diff --git a/core-primitives/src/lib.rs b/core-primitives/src/lib.rs index b5b526d7e052..f0313b95d0d1 100644 --- a/core-primitives/src/lib.rs +++ b/core-primitives/src/lib.rs @@ -120,7 +120,7 @@ pub type DownwardMessage = sp_std::vec::Vec; #[derive(Encode, Decode, Clone, sp_runtime::RuntimeDebug, PartialEq)] #[cfg_attr(feature = "std", derive(MallocSizeOf))] pub struct InboundDownwardMessage { - /// The block number at which this messages was put into the downward message queue. + /// The block number at which these messages were put into the downward message queue. pub sent_at: BlockNumber, /// The actual downward message to processes. pub msg: DownwardMessage, diff --git a/node/core/pvf/src/worker_common.rs b/node/core/pvf/src/worker_common.rs index 0c142776764f..34bfc7cf28ed 100644 --- a/node/core/pvf/src/worker_common.rs +++ b/node/core/pvf/src/worker_common.rs @@ -148,7 +148,7 @@ where /// A struct that represents an idle worker. /// /// This struct is supposed to be used as a token that is passed by move into a subroutine that -/// initiates a job. If the worker dies on the duty, then the token is not returned back. +/// initiates a job. If the worker dies on the duty, then the token is not returned. #[derive(Debug)] pub struct IdleWorker { /// The stream to which the child process is connected. diff --git a/scripts/gitlab/lingua.dic b/scripts/gitlab/lingua.dic index 948ef7e1000f..10ff1e8133eb 100644 --- a/scripts/gitlab/lingua.dic +++ b/scripts/gitlab/lingua.dic @@ -1,8 +1,9 @@ -150 +170 accessor/MS activations acyclic adversary/SM +allocator/SM annualised anonymize/D Apache-2.0/M