Robert Kosten 2 роки тому
батько
коміт
f89fe282ca
1 змінених файлів з 23 додано та 0 видалено
  1. 23 0
      .pre-commit-config.yaml

+ 23 - 0
.pre-commit-config.yaml

@@ -0,0 +1,23 @@
+# See https://pre-commit.com for more information
+# See https://pre-commit.com/hooks.html for more hooks
+
+repos:
+  - repo: https://github.com/pre-commit/pre-commit-hooks
+    rev: v4.1.0
+    hooks:
+      - id: check-added-large-files              # prevents giant files from being committed.
+      - id: check-byte-order-marker              # forbids files which have a utf-8 byte-order marker.
+      - id: check-case-conflict                  # checks for files that would conflict in case-insensitive filesystems.
+      - id: check-executables-have-shebangs      # ensures that (non-binary) executables have a shebang.
+      - id: check-shebang-scripts-are-executable # ensures that (non-binary) files with a shebang are executable.
+      - id: check-merge-conflict                 # checks for files that contain merge conflict strings.
+      - id: check-symlinks                       # checks for symlinks which do not point to anything.
+      - id: check-vcs-permalinks                 # ensures that links to vcs websites are permalinks.
+      - id: destroyed-symlinks                   # detects symlinks which are changed to regular files with a content of a path which that symlink was pointing to.
+      - id: forbid-new-submodules                # prevents addition of new git submodules.
+      - id: mixed-line-ending                    # replaces or checks mixed line ending.
+        args: ["--fix", "no"]
+  - repo: https://code.robertkosten.de/rkosten/pre-commit-hooks.git
+    rev: e2096d96eab5733da24ae0d34ae97b19f4895efe
+    hooks:
+      - id: shellharden