-
Notifications
You must be signed in to change notification settings - Fork 15
/
.pre-commit-hooks.yaml
42 lines (42 loc) · 1.21 KB
/
.pre-commit-hooks.yaml
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
- id: rubocop
name: Check Ruby style with rubocop
description: Enforce Ruby style guide with rubocop
entry: bin/rubocop-wrapper.sh
language: script
pass_filenames: true
types: ['ruby']
- id: rspec
name: Unit test Ruby code with rspec
description: Run rspec in changed paths with spec directories
entry: bin/rspec-wrapper.rb
language: script
pass_filenames: true
types: ['ruby']
- id: foodcritic
name: Enforce Chef style guide with foodcritic
description: Enforce Chef style guide with foodcritic
entry: bin/foodcritic-wrapper.rb
language: script
pass_filenames: true
types: ['file']
files: >
(?x)^(
.*/(recipes|attributes|resources|providers)/.*\.rb|
.*/metadata\.rb
)$
exclude: .*/test/.*\.rb$
- id: cookstyle
name: Enforce Chef style guide with cookstyle
description: Enforce Chef style guide with cookstyle
entry: bin/cookstyle-wrapper.rb
language: script
pass_filenames: true
types: ['ruby']
require_serial: true
- id: chef-cookbook-version
name: Ensure Chef cookbook version bump
description: Ensure Chef cookbook versions are bumped when contents are changed
entry: bin/cookbook-wrapper.rb
language: script
pass_filenames: true
types: ['file']