-
Notifications
You must be signed in to change notification settings - Fork 11
/
.rubocop.yml
108 lines (86 loc) · 2.18 KB
/
.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
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
require:
- rubocop-ordered_methods
- rubocop-performance
- rubocop-rails
- rubocop-rspec
- standard
inherit_gem:
rubocop-ordered_methods:
- config/default.yml
rubocop-performance:
- config/default.yml
rubocop-rails:
- config/default.yml
rubocop-rspec:
- config/default.yml
standard:
- config/base.yml
AllCops:
Exclude:
- bin/**/*
- db/migrate/**/*
- db/schema.rb
- node_modules/**/*
- old/**/*
- script/**/*
- vendor/**/*
NewCops: enable
SuggestExtensions:
rubocop-rake: false
Layout/HashAlignment:
EnforcedHashRocketStyle: table
EnforcedColonStyle: table
Rails/ActiveRecordCallbacksOrder:
Enabled: true
Rails/FilePath:
EnforcedStyle: arguments
Rails/HelperInstanceVariable:
Enabled: false # We memoize helpers using instance variables - that's okay
Rails/OutputSafety:
Enabled: false # We use `html_safe` intentionally
Rails/SkipsModelValidations:
Enabled: false # We consciously use methods that skip validation - for a reason!
RSpec/DescribeClass:
Exclude:
- spec/api/**/*
- spec/features/**/*
RSpec/Dialect:
Enabled: true
PreferredMethods:
context: describe
RSpec/ExpectInHook:
Exclude:
- spec/support/**/*
RSpec/ExampleLength:
Max: 20
Exclude:
- spec/api/**/*
- spec/controllers/**/*
- spec/features/**/*
RSpec/Focus:
AutoCorrect: false
RSpec/LetSetup:
Exclude:
- spec/support/**/*
RSpec/MultipleExpectations:
Exclude:
- spec/api/**/*
- spec/controllers/**/*
- spec/features/**/*
- spec/mailers/**/*
Max: 3
RSpec/MultipleMemoizedHelpers:
Max: 15 # TODO: let's get this WAY down with some test refactors
RSpec/NamedSubject:
Enabled: false # TODO: Re-enable once other lint issues in rspec are resolve. This is causing too much noise.
RSpec/VerifiedDoubles:
Enabled: false # TODO: Re-enable once other lint issues in rspec are resolve. This is causing too much noise.
Style/FrozenStringLiteralComment:
AutoCorrect: true
Enabled: true
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: comma