Skip to content

Commit 217c1e4

Browse files
authored
Add 4 more pre-commit hooks; fix JSON file (apache#1257)
The `check-json` hook found a JSON file with an unneeded trailing comma on one line
1 parent 3175ba4 commit 217c1e4

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

.pre-commit-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,24 @@ repos:
5454
description: trims trailing whitespace
5555
files: \.(bat|config|json|md|props|ps1|rdf|targets|tmpl|xml|ya?ml)$
5656
args: [--markdown-linebreak-ext=md]
57+
- id: check-ast
58+
name: run check-ast
59+
description: check Python files for syntax errors
60+
- id: check-builtin-literals
61+
name: run check-builtin-literals
62+
description: check Python files for proper use of built-in literals
5763
- id: check-case-conflict
5864
name: run check-case-conflict
5965
description: check for case conflicts in file names
66+
- id: check-executables-have-shebangs
67+
name: run check-executables-have-shebangs
68+
description: check that executable scripts have shebang lines
6069
- id: check-illegal-windows-names
6170
name: run check-illegal-windows-names
6271
description: check for Windows-illegal file names
72+
- id: check-json
73+
name: run check-json
74+
description: check JSON files for syntax errors
6375
- id: check-merge-conflict
6476
name: run check-merge-conflict
6577
description: check for merge conflict markers

websites/apidocs/docfx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@
582582
"_appFaviconPath": "logo/favicon.ico",
583583
"_enableSearch": true,
584584
"_appLogoPath": "logo/lucene-net-color.png",
585-
"_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>",
585+
"_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>"
586586
},
587587
"overwrite": [
588588
{

0 commit comments

Comments
 (0)