.overcommit.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. include:
  41. - '**/*.js'
  42. - '**/*.ts'
  43. - '**/*.vue'
  44. PostCheckout:
  45. ALL:
  46. enabled: false
  47. PostCommit:
  48. ALL:
  49. enabled: false
  50. PostMerge:
  51. ALL:
  52. enabled: false
  53. PostRewrite:
  54. ALL:
  55. enabled: false
  56. PrePush:
  57. ALL:
  58. enabled: false
  59. PreRebase:
  60. ALL:
  61. enabled: false
  62. PrepareCommitMsg:
  63. ALL:
  64. enabled: false