From d52fb5c4848d56e24c806615e0c831c74aa5d20c Mon Sep 17 00:00:00 2001 From: Roy Ivy III Date: Wed, 27 May 2020 13:26:55 -0500 Subject: [PATCH] docs/spell ~ spell-check and addition of exceptions --- src/uucore/src/lib/features.rs | 2 -- src/uucore/src/lib/features/encoding.rs | 3 ++- src/uucore/src/lib/features/entries.rs | 2 ++ src/uucore/src/lib/features/mode.rs | 3 ++- src/uucore/src/lib/features/parse_time.rs | 2 ++ src/uucore/src/lib/features/process.rs | 4 +++- src/uucore/src/lib/features/signals.rs | 3 +++ src/uucore/src/lib/mods.rs | 2 -- src/uucore/src/lib/mods/panic.rs | 2 -- src/uucore/src/uucore_procs/src/lib.rs | 2 -- 10 files changed, 14 insertions(+), 11 deletions(-) diff --git a/src/uucore/src/lib/features.rs b/src/uucore/src/lib/features.rs index 438963135..d5927fc6f 100644 --- a/src/uucore/src/lib/features.rs +++ b/src/uucore/src/lib/features.rs @@ -1,7 +1,5 @@ // features ~ feature-gated modules (core/bundler file) -// spell-checker:ignore (uucore/uutils) coreopts libc musl utmpx uucore uutils winapi - #[cfg(feature = "encoding")] pub mod encoding; #[cfg(feature = "fs")] diff --git a/src/uucore/src/lib/features/encoding.rs b/src/uucore/src/lib/features/encoding.rs index 8544eb61c..4bddd522e 100644 --- a/src/uucore/src/lib/features/encoding.rs +++ b/src/uucore/src/lib/features/encoding.rs @@ -4,7 +4,8 @@ // // For the full copyright and license information, please view the LICENSE // file that was distributed with this source code. -// + +// spell-checker:ignore (strings) ABCDEFGHIJKLMNOPQRSTUVWXYZ extern crate data_encoding; extern crate failure; diff --git a/src/uucore/src/lib/features/entries.rs b/src/uucore/src/lib/features/entries.rs index a9bc8b2d4..a921af2d0 100644 --- a/src/uucore/src/lib/features/entries.rs +++ b/src/uucore/src/lib/features/entries.rs @@ -5,6 +5,8 @@ // For the full copyright and license information, please view the LICENSE // file that was distributed with this source code. +// spell-checker:ignore (vars) Passwd cstr fnam gecos ngroups + //! Get password/group file entry //! //! # Examples: diff --git a/src/uucore/src/lib/features/mode.rs b/src/uucore/src/lib/features/mode.rs index 0b43fdb02..7f102e792 100644 --- a/src/uucore/src/lib/features/mode.rs +++ b/src/uucore/src/lib/features/mode.rs @@ -4,7 +4,8 @@ // // For the full copyright and license information, please view the LICENSE // file that was distributed with this source code. -// + +// spell-checker:ignore (vars) fperm srwx pub fn parse_numeric(fperm: u32, mut mode: &str) -> Result { let (op, pos) = parse_op(mode, Some('='))?; diff --git a/src/uucore/src/lib/features/parse_time.rs b/src/uucore/src/lib/features/parse_time.rs index e479f62a4..8e822685b 100644 --- a/src/uucore/src/lib/features/parse_time.rs +++ b/src/uucore/src/lib/features/parse_time.rs @@ -5,6 +5,8 @@ // For the full copyright and license information, please view the LICENSE // file that was distributed with this source code. +// spell-checker:ignore (vars) NANOS numstr + use std::time::Duration; pub fn from_str(string: &str) -> Result { diff --git a/src/uucore/src/lib/features/process.rs b/src/uucore/src/lib/features/process.rs index 96dde84ae..f3f9680e8 100644 --- a/src/uucore/src/lib/features/process.rs +++ b/src/uucore/src/lib/features/process.rs @@ -5,7 +5,9 @@ // // For the full copyright and license information, please view the LICENSE file // that was distributed with this source code. -// + +// spell-checker:ignore (vars) cvar exitstatus +// spell-checker:ignore (sys/unix) WIFSIGNALED use libc::{c_int, gid_t, pid_t, uid_t}; use std::fmt; diff --git a/src/uucore/src/lib/features/signals.rs b/src/uucore/src/lib/features/signals.rs index 2652520df..294669eab 100644 --- a/src/uucore/src/lib/features/signals.rs +++ b/src/uucore/src/lib/features/signals.rs @@ -5,6 +5,9 @@ // For the full copyright and license information, please view the LICENSE file // that was distributed with this source code. +// spell-checker:ignore (vars/api) fcntl setrlimit setitimer +// spell-checker:ignore (vars/signals) ABRT ALRM CHLD SEGV SIGABRT SIGALRM SIGBUS SIGCHLD SIGCONT SIGEMT SIGFPE SIGHUP SIGILL SIGINFO SIGINT SIGIO SIGIOT SIGKILL SIGPIPE SIGPROF SIGQUIT SIGSEGV SIGSTOP SIGSYS SIGTERM SIGTRAP SIGTSTP SIGTTIN SIGTTOU SIGURG SIGUSR SIGVTALRM SIGWINCH SIGXCPU SIGXFSZ STKFLT TSTP TTIN TTOU VTALRM XCPU XFSZ + pub static DEFAULT_SIGNAL: usize = 15; pub struct Signal<'a> { diff --git a/src/uucore/src/lib/mods.rs b/src/uucore/src/lib/mods.rs index 542db5cd1..0becc71bd 100644 --- a/src/uucore/src/lib/mods.rs +++ b/src/uucore/src/lib/mods.rs @@ -1,6 +1,4 @@ // mods ~ cross-platforms modules (core/bundler file) -// spell-checker:ignore (uucore/uutils) coreopts libc musl utmpx uucore uutils winapi - pub mod coreopts; pub mod panic; diff --git a/src/uucore/src/lib/mods/panic.rs b/src/uucore/src/lib/mods/panic.rs index 2f8fb519e..6947df2ac 100644 --- a/src/uucore/src/lib/mods/panic.rs +++ b/src/uucore/src/lib/mods/panic.rs @@ -1,5 +1,3 @@ -// spell-checker:ignore () SIGPIPE maint uutils - use std::panic; //## SIGPIPE handling background/discussions ... diff --git a/src/uucore/src/uucore_procs/src/lib.rs b/src/uucore/src/uucore_procs/src/lib.rs index 5b7d99a75..d867c7d10 100644 --- a/src/uucore/src/uucore_procs/src/lib.rs +++ b/src/uucore/src/uucore_procs/src/lib.rs @@ -5,8 +5,6 @@ extern crate proc_macro; -// spell-checker:ignore () SIGPIPE maint uucore uumain uutils - //## rust proc-macro background info //* ref: @@ //* ref: [path construction from LitStr](https://oschwald.github.io/maxminddb-rust/syn/struct.LitStr.html) @@