forked from crmne/ruby_llm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.overcommit.yml
More file actions
32 lines (26 loc) · 793 Bytes
/
.overcommit.yml
File metadata and controls
32 lines (26 loc) · 793 Bytes
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
PreCommit:
RuboCop:
enabled: true
auto_correct: true
on_warn: fail # Treat all warnings as failures
Flay:
enabled: true
RSpec:
enabled: true
command: ['bundle', 'exec', 'rspec']
on_warn: fail
TrailingWhitespace:
enabled: true
auto_correct: true
exclude:
- '**/db/structure.sql' # Ignore trailing whitespace in generated files
RakeTarget:
enabled: true
command: ['bundle', 'exec', 'rake']
targets: ['models:update', 'models:docs', 'aliases:generate']
on_warn: fail
PostCheckout:
ALL: # Special hook name that customizes all hooks of this type
quiet: true # Change all post-checkout hooks to only display output on failure
IndexTags:
enabled: true # Generate a tags file with `ctags` each time HEAD changes