-
Notifications
You must be signed in to change notification settings - Fork 41
/
.rubocop.yml
81 lines (74 loc) · 1.59 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
79
80
81
require:
- rubocop-rails
- rubocop-performance
- rubocop-rspec
Layout/LineLength:
Max: 160
Layout/SpaceAroundEqualsInParameterDefault:
EnforcedStyle: 'no_space'
Layout/SpaceInsideHashLiteralBraces:
Exclude:
- 'spec/factories/workflows.rb'
Layout/ArrayAlignment:
Exclude:
- 'spec/factories/workflows.rb'
Layout/HashAlignment:
Exclude:
- 'spec/factories/workflows.rb'
Layout/SpaceAroundOperators:
Exclude:
- 'spec/factories/workflows.rb'
Lint/AmbiguousBlockAssociation:
Exclude:
- "spec/**/*"
Metrics/BlockLength:
Exclude:
- '**/*_spec.rb'
- 'spec/support/*.rb'
- 'spec/factories/*.rb'
Metrics/MethodLength:
Description: 'Avoid methods longer than 12 lines of code.'
Max: 12
Rails/SkipsModelValidations:
AllowedMethods:
- update_all
- update_column
- update_columns
- touch
RSpec/MultipleMemoizedHelpers:
Enabled: false
RSpec/NestedGroups:
Max: 7
RSpec/ExampleLength:
Max: 15
Style/NumericLiterals:
Enabled: false
Style/RegexpLiteral:
EnforcedStyle: slashes
# disable 'Missing top-level class documentation' warning
Style/Documentation:
Enabled: false
Style/BlockDelimiters:
Exclude:
- 'spec/**/*'
Style/StringLiterals:
Exclude:
- 'spec/factories/workflows.rb'
# new linters - opt in
Layout/SpaceAroundMethodCallOperator:
Enabled: true
Lint/RaiseException:
Enabled: true
Lint/StructNewOverride:
Enabled: true
Style/ExponentialNotation:
Enabled: true
Style/HashEachMethods:
Enabled: true
Style/HashTransformKeys:
Enabled: true
Style/HashTransformValues:
Enabled: true
AllCops:
NewCops: enable
TargetRailsVersion: 4.2