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.

.overcommit.yml 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738
  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: ['git', 'clang-format', '--diff']
  32. #PostCheckout:
  33. # ALL: # Special hook name that customizes all hooks of this type
  34. # quiet: true # Change all post-checkout hooks to only display output on failure
  35. #
  36. # IndexTags:
  37. # enabled: true # Generate a tags file with `ctags` each time HEAD changes