forked from bestwebua/Railway-oriented-Rails-API
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
153 lines (117 loc) · 2.77 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
require:
- rubocop-rails
- rubocop-rspec
- rubocop-performance
AllCops:
Exclude:
- bin/**/*
- db/**/*
- vendor/**/*
- spec/fixtures/**/*
- tmp/**/*
Rails:
Enabled: true
# Style -----------------------------------------------------------------------
Style/Documentation:
Enabled: false
Style/ParallelAssignment:
Enabled: false
Style/RegexpLiteral:
Enabled: false
Style/RescueModifier:
Exclude:
- app/concepts/api/v1/users/lib/service/email_token.rb
Style/ClassAndModuleChildren:
Exclude:
- app/concepts/**/*
- app/controllers/**/*
- app/workers/**/*
Style/Lambda:
Exclude:
- app/endpoints/**/*
- lib/macro/**/*
Style/SignalException:
Exclude:
- app/concepts/**/*
Rails/SkipsModelValidations:
Exclude:
- app/concepts/api/v1/users/verifications/operation/show.rb
Rails/IndexWith:
Exclude:
- lib/macro/schema.rb
# Metrics ---------------------------------------------------------------------
Layout/LineLength:
Max: 120
Metrics/BlockLength:
Exclude:
- config/**/*
- Rakefile
- lib/tasks/**/*.rake
- spec/**/*
- config/routes.rb
Metrics/AbcSize:
Exclude:
- app/controllers/concerns/default_endpoint.rb
- lib/macro/model.rb
- lib/macro/links_builder.rb
Metrics/MethodLength:
Max: 15
Exclude:
- lib/macro/**/*
# Naming ----------------------------------------------------------------------
Naming/MethodName:
Exclude:
- lib/macro/**/*
# Lint ------------------------------------------------------------------------
Lint/UnreachableCode:
Exclude:
- app/concepts/**/*
# Layout ----------------------------------------------------------------------
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent
Layout/ClassStructure:
Enabled: true
Categories:
module_inclusion:
- include
- prepend
- extend
associations:
- has_one
- has_many
- belongs_to
- has_and_belongs_to_many
ExpectedOrder:
- module_inclusion
- constants
- associations
- public_class_methods
- initializer
- public_methods
- protected_methods
- private_methods
# RSpec -----------------------------------------------------------------------
RSpec/MultipleExpectations:
Enabled: false
RSpec/ExampleLength:
Max: 22
RSpec/MessageSpies:
EnforcedStyle: receive
RSpec/MessageChain:
Enabled: false
RSpec/NestedGroups:
Max: 5
RSpec/FilePath:
Exclude:
- spec/concepts/**/*
RSpec/DescribeClass:
Exclude:
- spec/tasks/**/*
RSpec/ContextWording:
Exclude:
- spec/support/shared_contexts/**/*
# Rails -----------------------------------------------------------------------
Rails/RakeEnvironment:
Enabled: false