objectif
Fiabiliser vos scripts et éviter les pièges classiques du shell.
code minimal
shellcheck script.sh
utilisation
# ignorer une règle (SC2086) sur une ligne
# shellcheck disable=SC2086
cmd $var
variante(s) utile(s)
# sortie JSON pour CI
shellcheck -f json script.sh > report.json
notes
- vise bash/sh/dash/ksh.
- appliquez les correctifs proposés quand pertinents.