-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
133 lines (105 loc) · 2.45 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
inherit_from:
# - .rubocop_todo.yml
- enabled.yml
- disabled.yml
AllCops:
TargetRubyVersion: 2.4
Exclude:
- 'db/*'
- 'db/**/*'
- 'tmp/**/*'
- 'vendor/**/*'
DisplayCopNames: true
Metrics/BlockNesting:
Max: 3
Metrics/BlockLength:
CountComments: false
Max: 40
Exclude:
- 'spec/**/*'
- 'lib/**/*.rake'
Metrics/ClassLength:
CountComments: false
Max: 100
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
# URISchemes: http, https
Metrics/LineLength:
Max: 120
AllowHeredoc: true
AllowURI: true
URISchemes:
- http
- https
Metrics/MethodLength:
CountComments: false
Max: 40
Metrics/ModuleLength:
CountComments: false
Max: 100
Exclude:
- 'spec/**/*'
Rails/SkipsModelValidations:
Exclude:
- 'support/**/*'
- 'tmp/**/*'
Naming/AccessorMethodName:
Exclude:
- 'app/controllers/**/*'
Layout/AlignHash:
EnforcedLastArgumentHashStyle: always_ignore
Layout/AlignParameters:
Exclude:
- 'bin/*'
Style/BlockDelimiters:
EnforcedStyle: semantic
Style/BracesAroundHashParameters:
EnforcedStyle: context_dependent
Layout/DotPosition:
EnforcedStyle: trailing
Layout/ExtraSpacing:
AllowForAlignment: true
# Naming/FileName:
# Exclude:
# - 'config/initializers/0-extentions.rb'
# - 'config/initializers/1-constants.rb'
# - 'support/scrape-paypal.rb'
Style/FormatString:
EnforcedStyle: percent
# Style/ModuleFunction:
# Exclude:
# - 'lib/spark_pr.rb'
# - 'support/*.rb'
# - 'app/models/service/certification_application_board.rb'
# - 'app/models/value/login_generator.rb'
Style/Next:
EnforcedStyle: skip_modifier_ifs
MinBodyLength: 5
# Style/NumericPredicate:
# Exclude:
# - 'lib/spark_pr.rb'
Style/PercentLiteralDelimiters:
PreferredDelimiters:
'%': '{}'
'%i': '[]'
'%q': '{}'
'%Q': '{}'
'%r': '{}'
'%s': ()
'%w': '[]'
'%W': '[]'
'%x': ()
Layout/SpaceAroundEqualsInParameterDefault:
EnforcedStyle: no_space
Layout/SpaceInLambdaLiteral:
EnforcedStyle: require_space
Layout/SpaceInsideBlockBraces:
EnforcedStyle: space
EnforcedStyleForEmptyBraces: no_space
# Space between { and |. Overrides EnforcedStyle if there is a conflict.
SpaceBeforeBlockParameters: false
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: consistent_comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: consistent_comma