.overcommit.yml 1.7 KB

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