-
Notifications
You must be signed in to change notification settings - Fork 4
/
.rubocop.yml
51 lines (40 loc) · 871 Bytes
/
.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
require:
- rubocop-performance
- rubocop-rake
- rubocop-rspec
AllCops:
NewCops: enable
Layout/ArgumentAlignment:
EnforcedStyle: with_fixed_indentation
Layout/ClassStructure:
Enabled: true
Layout/EndAlignment:
EnforcedStyleAlignWith: variable
Layout/LineLength:
Max: 100
AllowedPatterns:
- !ruby/regexp /\A +(it|describe|context|shared_examples|include_examples|it_behaves_like) ["']/
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Lint:
Exclude:
- lib/generators/onesie/templates/*.rb
Metrics/BlockLength:
Exclude:
- '**/*.gemspec'
- '**/*.rake'
- 'Rakefile'
- 'spec/**/*.rb'
RSpec:
Language:
Expectations:
- assert_migration
RSpec/MultipleExpectations:
Max: 2
RSpec/MultipleMemoizedHelpers:
Max: 8
RSpec/NestedGroups:
Max: 4
Style/BlockDelimiters:
Exclude:
- 'spec/**/*'