]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
format(sh): Add shell script pre-commit config
authorSONOLET Aymeric <aymeric.sonolet@cea.fr>
Tue, 19 Dec 2023 16:41:36 +0000 (17:41 +0100)
committerSONOLET Aymeric <aymeric.sonolet@cea.fr>
Tue, 19 Dec 2023 16:41:36 +0000 (17:41 +0100)
.pre-commit-config.yaml

index 51b086a8139ce35765a5f83a3869df624d524be6..039cf45ac018cc776d808d0a69c07a24d54735a7 100644 (file)
@@ -22,3 +22,16 @@ repos:
     rev: v14.0.0  # Use the sha / tag you want to point at
     hooks:
     - id: clang-format
+  - repo: https://github.com/scop/pre-commit-shfmt
+    rev: v3.7.0-4
+    hooks:
+    # Choose one of:
+    - id: shfmt         # prebuilt upstream executable
+      args: [--indent=4, -w, -s]
+    # - id: shfmt-src     # build from source (requires/installs Go to build)
+    # - id: shfmt-docker  # Docker image (requires Docker to run)
+  - repo: https://github.com/shellcheck-py/shellcheck-py
+    rev: v0.9.0.6
+    hooks:
+    - id: shellcheck
+      args: [--severity=error]