This is an automated email from the ASF dual-hosted git repository.
lprimak pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/shiro.git
The following commit(s) were added to refs/heads/main by this push:
new 5a2759b25 Add official pre-commit hook pretty-format-json (#2529)
5a2759b25 is described below
commit 5a2759b257e52dc7b6b0537c1b75f24fe1bf15e7
Author: John Bampton <[email protected]>
AuthorDate: Tue Feb 10 02:48:27 2026 +1000
Add official pre-commit hook pretty-format-json (#2529)
https://github.com/pre-commit/pre-commit-hooks?tab=readme-ov-file#pretty-format-json
---
.pre-commit-config.yaml | 3 +++
.../resources/META-INF/additional-spring-configuration-metadata.json | 1 -
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 438373100..5e411bea5 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -74,6 +74,9 @@ repos:
description: Forbids any submodules in the repository
- id: mixed-line-ending
description: replaces or checks mixed line ending
+ - id: pretty-format-json
+ description: checks that all your JSON files are pretty
+ args: [--autofix, --no-sort-keys]
- id: trailing-whitespace
description: Trims trailing whitespace
args: [--markdown-linebreak-ext=md]
diff --git
a/support/spring-boot/spring-boot-starter/src/main/resources/META-INF/additional-spring-configuration-metadata.json
b/support/spring-boot/spring-boot-starter/src/main/resources/META-INF/additional-spring-configuration-metadata.json
index b7e5d9822..bfa06df5f 100644
---
a/support/spring-boot/spring-boot-starter/src/main/resources/META-INF/additional-spring-configuration-metadata.json
+++
b/support/spring-boot/spring-boot-starter/src/main/resources/META-INF/additional-spring-configuration-metadata.json
@@ -5,7 +5,6 @@
}
],
"properties": [
-
{
"name": "shiro.enabled",
"type": "java.lang.Boolean",