.pre-commit-config.yaml 1.6 KB

1234567891011121314151617181920212223242526272829
  1. # See https://pre-commit.com for more information
  2. # See https://pre-commit.com/hooks.html for more hooks
  3. repos:
  4. - repo: https://github.com/pre-commit/pre-commit-hooks
  5. rev: v4.1.0
  6. hooks:
  7. - id: check-added-large-files # prevents giant files from being committed.
  8. - id: check-byte-order-marker # forbids files which have a utf-8 byte-order marker.
  9. - id: check-case-conflict # checks for files that would conflict in case-insensitive filesystems.
  10. - id: check-executables-have-shebangs # ensures that (non-binary) executables have a shebang.
  11. - id: check-shebang-scripts-are-executable # ensures that (non-binary) files with a shebang are executable.
  12. - id: check-merge-conflict # checks for files that contain merge conflict strings.
  13. - id: check-symlinks # checks for symlinks which do not point to anything.
  14. - id: check-vcs-permalinks # ensures that links to vcs websites are permalinks.
  15. - id: destroyed-symlinks # detects symlinks which are changed to regular files with a content of a path which that symlink was pointing to.
  16. - id: forbid-new-submodules # prevents addition of new git submodules.
  17. - id: mixed-line-ending # replaces or checks mixed line ending.
  18. args: ["--fix", "no"]
  19. - repo: https://github.com/jumanjihouse/pre-commit-hooks.git
  20. rev: "2.1.5"
  21. hooks:
  22. - id: shellcheck
  23. - repo: https://code.robertkosten.de/rkosten/pre-commit-hooks.git
  24. rev: "0.1.0"
  25. hooks:
  26. - id: shellharden