Rapid spam filtering system https://rspamd.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.5 KiB

  1. # Use this file to configure the Overcommit hooks you wish to use. This will
  2. # extend the default configuration defined in:
  3. # https://github.com/sds/overcommit/blob/master/config/default.yml
  4. #
  5. # At the topmost level of this YAML file is a key representing type of hook
  6. # being run (e.g. pre-commit, commit-msg, etc.). Within each type you can
  7. # customize each hook, such as whether to only run it on certain files (via
  8. # `include`), whether to only display output if it fails (via `quiet`), etc.
  9. #
  10. # For a complete list of hooks, see:
  11. # https://github.com/sds/overcommit/tree/master/lib/overcommit/hook
  12. #
  13. # For a complete list of options that you can use to customize hooks, see:
  14. # https://github.com/sds/overcommit#configuration
  15. #
  16. # Uncomment the following lines to make the configuration take effect.
  17. PreCommit:
  18. TrailingWhitespace:
  19. enabled: true
  20. AuthorEmail:
  21. enabled: true
  22. AuthorName:
  23. enabled: true
  24. LineEndings:
  25. enabled: true
  26. LuaCheck:
  27. enabled: true
  28. command: ['luacheck', 'lualib', 'src/plugins/lua']
  29. ClangFormat:
  30. enabled: true
  31. command: ['sh', '-c', 'git clang-format --diff --quiet || (echo "Running clang-format to fix issues..." && git clang-format && git add -u && echo "Files formatted and staged.")']
  32. on_warn: fail
  33. #PostCheckout:
  34. # ALL: # Special hook name that customizes all hooks of this type
  35. # quiet: true # Change all post-checkout hooks to only display output on failure
  36. #
  37. # IndexTags:
  38. # enabled: true # Generate a tags file with `ctags` each time HEAD changes