Projet

Général

Profil

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

root / .overcommit.yml @ 1d331291

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

1
# Managed by modulesync - DO NOT EDIT
2
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
3
#
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
  RakeTarget:
47
    enabled: true
48
    description: 'Runs lint on modified files only'
49
    targets:
50
      - 'lint'
51
    command: ['bundle', 'exec', 'rake']
52
  YamlSyntax:
53
    enabled: true
54
  JsonSyntax:
55
    enabled: true
56
  TrailingWhitespace:
57
    enabled: true
58

    
59
PrePush:
60
  RakeTarget:
61
    enabled: true
62
    description: 'Run rake targets'
63
    targets:
64
      - 'validate'
65
      - 'test'
66
      - 'rubocop'
67
    command: ['bundle', 'exec', 'rake']