]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: ensure that new "make syntax-check"-run sc_codespell passes
authorCollin Funk <collin.funk1@gmail.com>
Fri, 4 Apr 2025 19:35:15 +0000 (12:35 -0700)
committerPádraig Brady <P@draigBrady.com>
Fri, 4 Apr 2025 20:14:29 +0000 (21:14 +0100)
* cfg.mk (codespell_ignore_words_list): Ignore false-positives.
(exclude_file_name_regexp--sc_codespell): Skip some file names.
* doc/coreutils.texi (mktemp invocation): Use "alphanumeric" which is
consistent with the rest of the documentation.
* src/expand-common.c: Fix typo.
* src/ls.c: Likewise.
* tests/split/l-chunk-root.sh: Likewise.

cfg.mk
doc/coreutils.texi
src/expand-common.c
src/ls.c
tests/split/l-chunk-root.sh

diff --git a/cfg.mk b/cfg.mk
index a085194b69df2c5fb859aedda9a0af29e0eab9e1..2b24355ad4b267db77b719bbf62412291a19ecf1 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -955,3 +955,9 @@ _gl_TS_unmarked_extern_vars = ptr_MD5_.*
 # Other tight_scope settings
 _gl_TS_dir = .
 _gl_TS_obj_files = src/*.$(OBJEXT)
+# Settings for running codespell.
+csiwl_1 = debbugs,clen,te,bu,shs,linke,fo,souch,inout,outin
+csiwl_2 = kno,ois,afile,whats,hda,indx,ot,nam
+codespell_ignore_words_list = $(csiwl_1),$(csiwl_2)
+exclude_file_name_regexp--sc_codespell = \
+  ^(THANKS\.in|tests/pr/.*(F|tn?|l(o|m|i)|bl))$$
index 45f4c800261b56a051e6ee40805b2f93df5664d2..d6633f04cf80a48c9c9fcb0b5a2113b0c3917c8e 100644 (file)
@@ -14803,7 +14803,7 @@ and print its name.  If given, @var{template} must include at least
 three consecutive @samp{X}s in the last component.  If omitted, the template
 @samp{tmp.XXXXXXXXXX} is used, and option @option{--tmpdir} is
 implied.  The final run of @samp{X}s in the @var{template} will be replaced
-by alpha-numeric characters; thus, on a case-sensitive file system,
+by alphanumeric characters; thus, on a case-sensitive file system,
 and with a @var{template} including a run of @var{n} instances of @samp{X},
 there are @samp{62**@var{n}} potential file names.
 
index 2dbbbe492ecd38278408a74de6b910b2a7e29166..732123f8d46cf2ae80627a780c68fe7b7c8e6af0 100644 (file)
@@ -273,7 +273,7 @@ finalize_tab_stops (void)
 
 
 /* Return number of first tab stop after COLUMN.  TAB_INDEX specifies
-   amny multiple tab-sizes.  Set *LAST_TAB depending on whether we are
+   many multiple tab-sizes.  Set *LAST_TAB depending on whether we are
    returning COLUMN + 1 merely because we're past the last tab.
    If the number would overflow, diagnose this and exit.  */
 extern colno
index 2cf4ee444437ef5e192db5610dd3534efffaea29..6690f7747e3d19136a109719ba1088b2eff37eff 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
@@ -3538,7 +3538,7 @@ gobble_file (char const *name, enum filetype type, ino_t inode,
 
       /* Let the user know via '?' if errno is EACCES, which can
          happen with Linux kernel 6.12 on an NFS file system.
-         That's better than a longwinded diagnostic.
+         That's better than a long-winded diagnostic.
 
          Similarly, ignore ENOENT which may happen on some versions
          of cygwin when processing dangling symlinks for example.
index 49d2e559ddbbba49159b2066f26b7176bf1e0038..df74a438411b511e00ddd5c54f49958b144333b3 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# test splitting into newline delineated chunks from infinite imput
+# test splitting into newline delineated chunks from infinite input
 
 # Copyright (C) 2023-2025 Free Software Foundation, Inc.