feat: add some precommit (#274)

- ensure correct formatting with shfmt
- ensure correct syntax with shellcheck

Co-authored-by: damien cavagnini <damien.cavagnini@corp.ovh.com>
This commit is contained in:
damcav35
2025-07-22 11:14:41 +02:00
committed by GitHub
parent 51bc5825d6
commit c9f9137e59
3 changed files with 28 additions and 0 deletions

View File

@@ -8,3 +8,17 @@ repos:
language: script
pass_filenames: true
files: "^bin/hardening/"
- id: shfmt
name: shfmt.sh
description: Ensure correct formatting
entry: hooks/shfmt.sh
language: script
pass_filenames: true
files: "^(bin|tests)/hardening/"
- id: shellcheck
name: shellcheck.sh
description: Ensure correct syntax
entry: hooks/shellcheck.sh
language: script
pass_filenames: true
files: "^(bin|tests)/hardening/"