.overcommit.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. required_executable: 'coffeelint'
  16. install_command: 'npm install -g @coffeelint/cli'
  17. # .coffeelint/rules/* not supported in YAML, specify all rules separately.
  18. flags:
  19. [
  20. '--reporter=csv',
  21. '--rules',
  22. './.coffeelint/rules/detect_translatable_string.coffee',
  23. ]
  24. enabled: true
  25. on_warn: fail
  26. exclude: 'public/assets/chat/**/*'
  27. CustomScript:
  28. enabled: true
  29. description: 'Perform custom Zammad code checks'
  30. required_executable: 'bash'
  31. flags: ['.overcommit.sh']
  32. Stylelint:
  33. enabled: true
  34. EsLint:
  35. required_executable: 'yarn'
  36. enabled: true
  37. command: ['yarn', 'lint']
  38. exclude:
  39. - 'app/assets/**/*'
  40. - 'public/assets/chat/**/*'
  41. - 'public/assets/form/**/*'
  42. include:
  43. - '**/*.js'
  44. - '**/*.ts'
  45. - '**/*.vue'
  46. PostCheckout:
  47. ALL:
  48. enabled: false
  49. PostCommit:
  50. ALL:
  51. enabled: false
  52. PostMerge:
  53. ALL:
  54. enabled: false
  55. PostRewrite:
  56. ALL:
  57. enabled: false
  58. PrePush:
  59. ALL:
  60. enabled: false
  61. CustomScript:
  62. enabled: true
  63. description: "Verify GraphQL introspection file is not empty."
  64. required_executable: 'bash'
  65. command: [ 'bash', '-c', 'test -s app/graphql/graphql_introspection.json' ]
  66. on_warn: fail
  67. PreRebase:
  68. ALL:
  69. enabled: false
  70. PrepareCommitMsg:
  71. ALL:
  72. enabled: false