forked from zammad/zammad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.overcommit.yml
83 lines (74 loc) · 1.65 KB
/
.overcommit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# Don't complain when changing branches with different overcommit configurations.
verify_signatures: false
CommitMsg:
ALL:
enabled: false
EmptyMessage:
enabled: true
PreCommit:
ALL:
enabled: false
RuboCop:
enabled: true
on_warn: fail
CoffeeLint:
required_executable: 'coffeelint'
install_command: 'npm install -g @coffeelint/cli'
# .coffeelint/rules/* not supported in YAML, specify all rules separately.
flags:
[
'--reporter=csv',
'--rules',
'./.coffeelint/rules/detect_translatable_string.coffee',
]
enabled: true
on_warn: fail
exclude: 'public/assets/chat/**/*'
CustomScript:
enabled: true
description: 'Perform custom Zammad code checks'
required_executable: 'bash'
flags: ['.overcommit.sh']
Stylelint:
enabled: true
required_executable: 'yarn'
command: ['yarn', '--silent', 'lint:css']
EsLint:
required_executable: 'yarn'
enabled: true
command: ['yarn', 'lint']
exclude:
- 'app/assets/**/*'
- 'public/assets/chat/**/*'
- 'public/assets/form/**/*'
include:
- '**/*.js'
- '**/*.ts'
- '**/*.vue'
PostCheckout:
ALL:
enabled: false
PostCommit:
ALL:
enabled: false
PostMerge:
ALL:
enabled: false
PostRewrite:
ALL:
enabled: false
PrePush:
ALL:
enabled: false
CustomScript:
enabled: true
description: "Verify GraphQL introspection file is not empty."
required_executable: 'bash'
command: [ 'bash', '-c', 'test -s app/graphql/graphql_introspection.json' ]
on_warn: fail
PreRebase:
ALL:
enabled: false
PrepareCommitMsg:
ALL:
enabled: false