You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by pa...@apache.org on 2026/04/13 18:25:50 UTC

(lucenenet) branch master updated: pre-commit: upgrade codespell; fix spelling; exclude directories (#1248)

This is an automated email from the ASF dual-hosted git repository.

paulirwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git


The following commit(s) were added to refs/heads/master by this push:
     new a9edfff86 pre-commit: upgrade codespell; fix spelling; exclude directories (#1248)
a9edfff86 is described below

commit a9edfff8602c56eee1442c73b8cdd8f8bc6e756e
Author: John Bampton <jb...@users.noreply.github.com>
AuthorDate: Tue Apr 14 04:13:35 2026 +1000

    pre-commit: upgrade codespell; fix spelling; exclude directories (#1248)
    
    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
---
 .pre-commit-config.yaml                          | 4 ++--
 src/Lucene.Net/Search/SearcherLifetimeManager.cs | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 83d2a738e..eec6aab5e 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -32,12 +32,12 @@ repos:
         name: run check hooks apply
         description: check that all the hooks apply to the repository
   - repo: https://github.com/codespell-project/codespell
-    rev: v2.4.1
+    rev: v2.4.2
     hooks:
       - id: codespell
         name: run codespell
         description: check spelling with codespell
-        exclude: ^.*Lucene\.Net\.Tests.*$
+        exclude: ^src/Lucene\.Net\.Analysis\.Common/Analysis/../.*\.rslp$|^.*Lucene\.Net\.Tests.*$
         args: [--ignore-words=.github/linters/codespell.txt]
   - repo: https://github.com/oxipng/oxipng
     rev: v10.1.0
diff --git a/src/Lucene.Net/Search/SearcherLifetimeManager.cs b/src/Lucene.Net/Search/SearcherLifetimeManager.cs
index 1896c5816..aa5d3dc16 100644
--- a/src/Lucene.Net/Search/SearcherLifetimeManager.cs
+++ b/src/Lucene.Net/Search/SearcherLifetimeManager.cs
@@ -265,7 +265,7 @@ public bool DoPrune(double ageSec, IndexSearcher searcher)
         /// entries are passed to the <see cref="IPruner"/> in sorted (newest to
         /// oldest <see cref="IndexSearcher"/>) order.
         ///
-        /// <para/><b>NOTE</b>: you must peridiocally call this, ideally
+        /// <para/><b>NOTE</b>: you must periodically call this, ideally
         /// from the same background thread that opens new
         /// searchers.
         /// </summary>