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/15 15:09:32 UTC

(lucenenet) branch master updated: Add 4 more pre-commit hooks; fix JSON file (#1257)

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 217c1e45f Add 4 more pre-commit hooks; fix JSON file (#1257)
217c1e45f is described below

commit 217c1e45f81b9df9cf3a4eab4713553b87bfeca7
Author: John Bampton <jb...@users.noreply.github.com>
AuthorDate: Thu Apr 16 01:09:26 2026 +1000

    Add 4 more pre-commit hooks; fix JSON file (#1257)
    
    The `check-json` hook found a JSON file with an unneeded trailing comma on one line
---
 .pre-commit-config.yaml     | 12 ++++++++++++
 websites/apidocs/docfx.json |  2 +-
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 1f64016af..6773fcb2e 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -54,12 +54,24 @@ repos:
         description: trims trailing whitespace
         files: \.(bat|config|json|md|props|ps1|rdf|targets|tmpl|xml|ya?ml)$
         args: [--markdown-linebreak-ext=md]
+      - id: check-ast
+        name: run check-ast
+        description: check Python files for syntax errors
+      - id: check-builtin-literals
+        name: run check-builtin-literals
+        description: check Python files for proper use of built-in literals
       - id: check-case-conflict
         name: run check-case-conflict
         description: check for case conflicts in file names
+      - id: check-executables-have-shebangs
+        name: run check-executables-have-shebangs
+        description: check that executable scripts have shebang lines
       - id: check-illegal-windows-names
         name: run check-illegal-windows-names
         description: check for Windows-illegal file names
+      - id: check-json
+        name: run check-json
+        description: check JSON files for syntax errors
       - id: check-merge-conflict
         name: run check-merge-conflict
         description: check for merge conflict markers
diff --git a/websites/apidocs/docfx.json b/websites/apidocs/docfx.json
index fc31710e2..237b8ac8e 100644
--- a/websites/apidocs/docfx.json
+++ b/websites/apidocs/docfx.json
@@ -582,7 +582,7 @@
       "_appFaviconPath": "logo/favicon.ico",
       "_enableSearch": true,
       "_appLogoPath": "logo/lucene-net-color.png",
-      "_appFooter": "Copyright &copy; 2024 The Apache Software Foundation, Licensed under the <a href='http://www.apache.org/licenses/LICENSE-2.0' target='_blank'>Apache License, Version 2.0</a><br/> <small>Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation. <br/>All other marks mentioned may be trademarks or registered trademarks of their respective owners.</small>",
+      "_appFooter": "Copyright &copy; 2024 The Apache Software Foundation, Licensed under the <a href='http://www.apache.org/licenses/LICENSE-2.0' target='_blank'>Apache License, Version 2.0</a><br/> <small>Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation. <br/>All other marks mentioned may be trademarks or registered trademarks of their respective owners.</small>"
     },
     "overwrite": [
       {