forked from vhl/multi_version_common_cartridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
54 lines (43 loc) · 1.04 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
require: rubocop-rspec
AllCops:
DisplayCopNames: true
TargetRubyVersion: 2.3
Include:
- '**/Rakefile'
- '**/config.ru'
- '**/*.rb'
Exclude:
- 'config/**/*'
- 'script/**/*'
- 'vendor/**/*'
Style/Documentation:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/AccessModifierDeclarations:
EnforcedStyle: inline
Metrics/LineLength:
Max: 100
RSpec/NestedGroups:
Max: 5
RSpec/ExampleLength:
Max: 19
Naming/VariableNumber:
EnforcedStyle: snake_case
Style/PredicateName:
NamePrefixBlacklist:
- is_
# Exclude Rspec specs because there is a strong convention to write spec
# helpers in the form of `have_something` or `be_something`.
Exclude:
- 'spec/**/*'
# Exclude Rspec specs because top level describe blocks are going to have lots
# more than 25 lines.
Metrics/BlockLength:
Exclude:
- 'spec/**/*'
# Exclude Rspec specs because we can easily have more than 3 levels of nesting
# of describe, context, and it blocks.
Metrics/BlockNesting:
Exclude:
- 'spec/**/*'