|
32 | 32 | files: '(jamf|jss)/extension.?attributes/.*\.(sh|bash|py|rb|js|pl)$' |
33 | 33 | types: [text] |
34 | 34 |
|
35 | | -- id: check-jamf-scripts |
36 | | - name: Check Jamf Scripts |
37 | | - description: This hook checks Jamf scripts for common issues. |
38 | | - entry: check-jamf-scripts |
| 35 | +- id: check-jamf-json-schemas |
| 36 | + name: Check Jamf JSON Schemas |
| 37 | + description: This hook checks Jamf JSON schemas for inconsistencies and common issues. |
| 38 | + entry: check-jamf-json-schemas |
39 | 39 | language: python |
40 | | - # Switch from files regex to "OR" types when that feature is available: |
41 | | - # https://github.com/pre-commit/pre-commit/issues/607 |
42 | | - files: '(jamf|jss)/scripts/.*\.(sh|bash|py|rb|js|pl)$' |
| 40 | + files: '\.json$' |
43 | 41 | types: [text] |
44 | 42 |
|
45 | 43 | - id: check-jamf-profiles |
|
52 | 50 | files: '(jamf|jss)/profiles/.*\.(mobileconfig|plist)$' |
53 | 51 | types: [text] |
54 | 52 |
|
| 53 | +- id: check-jamf-scripts |
| 54 | + name: Check Jamf Scripts |
| 55 | + description: This hook checks Jamf scripts for common issues. |
| 56 | + entry: check-jamf-scripts |
| 57 | + language: python |
| 58 | + # Switch from files regex to "OR" types when that feature is available: |
| 59 | + # https://github.com/pre-commit/pre-commit/issues/607 |
| 60 | + files: '(jamf|jss)/scripts/.*\.(sh|bash|py|rb|js|pl)$' |
| 61 | + types: [text] |
| 62 | + |
55 | 63 | - id: check-munki-pkgsinfo |
56 | 64 | name: Check Munki Pkginfo Files |
57 | 65 | description: This hook checks Munki pkginfo files to ensure they are valid. |
58 | 66 | entry: check-munki-pkgsinfo |
59 | 67 | language: python |
60 | | - files: '^pkgsinfo/' |
| 68 | + files: "^pkgsinfo/" |
61 | 69 | types: [text] |
62 | 70 |
|
63 | 71 | - id: check-munkiadmin-scripts |
64 | 72 | name: Check MunkiAdmin Scripts |
65 | 73 | description: This hook ensures MunkiAdmin scripts are executable. |
66 | 74 | entry: check-munkiadmin-scripts |
67 | 75 | language: python |
68 | | - files: '^MunkiAdmin/scripts/' |
| 76 | + files: "^MunkiAdmin/scripts/" |
69 | 77 | types: [text] |
70 | 78 |
|
71 | 79 | - id: check-munkipkg-buildinfo |
|
81 | 89 | description: This hook checks Outset scripts to ensure they're executable. |
82 | 90 | entry: check-outset-scripts |
83 | 91 | language: python |
84 | | - files: 'usr/local/outset/(boot-once|boot-every|login-once|login-every|login-privileged-once|login-privileged-every|on-demand)/' |
| 92 | + files: "usr/local/outset/(boot-once|boot-every|login-once|login-every|login-privileged-once|login-privileged-every|on-demand)/" |
85 | 93 | types: [text] |
86 | 94 |
|
87 | 95 | - id: check-plists |
|
92 | 100 | files: '\.(plist|recipe|mobileconfig|pkginfo)$' |
93 | 101 | types: [text] |
94 | 102 |
|
| 103 | +- id: check-profilecreator-manifests |
| 104 | + name: Check ProfileCreator Manifests |
| 105 | + description: This hook checks ProfileCreator manifest plists for inconsistencies and common issues. |
| 106 | + entry: check-profilecreator-manifests |
| 107 | + language: python |
| 108 | + files: '\.plist$' |
| 109 | + types: [text] |
| 110 | + |
95 | 111 | - id: forbid-autopkg-overrides |
96 | 112 | name: Forbid AutoPkg Overrides |
97 | 113 | description: This hook prevents AutoPkg overrides from being added to the repo. |
|
0 commit comments