Projet

Général

Profil

Paste
Télécharger au format
Statistiques
| Branche: | Révision:

root / .overcommit.yml @ 78f22811

Historique | Voir | Annoter | Télécharger (1,3 ko)

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