mirror of
https://github.com/ovh/debian-cis.git
synced 2025-08-02 13:36:33 +02:00

- ensure correct formatting with shfmt - ensure correct syntax with shellcheck Co-authored-by: damien cavagnini <damien.cavagnini@corp.ovh.com>
25 lines
717 B
YAML
25 lines
717 B
YAML
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: check_has_test
|
|
name: check_has_test.sh
|
|
description: Ensure a check has a corresponding test
|
|
entry: hooks/check_has_test.sh
|
|
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/"
|