Add shfmt to .pre-commit-config
Run shfmt as part of the ci workflow. Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
parent
a04a5f70c7
commit
af6cda9073
@ -45,3 +45,12 @@ repos:
|
|||||||
types: [text]
|
types: [text]
|
||||||
files: ^binaries/
|
files: ^binaries/
|
||||||
exclude: (^binaries/data/mods/(mod|public)/art/.*\.xml|\.dae$)
|
exclude: (^binaries/data/mods/(mod|public)/art/.*\.xml|\.dae$)
|
||||||
|
- repo: https://github.com/scop/pre-commit-shfmt
|
||||||
|
rev: v3.9.0-1
|
||||||
|
hooks:
|
||||||
|
- id: shfmt
|
||||||
|
args:
|
||||||
|
- --diff
|
||||||
|
- --simplify
|
||||||
|
stages: [pre-commit]
|
||||||
|
exclude: ^build/premake/premake5/
|
||||||
|
Loading…
Reference in New Issue
Block a user