root / .overcommit.yml @ 135283e1
Historique | Voir | Annoter | Télécharger (1,35 ko)
1 | 5fea281f | Tim | # Managed by modulesync - DO NOT EDIT
|
---|---|---|---|
2 | # https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
|
||
3 | 78f22811 | Steve Traylen | #
|
4 | # Hooks are only enabled if you take action.
|
||
5 | #
|
||
6 | # To enable the hooks run:
|
||
7 | #
|
||
8 | # ```
|
||
9 | # bundle exec overcommit --install
|
||
10 | # # ensure .overcommit.yml does not harm to you and then
|
||
11 | # bundle exec overcommit --sign
|
||
12 | # ```
|
||
13 | #
|
||
14 | # (it will manage the .git/hooks directory):
|
||
15 | #
|
||
16 | # Examples howto skip a test for a commit or push:
|
||
17 | #
|
||
18 | # ```
|
||
19 | # SKIP=RuboCop git commit
|
||
20 | # SKIP=PuppetLint git commit
|
||
21 | # SKIP=RakeTask git push
|
||
22 | # ```
|
||
23 | #
|
||
24 | # Don't invoke overcommit at all:
|
||
25 | #
|
||
26 | # ```
|
||
27 | # OVERCOMMIT_DISABLE=1 git commit
|
||
28 | # ```
|
||
29 | #
|
||
30 | # Read more about overcommit: https://github.com/brigade/overcommit
|
||
31 | #
|
||
32 | # To manage this config yourself in your module add
|
||
33 | #
|
||
34 | # ```
|
||
35 | # .overcommit.yml:
|
||
36 | # unmanaged: true
|
||
37 | # ```
|
||
38 | #
|
||
39 | # to your modules .sync.yml config
|
||
40 | ---
|
||
41 | PreCommit:
|
||
42 | RuboCop:
|
||
43 | enabled: true |
||
44 | description: 'Runs rubocop on modified files only' |
||
45 | command: ['bundle', 'exec', 'rubocop'] |
||
46 | PuppetLint:
|
||
47 | enabled: true |
||
48 | description: 'Runs puppet-lint on modified files only' |
||
49 | command: ['bundle', 'exec', 'puppet-lint'] |
||
50 | YamlSyntax:
|
||
51 | enabled: true |
||
52 | JsonSyntax:
|
||
53 | enabled: true |
||
54 | TrailingWhitespace:
|
||
55 | enabled: true |
||
56 | |||
57 | PrePush:
|
||
58 | RakeTarget:
|
||
59 | enabled: true |
||
60 | description: 'Run rake targets' |
||
61 | targets:
|
||
62 | - 'validate'
|
||
63 | - 'test'
|
||
64 | - 'rubocop'
|
||
65 | command: ['bundle', 'exec', 'rake'] |