Skip to content

Commit

Permalink
Adding new plist-format-xml hook
Browse files Browse the repository at this point in the history
  • Loading branch information
n8felton committed Mar 4, 2024
1 parent f39601b commit 66422b8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,11 @@
language: python
pass_filenames: false
always_run: true

- id: plist-format-xml
name: Auto-format plist [XML]
description: Auto-format a Property List (plist) as XML.
entry: plutil -convert xml1
language: system
files: '\.(mobileconfig|pkginfo|plist|recipe)$'
types: [text]
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ All notable changes to this project will be documented in this file. This projec

## [Unreleased]

Nothing yet.
### Added

- New `plist-format-xml` hook to auto-format XML property list (plist) files to use tabs instead of spaces, and will alphabetically sort keys.

## [1.15.0] - 2024-02-11

Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ After adding a hook to your pre-commit config, it's not a bad idea to run `pre-c

This hook checks [Outset](https://github.com/chilcote/outset) scripts to ensure they're executable.

- __plist-format-xml__

This hook will auto-format XML property list (plist) files to use tabs instead of spaces, and will alphabetically sort keys.

### [AutoPkg](https://github.com/autopkg/autopkg)

- __check-autopkg-recipe-list__
Expand Down

0 comments on commit 66422b8

Please sign in to comment.