-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.overcommit.yml
83 lines (72 loc) · 1.9 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
78
79
80
81
82
83
CommitMsg:
HardTabs:
enabled: true
description: 'Check for hard tabs'
SpellCheck:
enabled: true
description: 'Check for misspelled words'
required_executable: 'hunspell'
flags: ['-a', '-d', 'en_US']
PreCommit:
AuthorName:
enabled: false
AuthorEmail:
enabled: true
description: 'Check author email'
requires_files: false
required: true
quiet: true
pattern: '^[^@]+@.*$'
BrokenSymlinks:
enabled: true
description: 'Check for broken symlinks'
quiet: true
CaseConflicts:
enabled: true
description: 'Check for case-insensitivity conflicts'
quiet: true
Fasterer:
enabled: true
description: 'Analyzing for potential speed improvements'
required_executable: 'fasterer'
install_command: 'gem install fasterer'
include: '**/*.rb'
FixMe:
enabled: true
description: 'Check for "token" strings'
required_executable: 'grep'
flags: ['-IEHnw']
keywords: ['BROKEN', 'BUG', 'ERROR', 'FIXME', 'HACK', 'NOTE', 'OPTIMIZE', 'REVIEW', 'TODO', 'WTF', 'XXX']
exclude:
- '.overcommit.yml'
- 'docs/source/**/*'
MergeConflicts:
enabled: true
description: 'Check for merge conflicts'
quiet: true
required_executable: 'grep'
flags: ['-IHn', "^<<<<<<<[ \t]"]
RuboCop:
enabled: false
description: 'Analyze with RuboCop'
required_executable: 'rubocop'
flags: ['--format=emacs', '--force-exclusion', '--display-cop-names']
install_command: 'gem install rubocop rubocop-performance rubocop-rails rubocop-rspec'
include:
- '**/*.gemspec'
- '**/*.rake'
- '**/*.rb'
- '**/*.ru'
- '**/Gemfile'
- '**/Rakefile'
LineEndings:
enabled: true
description: 'Check line endings'
eol: "\n"
exclude:
- 'docs/source/**/*'
- 'public/docs/**/*'
TrailingWhitespace:
enabled: true
exclude:
- '**/db/structure.sql'