-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.rubocop.yml
74 lines (70 loc) · 1.87 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
inherit_from: .hound_defaults.yml
require: rubocop-rspec
AllCops:
Exclude:
- 'bin/**/*'
- 'db/**/*'
- 'config/initializers/devise.rb'
- 'app/helpers/devise_helper.rb'
- 'Guardfile'
# Ruby Style
Metrics/LineLength:
Max: 100
Enabled: true
Metrics/BlockLength:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
EnforcedStyle: when_needed
SupportedStyles:
# `when_needed` will add the frozen string literal comment to files
# only when the `TargetRubyVersion` is set to 2.3+.
- when_needed
# `always` will always add the frozen string literal comment to a file
# regardless of the Ruby version or if `freeze` or `<<` are called on a
# string literal. If you run code against multiple versions of Ruby, it is
# possible that this will create errors in Ruby 2.3.0+.
- always
Style/MultilineOperationIndentation:
Enabled: false
Style/StringLiterals:
EnforcedStyle: single_quotes
SupportedStyles:
- single_quotes
- double_quotes
Style/PredicateName:
Enabled: false
TrailingCommaInLiteral:
EnforcedStyleForMultiline: no_comma
SupportedStyles:
- comma
- no_comma
# Rails Styles
Rails/HasAndBelongsToMany:
Enabled: false
# RSpec Styles
RSpec/AnyInstance:
Enabled: false
RSpec/DescribeClass:
Enabled: false
RSpec/DescribedClass:
Enabled: false
RSpec/FilePath:
Enabled: false
RSpec/ExampleLength:
Description: Checks for long examples.
Enabled: true
Max: 30
RSpec/MultipleExpectations:
Description: Checks if examples contain too many `expect` calls.
Enabled: true
Max: 8
RSpec/NestedGroups:
Description: Checks for nested example groups.
Enabled: true
MaxNesting: 5
RSpec/VerifiedDoubles:
# Note, we are already doing this by default. See spec/spec_helper.rb
Description: Prefer using verifying doubles over normal doubles.
Enabled: false
IgnoreSymbolicNames: false