.pre-commit-config.yaml 771 B

1234567891011121314151617181920212223242526272829
  1. repos:
  2. - repo: local
  3. hooks:
  4. - id: shfmt
  5. name: shfmt
  6. minimum_pre_commit_version: 2.4.0
  7. language: system
  8. types: [shell]
  9. entry: bash
  10. args: [-c, "shfmt -f $(git rev-parse --show-toplevel) | grep -v jdtls | xargs shfmt -i=2 -ci -w"]
  11. - id: shellcheck
  12. name: shellcheck
  13. language: system
  14. types: [shell]
  15. entry: bash
  16. args:
  17. [-c, "shfmt -f $(git rev-parse --show-toplevel) | grep -v jdtls | xargs shellcheck"]
  18. - id: stylua
  19. name: StyLua
  20. language: rust
  21. entry: stylua
  22. types: [lua]
  23. args: ['-']
  24. - id: luacheck
  25. name: luacheck
  26. language: system
  27. entry: luacheck
  28. types: [lua]
  29. args: [.]