-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.rubocop.yml
96 lines (70 loc) · 1.63 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
87
88
89
90
91
92
93
94
95
96
# See example at https://github.com/bbatsov/rubocop/blob/master/config/default.yml
require:
- rubocop-performance
AllCops:
TargetRubyVersion: 2.6
Exclude:
- 'Gemfile'
- 'pivotal-to-trello.gemspec'
Layout/EmptyLines:
Enabled: true
Layout/EmptyLinesAroundBlockBody:
Enabled: true
Layout/HashAlignment:
EnforcedHashRocketStyle: table
EnforcedColonStyle: table
Layout/LineLength:
Max: 200
Layout/SpaceBeforeFirstArg:
Enabled: true
Layout/SpaceInsideParens:
Enabled: true
Metrics/AbcSize:
Enabled: true
Max: 100
Metrics/BlockLength:
Enabled: false
CountComments: false
Metrics/CyclomaticComplexity:
Enabled: true
Max: 15
Metrics/ClassLength:
Enabled: false
CountComments: false
Metrics/MethodLength:
Enabled: true
CountComments: false
Max: 60
Metrics/PerceivedComplexity:
Enabled: true
Max: 20
Naming/BlockParameterName:
MinNameLength: 1
Naming/FileName:
Enabled: false
Naming/MethodParameterName:
MinNameLength: 1
Style/AccessModifierDeclarations:
Enabled: true
Style/AndOr:
Enabled: true
Style/BlockDelimiters:
Enabled: true
Style/ClassAndModuleChildren:
Enabled: true
EnforcedStyle: nested
Style/Documentation:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: true
Style/RedundantReturn:
Enabled: true
Style/TrailingCommaInArguments:
Enabled: true
EnforcedStyleForMultiline: comma
Style/TrailingCommaInArrayLiteral:
Enabled: true
EnforcedStyleForMultiline: comma
Style/TrailingCommaInHashLiteral:
Enabled: true
EnforcedStyleForMultiline: comma