Skip to content

Commit c18e280

Browse files
committed
pre-commit: upgrade codespell; fix spelling; exclude directories
After running `pre-commit autoupdate` the codespell hook was updated to the latest version The new version of codespell found more spelling mistakes. Which lead me to exclude some "language" files from the English spelling checking One typo was fixed https://pre-commit.com/#pre-commit-autoupdate
1 parent e21c9b8 commit c18e280

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ repos:
3232
name: run check hooks apply
3333
description: check that all the hooks apply to the repository
3434
- repo: https://github.com/codespell-project/codespell
35-
rev: v2.4.1
35+
rev: v2.4.2
3636
hooks:
3737
- id: codespell
3838
name: run codespell
3939
description: check spelling with codespell
40-
exclude: ^.*Lucene\.Net\.Tests.*$
40+
exclude: ^src/Lucene\.Net\.Analysis\.Common/Analysis/../.*$|^.*Lucene\.Net\.Tests.*$
4141
args: [--ignore-words=.github/linters/codespell.txt]
4242
- repo: https://github.com/pre-commit/pre-commit-hooks
4343
rev: v6.0.0

src/Lucene.Net/Search/SearcherLifetimeManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ public bool DoPrune(double ageSec, IndexSearcher searcher)
265265
/// entries are passed to the <see cref="IPruner"/> in sorted (newest to
266266
/// oldest <see cref="IndexSearcher"/>) order.
267267
///
268-
/// <para/><b>NOTE</b>: you must peridiocally call this, ideally
268+
/// <para/><b>NOTE</b>: you must periodically call this, ideally
269269
/// from the same background thread that opens new
270270
/// searchers.
271271
/// </summary>

0 commit comments

Comments
 (0)