-
Notifications
You must be signed in to change notification settings - Fork 45
/
.rubocop.yml
78 lines (61 loc) · 1.29 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
inherit_gem:
scc-codestyle:
- default.yml
inherit_from: .rubocop_todo.yml
inherit_mode:
merge:
- Exclude
AllCops:
TargetRubyVersion: 2.5
SuggestExtensions: false
NewCops: enable
Exclude:
- .bundle/**/*
- db/schema.rb
- db/migrate/20180420145408_init_schema.rb
- features/**/*
- vendor/**/*
- tmp/**/*
- lib/locale/*
- package/**/*
Style/TrailingUnderscoreVariable:
Enabled: false
RSpec/ExampleLength:
Exclude:
- spec/lib/rmt/cli/mirror_spec.rb
RSpec/ExpectOutput:
Exclude:
- spec/lib/rmt/cli/mirror_spec.rb
RSpec/MultipleExpectations:
Exclude:
- spec/lib/rmt/cli/mirror_spec.rb
Metrics/ClassLength:
Exclude:
- lib/rmt/downloader.rb
Naming/FileName:
Exclude:
- Dangerfile
Rails/Output:
Exclude:
- lib/rmt/cli/**/*
Naming/MethodParameterName:
AllowedNames:
- to
- id
RSpec/NestedGroups:
Max: 4
Style/FormatStringToken:
EnforcedStyle: template
Exclude:
- lib/rmt/cli/mirror.rb
Style/OpenStructUse:
Enabled: false
RSpec/MessageChain:
Enabled: false
# We disable this check since we are stubing class methods
# that are already tested in their respective tests.
# This way we circumvent tight coupling between tests and
# implementation.
# Count: 107 offenses
RSpec/SubjectStub:
Enabled: false