active_record_api-rest 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 9c015d82e9d0410600e2e260782c6db5fc8da54698b171d251ddbf3fd10e2e9a
4
+ data.tar.gz: 5938f8982eb5a94983d1fc0ca5aaef8009f9cba8a23a44ff823168743aa09c7e
5
+ SHA512:
6
+ metadata.gz: f34beaefc796f488a7da2141d3defacece762387663974a48591cfc0a0a8de70b49a16ba71f00bc4af21dea6663bb38b87ed1431b2cfc78f045f8ca8a2e08c37
7
+ data.tar.gz: c908221b274adbd8c59c5209a5ab1576d563097a683387bf8ae0cb65880e30d975b6a102a4532fe01f832ad58efc0bac6578d80e0aa68687fd0e815220ddbcce
data/.codeclimate.yml ADDED
@@ -0,0 +1,27 @@
1
+ ---
2
+ version: '2'
3
+ plugins:
4
+ rubocop:
5
+ enabled: true
6
+ bundler-audit:
7
+ enabled: true
8
+ brakeman:
9
+ enabled: false
10
+ duplication:
11
+ enabled: true
12
+ config:
13
+ languages:
14
+ ruby:
15
+ mass_threshold: 30
16
+ fixme:
17
+ enabled: true
18
+ exclude_patterns:
19
+ - spec/
20
+ - bin/
21
+ - coverage/
22
+ - .idea/
23
+ - "*.gemspec"
24
+ - .rubocop.yml
25
+ - Rakefile
26
+ - lib/active_record_api/rest/spec
27
+ - lib/active_record_api-rest.rb
data/.gitignore ADDED
@@ -0,0 +1,14 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ .idea
10
+ /spec/dummy/log
11
+
12
+ # rspec failure tracking
13
+ .rspec_status
14
+ swagger-api-*.gem
data/.gitlab-ci.yml ADDED
@@ -0,0 +1,70 @@
1
+ stages:
2
+ - build
3
+ - test
4
+ - deploy
5
+
6
+ code_quality:
7
+ retry: 2
8
+ stage: build
9
+ image: docker:stable
10
+ variables:
11
+ DOCKER_DRIVER: overlay2
12
+ services:
13
+ - docker:stable-dind
14
+ script:
15
+ - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
16
+ - docker run
17
+ --env SOURCE_CODE="$PWD"
18
+ --volume "$PWD":/code
19
+ --volume /var/run/docker.sock:/var/run/docker.sock
20
+ "registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
21
+ artifacts:
22
+ paths: [gl-code-quality-report.json]
23
+ expire_in: 3 weeks
24
+
25
+ rspec:
26
+ image: ruby:2.5.1
27
+ variables:
28
+ POSTGRES_USER: runner
29
+ POSTGRES_PASSWORD: ""
30
+ RAILS_ENV: test
31
+ services:
32
+ - docker:dind
33
+ - postgres:alpine
34
+ before_script:
35
+ - bundle install --quiet
36
+ - cd spec/dummy && RAILS_ENV=test bundle exec rake db:create db:schema:load && cd ../../
37
+ script:
38
+ - bundle exec rspec
39
+ artifacts:
40
+ name: "$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA"
41
+ when: always
42
+ expire_in: 1 week
43
+ paths:
44
+ - coverage/
45
+
46
+ codequality-verify:
47
+ retry: 2
48
+ image: ruby:2.5.1
49
+ script:
50
+ - ruby -r json -r yaml -e "puts JSON.parse(File.open('gl-code-quality-report.json', 'r', &:read)).to_yaml"
51
+ - "! grep fingerprint gl-code-quality-report.json > /dev/null 2>&1"
52
+
53
+ release:
54
+ stage: deploy
55
+ image: ruby:2.5.1
56
+ before_script:
57
+ - git config --global user.email dev@fullmeasureed.com
58
+ - git config --global user.name fme-ci
59
+ - git remote remove origin
60
+ - git remote add origin https://fme-ci:${GITLAB_CI_TOKEN}@gitlab.com/$CI_PROJECT_PATH.git
61
+ - git fetch origin master
62
+ - git checkout master
63
+ - git branch -u origin/master
64
+ - gem install gem-release -v 2.0.0.rc.3
65
+ script:
66
+ - "echo -e \"---\n:rubygems_api_key: ${RUBYGEMS_KEY}\" > ~/.gem/credentials"
67
+ - chmod 0600 ~/.gem/credentials
68
+ - gem bump patch --skip-ci --tag --push --release
69
+ only:
70
+ - /(^master$)/
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,1207 @@
1
+ AllCops:
2
+ DisabledByDefault: true
3
+ TargetRubyVersion: 2.5.1
4
+
5
+ #################### Lint ################################
6
+
7
+ Lint/AmbiguousOperator:
8
+ Description: >-
9
+ Checks for ambiguous operators in the first argument of a
10
+ method invocation without parentheses.
11
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-as-args'
12
+ Enabled: true
13
+
14
+ Lint/AmbiguousRegexpLiteral:
15
+ Description: >-
16
+ Checks for ambiguous regexp literals in the first argument of
17
+ a method invocation without parenthesis.
18
+ Enabled: true
19
+
20
+ Lint/AssignmentInCondition:
21
+ Description: "Don't use assignment in conditions."
22
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition'
23
+ Enabled: true
24
+
25
+ Lint/BlockAlignment:
26
+ Description: 'Align block ends correctly.'
27
+ Enabled: true
28
+
29
+ Lint/CircularArgumentReference:
30
+ Description: "Don't refer to the keyword argument in the default value."
31
+ Enabled: true
32
+
33
+ Lint/ConditionPosition:
34
+ Description: >-
35
+ Checks for condition placed in a confusing position relative to
36
+ the keyword.
37
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#same-line-condition'
38
+ Enabled: true
39
+
40
+ Lint/Debugger:
41
+ Description: 'Check for debugger calls.'
42
+ Enabled: true
43
+
44
+ Lint/DefEndAlignment:
45
+ Description: 'Align ends corresponding to defs correctly.'
46
+ Enabled: true
47
+
48
+ Lint/DeprecatedClassMethods:
49
+ Description: 'Check for deprecated class method calls.'
50
+ Enabled: true
51
+
52
+ Lint/DuplicateMethods:
53
+ Description: 'Check for duplicate methods calls.'
54
+ Enabled: true
55
+
56
+ Lint/EachWithObjectArgument:
57
+ Description: 'Check for immutable argument given to each_with_object.'
58
+ Enabled: true
59
+
60
+ Lint/ElseLayout:
61
+ Description: 'Check for odd code arrangement in an else block.'
62
+ Enabled: true
63
+
64
+ Lint/EmptyEnsure:
65
+ Description: 'Checks for empty ensure block.'
66
+ Enabled: true
67
+
68
+ Lint/EmptyInterpolation:
69
+ Description: 'Checks for empty string interpolation.'
70
+ Enabled: true
71
+
72
+ Lint/EndAlignment:
73
+ Description: 'Align ends correctly.'
74
+ Enabled: true
75
+
76
+ Lint/EndInMethod:
77
+ Description: 'END blocks should not be placed inside method definitions.'
78
+ Enabled: true
79
+
80
+ Lint/EnsureReturn:
81
+ Description: 'Do not use return in an ensure block.'
82
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-return-ensure'
83
+ Enabled: true
84
+
85
+ Lint/Eval:
86
+ Description: 'The use of eval represents a serious security risk.'
87
+ Enabled: true
88
+
89
+ Lint/FormatParameterMismatch:
90
+ Description: 'The number of parameters to format/sprint must match the fields.'
91
+ Enabled: true
92
+
93
+ Lint/HandleExceptions:
94
+ Description: "Don't suppress exception."
95
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions'
96
+ Enabled: true
97
+
98
+ Lint/InvalidCharacterLiteral:
99
+ Description: >-
100
+ Checks for invalid character literals with a non-escaped
101
+ whitespace character.
102
+ Enabled: true
103
+
104
+ Lint/LiteralInCondition:
105
+ Description: 'Checks of literals used in conditions.'
106
+ Enabled: true
107
+
108
+ Lint/LiteralInInterpolation:
109
+ Description: 'Checks for literals used in interpolation.'
110
+ Enabled: true
111
+
112
+ Lint/Loop:
113
+ Description: >-
114
+ Use Kernel#loop with break rather than begin/end/until or
115
+ begin/end/while for post-loop tests.
116
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#loop-with-break'
117
+ Enabled: true
118
+
119
+ Lint/NestedMethodDefinition:
120
+ Description: 'Do not use nested method definitions.'
121
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-methods'
122
+ Enabled: true
123
+
124
+ Lint/NonLocalExitFromIterator:
125
+ Description: 'Do not use return in iterator to cause non-local exit.'
126
+ Enabled: true
127
+
128
+ Lint/ParenthesesAsGroupedExpression:
129
+ Description: >-
130
+ Checks for method calls with a space before the opening
131
+ parenthesis.
132
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
133
+ Enabled: true
134
+
135
+ Lint/RequireParentheses:
136
+ Description: >-
137
+ Use parentheses in the method call to avoid confusion
138
+ about precedence.
139
+ Enabled: true
140
+
141
+ Lint/RescueException:
142
+ Description: 'Avoid rescuing the Exception class.'
143
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-blind-rescues'
144
+ Enabled: true
145
+
146
+ Lint/ShadowingOuterLocalVariable:
147
+ Description: >-
148
+ Do not use the same name as outer local variable
149
+ for block arguments or block local variables.
150
+ Enabled: true
151
+
152
+ Lint/StringConversionInInterpolation:
153
+ Description: 'Checks for Object#to_s usage in string interpolation.'
154
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-to-s'
155
+ Enabled: true
156
+
157
+ Lint/UnderscorePrefixedVariableName:
158
+ Description: 'Do not use prefix `_` for a variable that is used.'
159
+ Enabled: true
160
+
161
+ Lint/UnneededDisable:
162
+ Description: >-
163
+ Checks for rubocop:disable comments that can be removed.
164
+ Note: this cop is not disabled when disabling all cops.
165
+ It must be explicitly disabled.
166
+ Enabled: true
167
+
168
+ Lint/UnusedBlockArgument:
169
+ Description: 'Checks for unused block arguments.'
170
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
171
+ Enabled: true
172
+
173
+ Lint/UnusedMethodArgument:
174
+ Description: 'Checks for unused method arguments.'
175
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
176
+ Enabled: true
177
+
178
+ Lint/UnreachableCode:
179
+ Description: 'Unreachable code.'
180
+ Enabled: true
181
+
182
+ Lint/UselessAccessModifier:
183
+ Description: 'Checks for useless access modifiers.'
184
+ Enabled: true
185
+
186
+ Lint/UselessAssignment:
187
+ Description: 'Checks for useless assignment to a local variable.'
188
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
189
+ Enabled: true
190
+
191
+ Lint/UselessComparison:
192
+ Description: 'Checks for comparison of something with itself.'
193
+ Enabled: true
194
+
195
+ Lint/UselessElseWithoutRescue:
196
+ Description: 'Checks for useless `else` in `begin..end` without `rescue`.'
197
+ Enabled: true
198
+
199
+ Lint/UselessSetterCall:
200
+ Description: 'Checks for useless setter call to a local variable.'
201
+ Enabled: true
202
+
203
+ Lint/Void:
204
+ Description: 'Possible use of operator/literal/variable in void context.'
205
+ Enabled: true
206
+
207
+ Lint/UnifiedInteger:
208
+ Description: 'Use Integer instead of Fixnum.'
209
+ Enabled: true
210
+
211
+ ###################### Metrics ####################################
212
+
213
+ Metrics/AbcSize:
214
+ Description: >-
215
+ A calculated magnitude based on number of assignments,
216
+ branches, and conditions.
217
+ Reference: 'http://c2.com/cgi/wiki?AbcMetric'
218
+ Enabled: true
219
+ Max: 20
220
+
221
+ Metrics/BlockNesting:
222
+ Description: 'Avoid excessive block nesting'
223
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count'
224
+ Enabled: true
225
+ Max: 4
226
+
227
+ Metrics/ClassLength:
228
+ Description: 'Avoid classes longer than 250 lines of code.'
229
+ Enabled: true
230
+ Max: 250
231
+
232
+ Metrics/CyclomaticComplexity:
233
+ Description: >-
234
+ A complexity metric that is strongly correlated to the number
235
+ of test cases needed to validate a method.
236
+ Enabled: true
237
+
238
+ Metrics/LineLength:
239
+ Description: 'Limit lines to 80 characters.'
240
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#80-character-limits'
241
+ Enabled: false
242
+
243
+ Metrics/MethodLength:
244
+ Description: 'Avoid methods longer than 30 lines of code.'
245
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#short-methods'
246
+ Enabled: true
247
+ Max: 30
248
+
249
+ Metrics/ModuleLength:
250
+ Description: 'Avoid modules longer than 250 lines of code.'
251
+ Enabled: true
252
+ Max: 250
253
+
254
+ Metrics/ParameterLists:
255
+ Description: 'Avoid parameter lists longer than three or four parameters.'
256
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#too-many-params'
257
+ Enabled: true
258
+
259
+ Metrics/PerceivedComplexity:
260
+ Description: >-
261
+ A complexity metric geared towards measuring complexity for a
262
+ human reader.
263
+ Enabled: true
264
+
265
+ ##################### Performance #############################
266
+
267
+ Performance/Count:
268
+ Description: >-
269
+ Use `count` instead of `select...size`, `reject...size`,
270
+ `select...count`, `reject...count`, `select...length`,
271
+ and `reject...length`.
272
+ Enabled: true
273
+
274
+ Performance/Detect:
275
+ Description: >-
276
+ Use `detect` instead of `select.first`, `find_all.first`,
277
+ `select.last`, and `find_all.last`.
278
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerabledetect-vs-enumerableselectfirst-code'
279
+ Enabled: true
280
+
281
+ Performance/FlatMap:
282
+ Description: >-
283
+ Use `Enumerable#flat_map`
284
+ instead of `Enumerable#map...Array#flatten(1)`
285
+ or `Enumberable#collect..Array#flatten(1)`
286
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerablemaparrayflatten-vs-enumerableflat_map-code'
287
+ Enabled: true
288
+ EnabledForFlattenWithoutParams: true
289
+ # If enabled, this cop will warn about usages of
290
+ # `flatten` being called without any parameters.
291
+ # This can be dangerous since `flat_map` will only flatten 1 level, and
292
+ # `flatten` without any parameters can flatten multiple levels.
293
+
294
+ Performance/ReverseEach:
295
+ Description: 'Use `reverse_each` instead of `reverse.each`.'
296
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerablereverseeach-vs-enumerablereverse_each-code'
297
+ Enabled: true
298
+
299
+ Performance/RedundantBlockCall:
300
+ Description: 'Use yield instead of block.call.'
301
+ Enabled: true
302
+
303
+ Performance/Sample:
304
+ Description: >-
305
+ Use `sample` instead of `shuffle.first`,
306
+ `shuffle.last`, and `shuffle[Fixnum]`.
307
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#arrayshufflefirst-vs-arraysample-code'
308
+ Enabled: true
309
+
310
+ Performance/Size:
311
+ Description: >-
312
+ Use `size` instead of `count` for counting
313
+ the number of elements in `Array` and `Hash`.
314
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#arraycount-vs-arraysize-code'
315
+ Enabled: true
316
+
317
+ Performance/StringReplacement:
318
+ Description: >-
319
+ Use `tr` instead of `gsub` when you are replacing the same
320
+ number of characters. Use `delete` instead of `gsub` when
321
+ you are deleting characters.
322
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#stringgsub-vs-stringtr-code'
323
+ Enabled: true
324
+
325
+ ##################### Rails ##################################
326
+
327
+ Rails/ActionFilter:
328
+ Description: 'Enforces consistent use of action filter methods.'
329
+ Enabled: true
330
+
331
+ Rails/Date:
332
+ Description: >-
333
+ Checks the correct usage of date aware methods,
334
+ such as Date.today, Date.current etc.
335
+ Enabled: true
336
+
337
+ Rails/Delegate:
338
+ Description: 'Prefer delegate method for delegations.'
339
+ Enabled: true
340
+
341
+ Rails/FindBy:
342
+ Description: 'Prefer find_by over where.first.'
343
+ Enabled: true
344
+
345
+ Rails/FindEach:
346
+ Description: 'Prefer all.find_each over all.find.'
347
+ Enabled: true
348
+
349
+ Rails/HasAndBelongsToMany:
350
+ Description: 'Prefer has_many :through to has_and_belongs_to_many.'
351
+ Enabled: true
352
+
353
+ Rails/Output:
354
+ Description: 'Checks for calls to puts, print, etc.'
355
+ Enabled: true
356
+
357
+ Rails/ReadWriteAttribute:
358
+ Description: >-
359
+ Checks for read_attribute(:attr) and
360
+ write_attribute(:attr, val).
361
+ Enabled: true
362
+
363
+ Rails/ScopeArgs:
364
+ Description: 'Checks the arguments of ActiveRecord scopes.'
365
+ Enabled: true
366
+
367
+ Rails/TimeZone:
368
+ Description: 'Checks the correct usage of time zone aware methods.'
369
+ StyleGuide: 'https://github.com/bbatsov/rails-style-guide#time'
370
+ Reference: 'http://danilenko.org/2012/7/6/rails_timezones'
371
+ Enabled: true
372
+
373
+ Rails/Validation:
374
+ Description: 'Use validates :attribute, hash of validations.'
375
+ Enabled: true
376
+
377
+ ################## Style #################################
378
+
379
+ Bundler/OrderedGems:
380
+ Enabled: true
381
+
382
+ ################## Style #################################
383
+
384
+ Style/IndentationWidth:
385
+ Enabled: true
386
+
387
+ Style/AccessModifierIndentation:
388
+ Description: Check indentation of private/protected visibility modifiers.
389
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-public-private-protected'
390
+ Enabled: true
391
+
392
+ Style/AccessorMethodName:
393
+ Description: Check the naming of accessor methods for get_/set_.
394
+ Enabled: true
395
+
396
+ Style/Alias:
397
+ Description: 'Use alias_method instead of alias.'
398
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#alias-method'
399
+ Enabled: true
400
+
401
+ Style/ConditionalAssignment:
402
+ Description: 'Use the return of the conditional for variable assignment and comparison.'
403
+ StyleGuide: ''
404
+ Enabled: true
405
+
406
+ Style/MutableConstant:
407
+ Description: 'Freeze mutable objects assigned to constants..'
408
+ StyleGuide: ''
409
+ Enabled: true
410
+
411
+ Style/AlignArray:
412
+ Description: >-
413
+ Align the elements of an array literal if they span more than
414
+ one line.
415
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#align-multiline-arrays'
416
+ Enabled: true
417
+
418
+ Style/AlignHash:
419
+ Description: >-
420
+ Align the elements of a hash literal if they span more than
421
+ one line.
422
+ Enabled: true
423
+
424
+ Style/AlignParameters:
425
+ Description: >-
426
+ Align the parameters of a method call if they span more
427
+ than one line.
428
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-double-indent'
429
+ Enabled: true
430
+
431
+ Style/AndOr:
432
+ Description: 'Use &&/|| instead of and/or.'
433
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-and-or-or'
434
+ Enabled: true
435
+
436
+ Style/ArrayJoin:
437
+ Description: 'Use Array#join instead of Array#*.'
438
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#array-join'
439
+ Enabled: true
440
+
441
+ Style/AsciiComments:
442
+ Description: 'Use only ascii symbols in comments.'
443
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-comments'
444
+ Enabled: true
445
+
446
+ Style/AsciiIdentifiers:
447
+ Description: 'Use only ascii symbols in identifiers.'
448
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-identifiers'
449
+ Enabled: true
450
+
451
+ Style/Attr:
452
+ Description: 'Checks for uses of Module#attr.'
453
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr'
454
+ Enabled: true
455
+
456
+ Style/BeginBlock:
457
+ Description: 'Avoid the use of BEGIN blocks.'
458
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-BEGIN-blocks'
459
+ Enabled: true
460
+
461
+ Style/BarePercentLiterals:
462
+ Description: 'Checks if usage of %() or %Q() matches configuration.'
463
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-q-shorthand'
464
+ Enabled: true
465
+
466
+ Style/BlockComments:
467
+ Description: 'Do not use block comments.'
468
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-block-comments'
469
+ Enabled: false
470
+
471
+ Style/BlockEndNewline:
472
+ Description: 'Put end statement of multiline block on its own line.'
473
+ Enabled: true
474
+
475
+ Style/BlockDelimiters:
476
+ Description: >-
477
+ Avoid using {...} for multi-line blocks (multiline chaining is
478
+ always ugly).
479
+ Prefer {...} over do...end for single-line blocks.
480
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
481
+ Enabled: true
482
+
483
+ Style/BracesAroundHashParameters:
484
+ Description: 'Enforce braces style around hash parameters.'
485
+ Enabled: true
486
+
487
+ Style/CaseEquality:
488
+ Description: 'Avoid explicit use of the case equality operator(===).'
489
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-case-equality'
490
+ Enabled: true
491
+
492
+ Style/CaseIndentation:
493
+ Description: 'Indentation of when in a case/when/[else/]end.'
494
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-when-to-case'
495
+ Enabled: false
496
+
497
+ Style/CharacterLiteral:
498
+ Description: 'Checks for uses of character literals.'
499
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-character-literals'
500
+ Enabled: true
501
+
502
+ Style/ClassAndModuleCamelCase:
503
+ Description: 'Use CamelCase for classes and modules.'
504
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#camelcase-classes'
505
+ Enabled: true
506
+
507
+ Style/ClassAndModuleChildren:
508
+ Description: 'Checks style of children classes and modules.'
509
+ Enabled: true
510
+
511
+ Style/ClassCheck:
512
+ Description: 'Enforces consistent use of `Object#is_a?` or `Object#kind_of?`.'
513
+ Enabled: true
514
+
515
+ Style/ClassMethods:
516
+ Description: 'Use self when defining module/class methods.'
517
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#def-self-class-methods'
518
+ Enabled: true
519
+
520
+ Style/ClassVars:
521
+ Description: 'Avoid the use of class variables.'
522
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-class-vars'
523
+ Enabled: true
524
+
525
+ Style/ClosingParenthesisIndentation:
526
+ Description: 'Checks the indentation of hanging closing parentheses.'
527
+ Enabled: true
528
+
529
+ Style/ColonMethodCall:
530
+ Description: 'Do not use :: for method call.'
531
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#double-colons'
532
+ Enabled: true
533
+
534
+ Style/CommandLiteral:
535
+ Description: 'Use `` or %x around command literals.'
536
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-x'
537
+ Enabled: true
538
+
539
+ Style/CommentAnnotation:
540
+ Description: 'Checks formatting of annotation comments.'
541
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#annotate-keywords'
542
+ Enabled: true
543
+
544
+ Style/CommentIndentation:
545
+ Description: 'Indentation of comments.'
546
+ Enabled: true
547
+
548
+ Style/ConstantName:
549
+ Description: 'Constants should use SCREAMING_SNAKE_CASE.'
550
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#screaming-snake-case'
551
+ Enabled: true
552
+
553
+ Style/DefWithParentheses:
554
+ Description: 'Use def with parentheses when there are arguments.'
555
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
556
+ Enabled: true
557
+
558
+ Style/DeprecatedHashMethods:
559
+ Description: 'Checks for use of deprecated Hash methods.'
560
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-key'
561
+ Enabled: true
562
+
563
+ Style/Documentation:
564
+ Description: 'Document classes and non-namespace modules.'
565
+ Enabled: false
566
+
567
+ Style/DotPosition:
568
+ Description: 'Checks the position of the dot in multi-line method calls.'
569
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains'
570
+ Enabled: true
571
+
572
+ Style/DoubleNegation:
573
+ Description: 'Checks for uses of double negation (!!).'
574
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-bang-bang'
575
+ Enabled: true
576
+
577
+ Style/EachWithObject:
578
+ Description: 'Prefer `each_with_object` over `inject` or `reduce`.'
579
+ Enabled: true
580
+
581
+ Style/ElseAlignment:
582
+ Description: 'Align elses and elsifs correctly.'
583
+ Enabled: true
584
+
585
+ Style/EmptyElse:
586
+ Description: 'Avoid empty else-clauses.'
587
+ Enabled: true
588
+
589
+ Style/IfInsideElse:
590
+ Description: 'Convert if nested inside else to elsif.'
591
+ Enabled: true
592
+
593
+ Style/EmptyLineBetweenDefs:
594
+ Description: 'Use empty lines between defs.'
595
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods'
596
+ Enabled: true
597
+
598
+ Style/EmptyLines:
599
+ Description: "Don't use several empty lines in a row."
600
+ Enabled: true
601
+
602
+ Style/EmptyLinesAroundAccessModifier:
603
+ Description: "Keep blank lines around access modifiers."
604
+ Enabled: true
605
+
606
+ Style/EmptyLinesAroundBlockBody:
607
+ Description: "Keeps track of empty lines around block bodies."
608
+ Enabled: true
609
+
610
+ Style/EmptyLinesAroundClassBody:
611
+ Description: "Keeps track of empty lines around class bodies."
612
+ Enabled: true
613
+
614
+ Style/EmptyLinesAroundModuleBody:
615
+ Description: "Keeps track of empty lines around module bodies."
616
+ Enabled: true
617
+
618
+ Style/EmptyLinesAroundMethodBody:
619
+ Description: "Keeps track of empty lines around method bodies."
620
+ Enabled: true
621
+
622
+ Style/EmptyLiteral:
623
+ Description: 'Prefer literals to Array.new/Hash.new/String.new.'
624
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#literal-array-hash'
625
+ Enabled: true
626
+
627
+ Style/EndBlock:
628
+ Description: 'Avoid the use of END blocks.'
629
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-END-blocks'
630
+ Enabled: true
631
+
632
+ Style/EndOfLine:
633
+ Description: 'Use Unix-style line endings.'
634
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#crlf'
635
+ Enabled: true
636
+
637
+ Style/EvenOdd:
638
+ Description: 'Favor the use of Fixnum#even? && Fixnum#odd?'
639
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
640
+ Enabled: true
641
+
642
+ Style/ExtraSpacing:
643
+ Description: 'Do not use unnecessary spacing.'
644
+ Enabled: true
645
+ AllowForAlignment: true
646
+
647
+ Style/FileName:
648
+ Description: 'Use snake_case for source file names.'
649
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-files'
650
+ Enabled: true
651
+
652
+ Style/InitialIndentation:
653
+ Description: >-
654
+ Checks the indentation of the first non-blank non-comment line in a file.
655
+ Enabled: true
656
+
657
+ Style/FirstParameterIndentation:
658
+ Description: 'Checks the indentation of the first parameter in a method call.'
659
+ Enabled: true
660
+
661
+ Style/FlipFlop:
662
+ Description: 'Checks for flip flops'
663
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-flip-flops'
664
+ Enabled: true
665
+
666
+ Style/For:
667
+ Description: 'Checks use of for or each in multiline loops.'
668
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-for-loops'
669
+ Enabled: true
670
+
671
+ Style/FormatString:
672
+ Description: 'Enforce the use of Kernel#sprintf, Kernel#format or String#%.'
673
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#sprintf'
674
+ Enabled: true
675
+
676
+ Style/GlobalVars:
677
+ Description: 'Do not introduce global variables.'
678
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#instance-vars'
679
+ Reference: 'http://www.zenspider.com/Languages/Ruby/QuickRef.html'
680
+ Enabled: true
681
+
682
+ Style/GuardClause:
683
+ Description: 'Check for conditionals that can be replaced with guard clauses'
684
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
685
+ Enabled: true
686
+
687
+ Style/HashSyntax:
688
+ Description: >-
689
+ Prefer Ruby 1.9 hash syntax { a: 1, b: 2 } over 1.8 syntax
690
+ { :a => 1, :b => 2 }.
691
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-literals'
692
+ Enabled: true
693
+
694
+ Style/IfUnlessModifier:
695
+ Description: >-
696
+ Favor modifier if/unless usage when you have a
697
+ single-line body.
698
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier'
699
+ Enabled: false
700
+
701
+ Style/IfWithSemicolon:
702
+ Description: 'Do not use if x; .... Use the ternary operator instead.'
703
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs'
704
+ Enabled: true
705
+
706
+ Style/IndentationConsistency:
707
+ Description: 'Keep indentation straight.'
708
+ Enabled: true
709
+
710
+ Style/IndentationWidth:
711
+ Description: 'Use 2 spaces for indentation.'
712
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
713
+ Enabled: true
714
+
715
+ Style/IndentArray:
716
+ Description: >-
717
+ Checks the indentation of the first element in an array
718
+ literal.
719
+ Enabled: true
720
+
721
+ Style/IndentHash:
722
+ Description: 'Checks the indentation of the first key in a hash literal.'
723
+ Enabled: true
724
+
725
+ Style/InfiniteLoop:
726
+ Description: 'Use Kernel#loop for infinite loops.'
727
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#infinite-loop'
728
+ Enabled: true
729
+
730
+ Style/Lambda:
731
+ Description: 'Use the new lambda literal syntax for single-line blocks.'
732
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#lambda-multi-line'
733
+ Enabled: true
734
+
735
+ Style/LambdaCall:
736
+ Description: 'Use lambda.call(...) instead of lambda.(...).'
737
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc-call'
738
+ Enabled: true
739
+
740
+ Style/LeadingCommentSpace:
741
+ Description: 'Comments should start with a space.'
742
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-space'
743
+ Enabled: true
744
+
745
+ Style/LineEndConcatenation:
746
+ Description: >-
747
+ Use \ instead of + or << to concatenate two string literals at
748
+ line end.
749
+ Enabled: true
750
+
751
+ Style/MethodCallParentheses:
752
+ Description: 'Do not use parentheses for method calls with no arguments.'
753
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-args-no-parens'
754
+ Enabled: true
755
+
756
+ Style/MethodDefParentheses:
757
+ Description: >-
758
+ Checks if the method definitions have or don't have
759
+ parentheses.
760
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
761
+ Enabled: true
762
+
763
+ Style/MethodName:
764
+ Description: 'Use the configured style when naming methods.'
765
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars'
766
+ Enabled: true
767
+
768
+ Style/ModuleFunction:
769
+ Description: 'Checks for usage of `extend self` in modules.'
770
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#module-function'
771
+ Enabled: true
772
+
773
+ Style/MultilineBlockChain:
774
+ Description: 'Avoid multi-line chains of blocks.'
775
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
776
+ Enabled: true
777
+
778
+ Style/MultilineBlockLayout:
779
+ Description: 'Ensures newlines after multiline block do statements.'
780
+ Enabled: true
781
+
782
+ Style/MultilineIfThen:
783
+ Description: 'Do not use then for multi-line if/unless.'
784
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-then'
785
+ Enabled: true
786
+
787
+ Style/MultilineOperationIndentation:
788
+ Description: >-
789
+ Checks indentation of binary operations that span more than
790
+ one line.
791
+ Enabled: true
792
+
793
+ Style/MultilineTernaryOperator:
794
+ Description: >-
795
+ Avoid multi-line ?: (the ternary operator);
796
+ use if/unless instead.
797
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-multiline-ternary'
798
+ Enabled: true
799
+
800
+ Style/NegatedIf:
801
+ Description: >-
802
+ Favor unless over if for negative conditions
803
+ (or control flow or).
804
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#unless-for-negatives'
805
+ Enabled: true
806
+
807
+ Style/NegatedWhile:
808
+ Description: 'Favor until over while for negative conditions.'
809
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#until-for-negatives'
810
+ Enabled: true
811
+
812
+ Style/NestedTernaryOperator:
813
+ Description: 'Use one expression per branch in a ternary operator.'
814
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-ternary'
815
+ Enabled: true
816
+
817
+ Style/Next:
818
+ Description: 'Use `next` to skip iteration instead of a condition at the end.'
819
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
820
+ Enabled: true
821
+
822
+ Style/NilComparison:
823
+ Description: 'Prefer x.nil? to x == nil.'
824
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
825
+ Enabled: true
826
+
827
+ Style/NonNilCheck:
828
+ Description: 'Checks for redundant nil checks.'
829
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-non-nil-checks'
830
+ Enabled: true
831
+
832
+ Style/Not:
833
+ Description: 'Use ! instead of not.'
834
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bang-not-not'
835
+ Enabled: true
836
+
837
+ Style/NumericLiterals:
838
+ Description: >-
839
+ Add underscores to large numeric literals to improve their
840
+ readability.
841
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics'
842
+ Enabled: true
843
+
844
+ Style/OneLineConditional:
845
+ Description: >-
846
+ Favor the ternary operator(?:) over
847
+ if/then/else/end constructs.
848
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#ternary-operator'
849
+ Enabled: true
850
+
851
+ Style/OpMethod:
852
+ Description: 'When defining binary operators, name the argument other.'
853
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#other-arg'
854
+ Enabled: true
855
+
856
+ Style/OptionalArguments:
857
+ Description: >-
858
+ Checks for optional arguments that do not appear at the end
859
+ of the argument list
860
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#optional-arguments'
861
+ Enabled: true
862
+
863
+ Style/ParallelAssignment:
864
+ Description: >-
865
+ Check for simple usages of parallel assignment.
866
+ It will only warn when the number of variables
867
+ matches on both sides of the assignment.
868
+ This also provides performance benefits
869
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parallel-assignment'
870
+ Enabled: true
871
+
872
+ Style/ParenthesesAroundCondition:
873
+ Description: >-
874
+ Don't use parentheses around the condition of an
875
+ if/unless/while.
876
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-parens-if'
877
+ Enabled: true
878
+
879
+ Style/PercentLiteralDelimiters:
880
+ Description: 'Use `%`-literal delimiters consistently'
881
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-literal-braces'
882
+ Enabled: true
883
+
884
+ Style/PercentQLiterals:
885
+ Description: 'Checks if uses of %Q/%q match the configured preference.'
886
+ Enabled: true
887
+
888
+ Style/PerlBackrefs:
889
+ Description: 'Avoid Perl-style regex back references.'
890
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers'
891
+ Enabled: true
892
+
893
+ Style/PredicateName:
894
+ Description: 'Check the names of predicate methods.'
895
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark'
896
+ Enabled: true
897
+
898
+ Style/Proc:
899
+ Description: 'Use proc instead of Proc.new.'
900
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc'
901
+ Enabled: true
902
+
903
+ Style/RaiseArgs:
904
+ Description: 'Checks the arguments passed to raise/fail.'
905
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#exception-class-messages'
906
+ Enabled: true
907
+
908
+ Style/RedundantBegin:
909
+ Description: "Don't use begin blocks when they are not needed."
910
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#begin-implicit'
911
+ Enabled: true
912
+
913
+ Style/RedundantException:
914
+ Description: "Checks for an obsolete RuntimeException argument in raise/fail."
915
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-explicit-runtimeerror'
916
+ Enabled: true
917
+
918
+ Style/RedundantReturn:
919
+ Description: "Don't use return where it's not required."
920
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-explicit-return'
921
+ Enabled: true
922
+
923
+ Style/RedundantSelf:
924
+ Description: "Don't use self where it's not needed."
925
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-self-unless-required'
926
+ Enabled: true
927
+
928
+ Style/RegexpLiteral:
929
+ Description: 'Use / or %r around regular expressions.'
930
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-r'
931
+ Enabled: true
932
+
933
+ Style/RescueEnsureAlignment:
934
+ Description: 'Align rescues and ensures correctly.'
935
+ Enabled: true
936
+
937
+ Style/RescueModifier:
938
+ Description: 'Avoid using rescue in its modifier form.'
939
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-rescue-modifiers'
940
+ Enabled: true
941
+
942
+ Style/SelfAssignment:
943
+ Description: >-
944
+ Checks for places where self-assignment shorthand should have
945
+ been used.
946
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#self-assignment'
947
+ Enabled: true
948
+
949
+ Style/Semicolon:
950
+ Description: "Don't use semicolons to terminate expressions."
951
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon'
952
+ Enabled: true
953
+
954
+ Style/SignalException:
955
+ Description: 'Checks for proper usage of fail and raise.'
956
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#fail-method'
957
+ Enabled: true
958
+
959
+ Style/SingleLineBlockParams:
960
+ Description: 'Enforces the names of some block params.'
961
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#reduce-blocks'
962
+ Enabled: true
963
+
964
+ Style/SingleLineMethods:
965
+ Description: 'Avoid single-line methods.'
966
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-single-line-methods'
967
+ Enabled: true
968
+
969
+ Style/SpaceBeforeFirstArg:
970
+ Description: >-
971
+ Checks that exactly one space is used between a method name
972
+ and the first argument for method calls without parentheses.
973
+ Enabled: true
974
+
975
+ Style/SpaceAfterColon:
976
+ Description: 'Use spaces after colons.'
977
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
978
+ Enabled: true
979
+
980
+ Style/SpaceAfterComma:
981
+ Description: 'Use spaces after commas.'
982
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
983
+ Enabled: true
984
+
985
+ Style/SpaceAroundKeyword:
986
+ Description: 'Use spaces around keywords.'
987
+ Enabled: true
988
+
989
+ Style/SpaceAfterMethodName:
990
+ Description: >-
991
+ Do not put a space between a method name and the opening
992
+ parenthesis in a method definition.
993
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
994
+ Enabled: true
995
+
996
+ Style/SpaceAfterNot:
997
+ Description: Tracks redundant space after the ! operator.
998
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-space-bang'
999
+ Enabled: true
1000
+
1001
+ Style/SpaceAfterSemicolon:
1002
+ Description: 'Use spaces after semicolons.'
1003
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
1004
+ Enabled: true
1005
+
1006
+ Style/SpaceBeforeBlockBraces:
1007
+ Description: >-
1008
+ Checks that the left block brace has or doesn't have space
1009
+ before it.
1010
+ Enabled: true
1011
+
1012
+ Style/SpaceBeforeComma:
1013
+ Description: 'No spaces before commas.'
1014
+ Enabled: true
1015
+
1016
+ Style/SpaceBeforeComment:
1017
+ Description: >-
1018
+ Checks for missing space between code and a comment on the
1019
+ same line.
1020
+ Enabled: true
1021
+
1022
+ Style/SpaceBeforeSemicolon:
1023
+ Description: 'No spaces before semicolons.'
1024
+ Enabled: true
1025
+
1026
+ Style/SpaceInsideBlockBraces:
1027
+ Description: >-
1028
+ Checks that block braces have or don't have surrounding space.
1029
+ For blocks taking parameters, checks that the left brace has
1030
+ or doesn't have trailing space.
1031
+ Enabled: true
1032
+
1033
+ Style/SpaceAroundBlockParameters:
1034
+ Description: 'Checks the spacing inside and after block parameters pipes.'
1035
+ Enabled: true
1036
+
1037
+ Style/SpaceAroundEqualsInParameterDefault:
1038
+ Description: >-
1039
+ Checks that the equals signs in parameter default assignments
1040
+ have or don't have surrounding space depending on
1041
+ configuration.
1042
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-around-equals'
1043
+ Enabled: true
1044
+
1045
+ Style/SpaceAroundOperators:
1046
+ Description: 'Use a single space around operators.'
1047
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
1048
+ Enabled: true
1049
+
1050
+ Style/SpaceInsideBrackets:
1051
+ Description: 'No spaces after [ or before ].'
1052
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
1053
+ Enabled: true
1054
+
1055
+ Style/SpaceInsideHashLiteralBraces:
1056
+ Description: "Use spaces inside hash literal braces - or don't."
1057
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
1058
+ Enabled: true
1059
+
1060
+ Style/SpaceInsideParens:
1061
+ Description: 'No spaces after ( or before ).'
1062
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
1063
+ Enabled: true
1064
+
1065
+ Style/SpaceInsideRangeLiteral:
1066
+ Description: 'No spaces inside range literals.'
1067
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-space-inside-range-literals'
1068
+ Enabled: true
1069
+
1070
+ Style/SpaceInsideStringInterpolation:
1071
+ Description: 'Checks for padding/surrounding spaces inside string interpolation.'
1072
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#string-interpolation'
1073
+ Enabled: true
1074
+
1075
+ Style/SpecialGlobalVars:
1076
+ Description: 'Avoid Perl-style global variables.'
1077
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms'
1078
+ Enabled: true
1079
+
1080
+ Style/StringLiterals:
1081
+ Description: 'Checks if uses of quotes match the configured preference.'
1082
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-string-literals'
1083
+ Enabled: true
1084
+
1085
+ Style/StringLiteralsInInterpolation:
1086
+ Description: >-
1087
+ Checks if uses of quotes inside expressions in interpolated
1088
+ strings match the configured preference.
1089
+ Enabled: true
1090
+
1091
+ Style/StructInheritance:
1092
+ Description: 'Checks for inheritance from Struct.new.'
1093
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-extend-struct-new'
1094
+ Enabled: true
1095
+
1096
+ Style/SymbolLiteral:
1097
+ Description: 'Use plain symbols instead of string symbols when possible.'
1098
+ Enabled: true
1099
+
1100
+ Style/SymbolProc:
1101
+ Description: 'Use symbols as procs instead of blocks when possible.'
1102
+ Enabled: true
1103
+
1104
+ Style/Tab:
1105
+ Description: 'No hard tabs.'
1106
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
1107
+ Enabled: true
1108
+
1109
+ Style/TrailingBlankLines:
1110
+ Description: 'Checks trailing blank lines and final newline.'
1111
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#newline-eof'
1112
+ Enabled: true
1113
+
1114
+ Style/TrailingCommaInArguments:
1115
+ Description: 'Checks for trailing comma in parameter lists.'
1116
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-params-comma'
1117
+ Enabled: true
1118
+
1119
+ Style/TrailingCommaInLiteral:
1120
+ Description: 'Checks for trailing comma in literals.'
1121
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
1122
+ Enabled: true
1123
+
1124
+ Style/TrailingWhitespace:
1125
+ Description: 'Avoid trailing whitespace.'
1126
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace'
1127
+ Enabled: true
1128
+
1129
+ Style/TrivialAccessors:
1130
+ Description: 'Prefer attr_* methods to trivial readers/writers.'
1131
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr_family'
1132
+ Enabled: true
1133
+
1134
+ Style/UnlessElse:
1135
+ Description: >-
1136
+ Do not use unless with else. Rewrite these with the positive
1137
+ case first.
1138
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-else-with-unless'
1139
+ Enabled: true
1140
+
1141
+ Style/UnneededCapitalW:
1142
+ Description: 'Checks for %W when interpolation is not needed.'
1143
+ Enabled: true
1144
+
1145
+ Style/UnneededPercentQ:
1146
+ Description: 'Checks for %q/%Q when single quotes or double quotes would do.'
1147
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-q'
1148
+ Enabled: true
1149
+
1150
+ Style/TrailingUnderscoreVariable:
1151
+ Description: >-
1152
+ Checks for the usage of unneeded trailing underscores at the
1153
+ end of parallel variable assignment.
1154
+ Enabled: true
1155
+
1156
+ Style/VariableInterpolation:
1157
+ Description: >-
1158
+ Don't interpolate global, instance and class variables
1159
+ directly in strings.
1160
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#curlies-interpolate'
1161
+ Enabled: true
1162
+
1163
+ Style/VariableName:
1164
+ Description: 'Use the configured style when naming variables.'
1165
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars'
1166
+ Enabled: true
1167
+
1168
+ Style/WhenThen:
1169
+ Description: 'Use when x then ... for one-line cases.'
1170
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#one-line-cases'
1171
+ Enabled: true
1172
+
1173
+ Style/WhileUntilDo:
1174
+ Description: 'Checks for redundant do after while or until.'
1175
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-multiline-while-do'
1176
+ Enabled: true
1177
+
1178
+ Style/WhileUntilModifier:
1179
+ Description: >-
1180
+ Favor modifier while/until usage when you have a
1181
+ single-line body.
1182
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier'
1183
+ Enabled: true
1184
+
1185
+ Style/WordArray:
1186
+ Description: 'Use %w or %W for arrays of words.'
1187
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-w'
1188
+ Enabled: true
1189
+
1190
+ Style/UnneededInterpolation:
1191
+ Enabled: true
1192
+
1193
+ Style/MultilineMethodCallIndentation:
1194
+ Enabled: true
1195
+
1196
+ Style/SpaceInLambdaLiteral:
1197
+ SupportedStyles: require_space
1198
+ Enabled: true
1199
+
1200
+ Style/SpaceInsidePercentLiteralDelimiters:
1201
+ Enabled: true
1202
+
1203
+ Style/EmptyMethod:
1204
+ Enabled: true
1205
+
1206
+ Style/VariableNumber:
1207
+ Enabled: true