]> cat aescling's git repositories - mastodon.git/blob - .rubocop.yml
Fix crashes in SuspendAccountService/UnsuspendAccountService (#15100)
[mastodon.git] / .rubocop.yml
1 require:
2 - rubocop-rails
3
4 AllCops:
5 TargetRubyVersion: 2.4
6 Exclude:
7 - 'spec/**/*'
8 - 'db/**/*'
9 - 'app/views/**/*'
10 - 'config/**/*'
11 - 'bin/*'
12 - 'Rakefile'
13 - 'node_modules/**/*'
14 - 'Vagrantfile'
15 - 'vendor/**/*'
16 - 'lib/json_ld/*'
17 - 'lib/templates/**/*'
18
19 Bundler/OrderedGems:
20 Enabled: false
21
22 Layout/AccessModifierIndentation:
23 EnforcedStyle: indent
24
25 Layout/EmptyLineAfterMagicComment:
26 Enabled: false
27
28 Layout/EmptyLineAfterGuardClause:
29 Enabled: false
30
31 Layout/EmptyLinesAroundAttributeAccessor:
32 Enabled: true
33
34 Layout/HashAlignment:
35 Enabled: false
36 # EnforcedHashRocketStyle: table
37 # EnforcedColonStyle: table
38
39 Layout/SpaceAroundMethodCallOperator:
40 Enabled: true
41
42 Layout/SpaceInsideHashLiteralBraces:
43 EnforcedStyle: space
44
45 Lint/DeprecatedOpenSSLConstant:
46 Enabled: true
47
48 Lint/DuplicateElsifCondition:
49 Enabled: true
50
51 Lint/MixedRegexpCaptureTypes:
52 Enabled: true
53
54 Lint/RaiseException:
55 Enabled: true
56
57 Lint/StructNewOverride:
58 Enabled: true
59
60 Lint/UselessAccessModifier:
61 ContextCreatingMethods:
62 - class_methods
63
64 Metrics/AbcSize:
65 Max: 100
66 Exclude:
67 - 'lib/mastodon/*_cli.rb'
68
69 Metrics/BlockLength:
70 Max: 55
71 Exclude:
72 - 'lib/tasks/**/*'
73 - 'lib/mastodon/*_cli.rb'
74
75 Metrics/BlockNesting:
76 Max: 3
77 Exclude:
78 - 'lib/mastodon/*_cli.rb'
79
80 Metrics/ClassLength:
81 CountComments: false
82 Max: 400
83 Exclude:
84 - 'lib/mastodon/*_cli.rb'
85
86 Metrics/CyclomaticComplexity:
87 Max: 25
88 Exclude:
89 - 'lib/mastodon/*_cli.rb'
90
91 Layout/LineLength:
92 AllowURI: true
93 Enabled: false
94
95 Metrics/MethodLength:
96 CountComments: false
97 Max: 65
98 Exclude:
99 - 'lib/mastodon/*_cli.rb'
100
101 Metrics/ModuleLength:
102 CountComments: false
103 Max: 200
104
105 Metrics/ParameterLists:
106 Max: 5
107 CountKeywordArgs: true
108
109 Metrics/PerceivedComplexity:
110 Max: 25
111
112 Naming/MemoizedInstanceVariableName:
113 Enabled: false
114
115 Naming/MethodParameterName:
116 Enabled: true
117
118 Rails:
119 Enabled: true
120
121 Rails/ApplicationController:
122 Enabled: false
123 Exclude:
124 - 'app/controllers/well_known/**/*.rb'
125
126 Rails/BelongsTo:
127 Enabled: false
128
129 Rails/ContentTag:
130 Enabled: false
131
132 Rails/EnumHash:
133 Enabled: false
134
135 Rails/Exit:
136 Exclude:
137 - 'lib/mastodon/*'
138 - 'lib/cli.rb'
139
140 Rails/FilePath:
141 Enabled: false
142
143 Rails/HasAndBelongsToMany:
144 Enabled: false
145
146 Rails/HasManyOrHasOneDependent:
147 Enabled: false
148
149 Rails/HelperInstanceVariable:
150 Enabled: false
151
152 Rails/HttpStatus:
153 Enabled: false
154
155 Rails/IndexBy:
156 Enabled: false
157
158 Rails/InverseOf:
159 Enabled: false
160
161 Rails/LexicallyScopedActionFilter:
162 Enabled: false
163
164 Rails/OutputSafety:
165 Enabled: true
166
167 Rails/RakeEnvironment:
168 Enabled: false
169
170 Rails/RedundantForeignKey:
171 Enabled: false
172
173 Rails/SkipsModelValidations:
174 Enabled: false
175
176 Rails/UniqueValidationWithoutIndex:
177 Enabled: false
178
179 Style/AccessorGrouping:
180 Enabled: true
181
182 Style/AccessModifierDeclarations:
183 Enabled: false
184
185 Style/ArrayCoercion:
186 Enabled: true
187
188 Style/BisectedAttrAccessor:
189 Enabled: true
190
191 Style/CaseLikeIf:
192 Enabled: false
193
194 Style/ClassAndModuleChildren:
195 Enabled: false
196
197 Style/CollectionMethods:
198 Enabled: true
199 PreferredMethods:
200 find_all: 'select'
201
202 Style/Documentation:
203 Enabled: false
204
205 Style/DoubleNegation:
206 Enabled: true
207
208 Style/ExpandPathArguments:
209 Enabled: false
210
211 Style/ExponentialNotation:
212 Enabled: true
213
214 Style/FormatString:
215 Enabled: false
216
217 Style/FormatStringToken:
218 Enabled: false
219
220 Style/FrozenStringLiteralComment:
221 Enabled: true
222
223 Style/GuardClause:
224 Enabled: false
225
226 Style/HashAsLastArrayItem:
227 Enabled: false
228
229 Style/HashEachMethods:
230 Enabled: true
231
232 Style/HashLikeCase:
233 Enabled: true
234
235 Style/HashTransformKeys:
236 Enabled: true
237
238 Style/HashTransformValues:
239 Enabled: false
240
241 Style/IfUnlessModifier:
242 Enabled: false
243
244 Style/InverseMethods:
245 Enabled: false
246
247 Style/Lambda:
248 Enabled: false
249
250 Style/MutableConstant:
251 Enabled: false
252
253 Style/PercentLiteralDelimiters:
254 PreferredDelimiters:
255 '%i': '()'
256 '%w': '()'
257
258 Style/PerlBackrefs:
259 AutoCorrect: false
260
261 Style/RedundantAssignment:
262 Enabled: false
263
264 Style/RedundantFetchBlock:
265 Enabled: true
266
267 Style/RedundantFileExtensionInRequire:
268 Enabled: true
269
270 Style/RedundantRegexpCharacterClass:
271 Enabled: false
272
273 Style/RedundantRegexpEscape:
274 Enabled: false
275
276 Style/RedundantReturn:
277 Enabled: true
278
279 Style/RegexpLiteral:
280 Enabled: false
281
282 Style/RescueStandardError:
283 Enabled: false
284
285 Style/SignalException:
286 Enabled: false
287
288 Style/SlicingWithRange:
289 Enabled: true
290
291 Style/SymbolArray:
292 Enabled: false
293
294 Style/TrailingCommaInArrayLiteral:
295 EnforcedStyleForMultiline: 'comma'
296
297 Style/TrailingCommaInHashLiteral:
298 EnforcedStyleForMultiline: 'comma'
299
300 Style/UnpackFirst:
301 Enabled: false
This page took 0.085016 seconds and 4 git commands to generate.