.overcommit.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # Don't complain when changing branches with different overcommit configurations.
  2. verify_signatures: false
  3. CommitMsg:
  4. ALL:
  5. enabled: false
  6. EmptyMessage:
  7. enabled: true
  8. PreCommit:
  9. ALL:
  10. enabled: false
  11. RuboCop:
  12. enabled: true
  13. on_warn: fail
  14. CoffeeLint:
  15. # .coffeelint/rules/* not supported in YAML, specify all rules separately.
  16. flags:
  17. [
  18. '--reporter=csv',
  19. '--rules',
  20. './.coffeelint/rules/detect_translatable_string.coffee',
  21. ]
  22. enabled: true
  23. on_warn: fail
  24. exclude: 'public/assets/chat/**/*'
  25. CustomScript:
  26. enabled: true
  27. description: 'Perform custom Zammad code checks'
  28. required_executable: 'bash'
  29. flags: ['.overcommit.sh']
  30. Stylelint:
  31. enabled: true
  32. EsLint:
  33. required_executable: 'yarn'
  34. enabled: true
  35. command: ['yarn', 'lint']
  36. exclude:
  37. - 'app/assets/**/*'
  38. - 'public/assets/chat/**/*'
  39. PostCheckout:
  40. ALL:
  41. enabled: false
  42. PostCommit:
  43. ALL:
  44. enabled: false
  45. PostMerge:
  46. ALL:
  47. enabled: false
  48. PostRewrite:
  49. ALL:
  50. enabled: false
  51. PrePush:
  52. ALL:
  53. enabled: false
  54. PreRebase:
  55. ALL:
  56. enabled: false
  57. PrepareCommitMsg:
  58. ALL:
  59. enabled: false