Fix ommissions in window scrolling commands that ought to clear vscroll
[emacs.git] / admin / run-codespell
blob991b72073b2344740fe90b8effbfca149df7da49
1 #!/bin/bash
2 ### run-codespell - run codespell on Emacs
4 ## Copyright (C) 2023-2024 Free Software Foundation, Inc.
6 ## Author: Stefan Kangas <stefankangas@gmail.com>
8 ## This file is part of GNU Emacs.
10 ## GNU Emacs is free software: you can redistribute it and/or modify
11 ## it under the terms of the GNU General Public License as published by
12 ## the Free Software Foundation, either version 3 of the License, or
13 ## (at your option) any later version.
15 ## GNU Emacs is distributed in the hope that it will be useful,
16 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ## GNU General Public License for more details.
20 ## You should have received a copy of the GNU General Public License
21 ## along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
23 ### Commentary:
25 ## Run codespell on the Emacs source tree.
27 ## codespell 2.2.2 or later is recommended. Earlier versions had a
28 ## bug where the line count was incorrect for files containing "^L"
29 ## characters.
31 source "${0%/*}/emacs-shell-lib"
33 CODESPELL_DIR="${PD}/codespell"
35 CODESPELL_RC="${CODESPELL_DIR}/codespell.rc"
36 CODESPELL_EXCLUDE="${CODESPELL_DIR}/codespell.exclude"
37 CODESPELL_IGNORE="${CODESPELL_DIR}/codespell.ignore"
38 CODESPELL_DICTIONARY="${CODESPELL_DIR}/codespell.dictionary"
40 emacs_run_codespell ()
42 git ls-files |\
43 grep -v -E -e '^(lib|m4)/.*' |\
44 grep -v -E -e '^admin/(charsets|codespell|unidata)/.*' |\
45 grep -v -E -e '^doc/misc/texinfo.tex$' |\
46 grep -v -E -e '^etc/(AUTHORS|HELLO|publicsuffix.txt)$' |\
47 grep -v -E -e '^etc/refcards/(cs|de|fr|pl|pt|sk)-.+.tex$' |\
48 grep -v -E -e '^etc/tutorials/TUTORIAL\..+' |\
49 grep -v -E -e '^leim/(MISC|SKK)-DIC/.*' |\
50 grep -v -E -e '^lisp/language/ethio-util.el' |\
51 grep -v -E -e '^lisp/ldefs-boot.el' |\
52 grep -v -E -e '^lisp/leim/.*' |\
53 grep -v -E -e '^test/lisp/net/puny-resources/IdnaTestV2.txt' |\
54 grep -v -E -e '^test/manual/(etags|indent)/.*' |\
55 grep -v -E -e '^test/src/regex-resources/.*' |\
56 xargs codespell \
57 --config "$CODESPELL_RC" \
58 --exclude-file "$CODESPELL_EXCLUDE" \
59 --ignore-words "$CODESPELL_IGNORE" \
60 --disable-colors \
61 --write-changes \
65 emacs_run_codespell
66 emacs_run_codespell --dictionary "$CODESPELL_DICTIONARY"
68 exit 0