Skip to content

Commit 952feb6

Browse files
always sort
1 parent 0cea8be commit 952feb6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

NEWS.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
This version marks the switch to `language: r` of all existing hooks. This
44
includes switching to R based hook for `readme-rmd-render`, avoiding the
55
{usethis} dependency, integration tests via GitHub Actions, auto-updates for
6-
used packages, roxygen snippet generation and more.
6+
used packages, roxygen snippet generation and more. In addition:
7+
8+
* Always sort `inst/WORDLIST` (#303).
79

810
# precommit v0.1.3.9012
911

inst/hooks/exported/spell-check.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,7 @@ if (nrow(spelling_errors) > 0) {
4747
"Then, try committing again.\n"
4848
)
4949
stop("Spell check failed", call. = FALSE)
50+
} else {
51+
ignore <- ignore[ignore != ""] # drop blanks if any
52+
writeLines(ignore, path_wordlist)
5053
}

0 commit comments

Comments
 (0)