forked from zverok/time_math2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
86 lines (64 loc) · 1.32 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
82
83
84
85
86
inherit_from: .rubocop_todo.yml
require: rubocop-rspec
AllCops:
Include:
- 'lib/**/*'
Exclude:
- 'vendor/**/*'
- Gemfile
- Rakefile
- '*.gemspec'
DisplayCopNames: true
Metrics/LineLength:
Enabled: false
# IgnoreComments: true -- somehow did not recognized?..
Metrics/MethodLength:
Max: 12
Exclude:
- 'spec/**/*'
Metrics/ClassLength:
Max: 120
# I'm big fan of and/or for flow control
Style/AndOr:
Enabled: false
# Somehow he didn't recognize that module TimeMath is documented...
Style/Documentation:
Enabled: false
# Everything else is just my personal style
Style/SingleLineBlockParams:
Enabled: false
Style/FormatString:
EnforcedStyle: percent
Style/ParallelAssignment:
Enabled: false
Style/BlockDelimiters:
Enabled: false
RSpec/LeadingSubject:
Enabled: false
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
RSpec/ExampleLength:
Enabled: false
RSpec/NestedGroups:
Max: 10
RSpec/EmptyExampleGroup:
Enabled: false
RSpec/MultipleDescribes:
Enabled: false
RSpec/MultipleExpectations:
Max: 5
Lint/BooleanSymbol:
Enabled: false
# RSpec
Metrics/PerceivedComplexity:
Exclude:
- 'spec/**/*'
Metrics/CyclomaticComplexity:
Exclude:
- 'spec/**/*'
Metrics/BlockLength:
Exclude:
- 'spec/**/*'
Security/YAMLLoad:
Exclude:
- 'spec/**/*'