.overcommit.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. - 'public/assets/form/**/*'
  40. PostCheckout:
  41. ALL:
  42. enabled: false
  43. PostCommit:
  44. ALL:
  45. enabled: false
  46. PostMerge:
  47. ALL:
  48. enabled: false
  49. PostRewrite:
  50. ALL:
  51. enabled: false
  52. PrePush:
  53. ALL:
  54. enabled: false
  55. PreRebase:
  56. ALL:
  57. enabled: false
  58. PrepareCommitMsg:
  59. ALL:
  60. enabled: false