-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
58 lines (46 loc) · 1003 Bytes
/
.rubocop.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
require:
- standard
- rubocop-rails
- rubocop-rspec
- rubocop-factory_bot
inherit_gem:
standard: config/base.yml
AllCops:
NewCops: enable
SuggestExtensions: false
Exclude:
- public/**/*
- vendor/**/*
Rails:
Enabled: true # enable rubocop-rails cops
RSpec:
Enabled: true # enable rubocop-rspec cops
Layout/ExtraSpacing:
Enabled: false
# because there's no good suggested alternative
RSpec/LetSetup:
Enabled: false
# old man shouting at clouds
RSpec/MessageSpies:
Enabled: false
# these are fine for ActiveRecord but
# aren't supported by Mongoid
Rails/FindEach:
Enabled: false
Rails/HasAndBelongsToMany:
Enabled: false
# stop effing with my log messages!
Rails/EagerEvaluationLogMessage:
Enabled: false
# no shit, but don't make me put rubocop comments in a view. not cool
Rails/OutputSafety:
Enabled: false
RSpec/ExampleLength:
Max: 10
CountAsOne:
- array
- hash
- heredoc
#I'll nest if i wanna!
RSpec/NestedGroups:
Enabled: false