-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.overcommit.yml
77 lines (77 loc) · 1.91 KB
/
.overcommit.yml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
CommitMsg:
ALL:
CapitalizedSubject:
enabled: true
description: 'Checking subject capitalization'
EmptyMessage:
enabled: true
description: 'Checking for empty commit message'
quiet: true
HardTabs:
enabled: true
description: 'Checking for hard tabs'
RussianNovel:
enabled: true
description: 'Checking length of commit message'
quiet: true
SingleLineSubject:
enabled: true
description: 'Checking subject line'
SpellCheck:
enabled: false
description: 'Checking for misspelled words'
required_executable: 'hunspell'
flags: ['-a']
TextWidth:
enabled: true
description: 'Checking text width'
max_subject_width: 60
max_body_width: 72
TrailingPeriod:
enabled: true
description: 'Checking for trailing periods in subject'
PreCommit:
ALL:
problem_on_unmodified_line: report
requires_files: true
required: false
quiet: false
AuthorEmail:
enabled: true
description: 'Checking author email'
requires_files: false
required: true
quiet: true
pattern: '^[^@]+@.*$'
AuthorName:
enabled: false
description: 'Checking for author name'
requires_files: false
required: true
quiet: true
BrokenSymlinks:
enabled: true
description: 'Checking for broken symlinks'
quiet: true
CaseConflicts:
enabled: true
description: 'Checking for case-insensitivity conflicts'
quiet: true
MergeConflicts:
enabled: true
description: 'Checking for merge conflicts'
quiet: true
required_executable: 'grep'
flags: ['-IHn', "^<<<<<<<[ \t]"]
RuboCop:
enabled: true
description: 'Analyzing with RuboCop'
required_executable: 'rubocop'
flags: ['--format=emacs', '--force-exclusion', '--display-cop-names']
install_command: 'gem install rubocop'
include:
- '**/*.gemspec'
- '**/*.rake'
- '**/*.rb'
- '**/Gemfile'
- '**/Rakefile'