.overcommit.yml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. required_executable: 'yarn'
  35. command: ['yarn', '--silent', 'lint:css']
  36. EsLint:
  37. required_executable: 'yarn'
  38. enabled: true
  39. command: ['yarn', 'lint']
  40. exclude:
  41. - 'app/assets/**/*'
  42. - 'public/assets/chat/**/*'
  43. - 'public/assets/form/**/*'
  44. include:
  45. - '**/*.js'
  46. - '**/*.ts'
  47. - '**/*.vue'
  48. PostCheckout:
  49. ALL:
  50. enabled: false
  51. PostCommit:
  52. ALL:
  53. enabled: false
  54. PostMerge:
  55. ALL:
  56. enabled: false
  57. PostRewrite:
  58. ALL:
  59. enabled: false
  60. PrePush:
  61. ALL:
  62. enabled: false
  63. CustomScript:
  64. enabled: true
  65. description: "Verify GraphQL introspection file is not empty."
  66. required_executable: 'bash'
  67. command: [ 'bash', '-c', 'test -s app/graphql/graphql_introspection.json' ]
  68. on_warn: fail
  69. PreRebase:
  70. ALL:
  71. enabled: false
  72. PrepareCommitMsg:
  73. ALL:
  74. enabled: false