-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.rubocop.yml
63 lines (50 loc) · 1.09 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
# For all options see https://github.com/bbatsov/rubocop/tree/master/config
inherit_gem:
gc_ruboconfig: rubocop.yml
require:
- rubocop-rspec
AllCops:
DisplayCopNames: true
TargetRubyVersion: 2.5
Exclude:
- .*/**/*
- bin/**/*
- lib/**/templates/**/*
- spec/nandi/fixtures/**/*
- node_modules/**/*
- vendor/**/*
Metrics/MethodLength:
Max: 30
Metrics/AbcSize:
Max: 20
RSpec/NotToNot:
EnforcedStyle: to_not
# TODO: Make this number smaller
RSpec/NestedGroups:
Max: 8
RSpec/MultipleExpectations:
Max: 5
RSpec/ExampleLength:
Max: 7
RSpec/ContextWording:
Enabled: false
RSpec/AnyInstance:
Enabled: false
RSpec/MultipleMemoizedHelpers:
Max: 20
Gemspec/RequiredRubyVersion:
Exclude:
- 'nandi.gemspec'
Naming/MethodParameterName:
AllowedNames:
# These are the default allowed names, set by Rubocop
- io
- id
# These are some custom names that we want to allow, since they aren't
# uncommunicative - they're actually rather meaningful!
- to
- x
- y
- of
# Useful as a placeholder for an unused argument
- _