reinteractive-style 0.2.1

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
+ SHA1:
3
+ metadata.gz: ef1d933f0cae4938ca2af6eb3f31099cc5964549
4
+ data.tar.gz: aa4c1d98acf6175b3bd48982f55f57dd001fb9ad
5
+ SHA512:
6
+ metadata.gz: 30876c08bea04794a86e78d6f37b6cfccc2188b838c6a26ceca7371410008b3e798d24bcb0ca8a2135887c1b08c5bcf4bb9f347256542919eaa66dee0907f5ab
7
+ data.tar.gz: 195c3e8815d9869af27c6435cc4231e7552c658f95b1f287192218aa412ef64d9fbe420338fdea332d421dbd9d62a528e4e221fecd5a25a5487149e71ab1f0d1
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rubocop.yml ADDED
@@ -0,0 +1 @@
1
+ inherit_from: default.yml
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in reinteractive-style.gemspec
6
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 reinteractive
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,35 @@
1
+ # reinteractive-style
2
+
3
+ Our internal Ruby code style configurations, enforced by Rubocop.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ group :development do
11
+ gem "reinteractive-style"
12
+ end
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ ## Usage
20
+
21
+ Create a `.rubocop.yml` with the following directives:
22
+
23
+ ```yaml
24
+ inherit_gem:
25
+ reinteractive-style:
26
+ - default.yml
27
+ ```
28
+
29
+ There's no need to add the `rubocop` gem to your project's `Gemfile`; `rubocop`
30
+ is a dependency of `reinteractive-style`, to ensure we use a consistent minimum
31
+ version across all of our projects.
32
+
33
+ ## Credits
34
+
35
+ Inspired by [percy-style](https://github.com/percy/percy-style)
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/default.yml ADDED
@@ -0,0 +1,1081 @@
1
+ require: rubocop-rspec
2
+
3
+ AllCops:
4
+ Include:
5
+ - "**/**/*.rake"
6
+ - "**/Gemfile"
7
+ - "**/Rakefile"
8
+ Exclude:
9
+ - "vendor/**/*"
10
+ - "db/**/*"
11
+ - "node_modules/**/*"
12
+ - "bin/*"
13
+ Rails:
14
+ Enabled: true
15
+ Style/AndOr:
16
+ Description: Use &&/|| instead of and/or.
17
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-and-or-or
18
+ Enabled: true
19
+ EnforcedStyle: always
20
+ SupportedStyles:
21
+ - always
22
+ - conditionals
23
+ Style/BarePercentLiterals:
24
+ Description: Checks if usage of %() or %Q() matches configuration.
25
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-q-shorthand
26
+ Enabled: true
27
+ EnforcedStyle: bare_percent
28
+ SupportedStyles:
29
+ - percent_q
30
+ - bare_percent
31
+ Style/BracesAroundHashParameters:
32
+ Description: Enforce braces style around hash parameters.
33
+ Enabled: true
34
+ EnforcedStyle: no_braces
35
+ SupportedStyles:
36
+ - braces
37
+ - no_braces
38
+ - context_dependent
39
+ Style/ClassAndModuleChildren:
40
+ Description: Checks style of children classes and modules.
41
+ Enabled: false
42
+ EnforcedStyle: nested
43
+ SupportedStyles:
44
+ - nested
45
+ - compact
46
+ Style/ClassCheck:
47
+ Description: Enforces consistent use of `Object#is_a?` or `Object#kind_of?`.
48
+ Enabled: true
49
+ EnforcedStyle: is_a?
50
+ SupportedStyles:
51
+ - is_a?
52
+ - kind_of?
53
+ Style/CollectionMethods:
54
+ Description: Preferred collection methods.
55
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#map-find-select-reduce-size
56
+ Enabled: true
57
+ PreferredMethods:
58
+ collect: map
59
+ collect!: map!
60
+ inject: reduce
61
+ detect: find
62
+ find_all: select
63
+ find: detect
64
+ Style/CommentAnnotation:
65
+ Description: Checks formatting of special comments (TODO, FIXME, OPTIMIZE, HACK,
66
+ REVIEW).
67
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#annotate-keywords
68
+ Enabled: false
69
+ Keywords:
70
+ - TODO
71
+ - FIXME
72
+ - OPTIMIZE
73
+ - HACK
74
+ - REVIEW
75
+ Style/Encoding:
76
+ Description: Use UTF-8 as the source file encoding.
77
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#utf-8
78
+ Enabled: false
79
+ EnforcedStyle: always
80
+ SupportedStyles:
81
+ - when_needed
82
+ - always
83
+ Style/FileName:
84
+ Description: Use snake_case for source file names.
85
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-files
86
+ Enabled: false
87
+ Exclude: []
88
+ Style/FrozenStringLiteralComment:
89
+ Description: >-
90
+ Add the frozen_string_literal comment to the top of files
91
+ to help transition from Ruby 2.3.0 to Ruby 3.0.
92
+ Enabled: false
93
+ Style/For:
94
+ Description: Checks use of for or each in multiline loops.
95
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-for-loops
96
+ Enabled: true
97
+ EnforcedStyle: each
98
+ SupportedStyles:
99
+ - for
100
+ - each
101
+ Style/FormatString:
102
+ Description: Enforce the use of Kernel#sprintf, Kernel#format or String#%.
103
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#sprintf
104
+ Enabled: false
105
+ EnforcedStyle: format
106
+ SupportedStyles:
107
+ - format
108
+ - sprintf
109
+ - percent
110
+ Style/GlobalVars:
111
+ Description: Do not introduce global variables.
112
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#instance-vars
113
+ Enabled: false
114
+ AllowedVariables: []
115
+ Style/GuardClause:
116
+ Description: Check for conditionals that can be replaced with guard clauses
117
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals
118
+ Enabled: false
119
+ MinBodyLength: 1
120
+ Style/HashSyntax:
121
+ Description: 'Prefer Ruby 1.9 hash syntax { a: 1, b: 2 } over 1.8 syntax { :a =>
122
+ 1, :b => 2 }.'
123
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#hash-literals
124
+ Enabled: true
125
+ EnforcedStyle: ruby19
126
+ SupportedStyles:
127
+ - ruby19
128
+ - hash_rockets
129
+ Style/IfUnlessModifier:
130
+ Description: Favor modifier if/unless usage when you have a single-line body.
131
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier
132
+ Enabled: false
133
+ MaxLineLength: 80
134
+ Style/LambdaCall:
135
+ Description: Use lambda.call(...) instead of lambda.(...).
136
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#proc-call
137
+ Enabled: false
138
+ EnforcedStyle: call
139
+ SupportedStyles:
140
+ - call
141
+ - braces
142
+ Style/Next:
143
+ Description: Use `next` to skip iteration instead of a condition at the end.
144
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals
145
+ Enabled: false
146
+ EnforcedStyle: skip_modifier_ifs
147
+ MinBodyLength: 3
148
+ SupportedStyles:
149
+ - skip_modifier_ifs
150
+ - always
151
+ Style/NonNilCheck:
152
+ Description: Checks for redundant nil checks.
153
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-non-nil-checks
154
+ Enabled: true
155
+ IncludeSemanticChanges: false
156
+ Style/MethodDefParentheses:
157
+ Description: Checks if the method definitions have or don't have parentheses.
158
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#method-parens
159
+ Enabled: true
160
+ EnforcedStyle: require_parentheses
161
+ SupportedStyles:
162
+ - require_parentheses
163
+ - require_no_parentheses
164
+ Style/MethodName:
165
+ Description: Use the configured style when naming methods.
166
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars
167
+ Enabled: true
168
+ EnforcedStyle: snake_case
169
+ SupportedStyles:
170
+ - snake_case
171
+ - camelCase
172
+ Style/NumericLiterals:
173
+ Description: Add underscores to large numeric literals to improve their readability.
174
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics
175
+ Enabled: false
176
+ MinDigits: 5
177
+ Style/NumericPredicate:
178
+ Enabled: false
179
+ Style/ParenthesesAroundCondition:
180
+ Description: Don't use parentheses around the condition of an if/unless/while.
181
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-parens-if
182
+ Enabled: true
183
+ AllowSafeAssignment: true
184
+ Style/PercentLiteralDelimiters:
185
+ Description: Use `%`-literal delimiters consistently
186
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-literal-braces
187
+ Enabled: false
188
+ PreferredDelimiters:
189
+ "%": "()"
190
+ "%i": "()"
191
+ "%q": "()"
192
+ "%Q": "()"
193
+ "%r": "{}"
194
+ "%s": "()"
195
+ "%w": "()"
196
+ "%W": "()"
197
+ "%x": "()"
198
+ Style/PercentQLiterals:
199
+ Description: Checks if uses of %Q/%q match the configured preference.
200
+ Enabled: true
201
+ EnforcedStyle: lower_case_q
202
+ SupportedStyles:
203
+ - lower_case_q
204
+ - upper_case_q
205
+ Style/PredicateName:
206
+ Description: Check the names of predicate methods.
207
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark
208
+ Enabled: true
209
+ NamePrefix:
210
+ - is_
211
+ - has_
212
+ - have_
213
+ NamePrefixBlacklist:
214
+ - is_
215
+ Style/RaiseArgs:
216
+ Description: Checks the arguments passed to raise/fail.
217
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#exception-class-messages
218
+ Enabled: false
219
+ EnforcedStyle: exploded
220
+ SupportedStyles:
221
+ - compact
222
+ - exploded
223
+ Style/RedundantReturn:
224
+ Description: Don't use return where it's not required.
225
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-explicit-return
226
+ Enabled: true
227
+ AllowMultipleReturnValues: false
228
+ Style/RegexpLiteral:
229
+ Description: Use %r for regular expressions matching more than `MaxSlashes` '/'
230
+ characters. Use %r only for regular expressions matching more than `MaxSlashes`
231
+ '/' character.
232
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-r
233
+ Enabled: false
234
+ Style/Semicolon:
235
+ Description: Don't use semicolons to terminate expressions.
236
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-semicolon
237
+ Enabled: true
238
+ AllowAsExpressionSeparator: false
239
+ Style/SignalException:
240
+ Description: Checks for proper usage of fail and raise.
241
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#fail-method
242
+ Enabled: false
243
+ EnforcedStyle: semantic
244
+ SupportedStyles:
245
+ - only_raise
246
+ - only_fail
247
+ - semantic
248
+ Style/SingleLineBlockParams:
249
+ Description: Enforces the names of some block params.
250
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#reduce-blocks
251
+ Enabled: false
252
+ Methods:
253
+ - reduce:
254
+ - a
255
+ - e
256
+ - inject:
257
+ - a
258
+ - e
259
+ Style/SingleLineMethods:
260
+ Description: Avoid single-line methods.
261
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-single-line-methods
262
+ Enabled: false
263
+ AllowIfMethodIsEmpty: true
264
+ Style/StringLiterals:
265
+ Description: Checks if uses of quotes match the configured preference.
266
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-string-literals
267
+ Enabled: true
268
+ EnforcedStyle: double_quotes
269
+ SupportedStyles:
270
+ - single_quotes
271
+ - double_quotes
272
+ Style/StringLiteralsInInterpolation:
273
+ Description: Checks if uses of quotes inside expressions in interpolated strings
274
+ match the configured preference.
275
+ Enabled: true
276
+ EnforcedStyle: single_quotes
277
+ SupportedStyles:
278
+ - single_quotes
279
+ - double_quotes
280
+ Style/SymbolProc:
281
+ Description: Use symbols as procs instead of blocks when possible.
282
+ Enabled: true
283
+ IgnoredMethods:
284
+ - respond_to
285
+ Style/TrailingCommaInLiteral:
286
+ Description: Checks for trailing comma in parameter lists and literals.
287
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas
288
+ Enabled: true
289
+ EnforcedStyleForMultiline: comma
290
+ SupportedStylesForMultiline:
291
+ - comma
292
+ - no_comma
293
+ Style/TrailingCommaInArguments:
294
+ Description: Checks for trailing comma in parameter lists and literals.
295
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas
296
+ Enabled: true
297
+ EnforcedStyleForMultiline: comma
298
+ SupportedStylesForMultiline:
299
+ - comma
300
+ - no_comma
301
+ Style/TrivialAccessors:
302
+ Description: Prefer attr_* methods to trivial readers/writers.
303
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#attr_family
304
+ Enabled: false
305
+ ExactNameMatch: false
306
+ AllowPredicates: false
307
+ AllowDSLWriters: false
308
+ Whitelist:
309
+ - to_ary
310
+ - to_a
311
+ - to_c
312
+ - to_enum
313
+ - to_h
314
+ - to_hash
315
+ - to_i
316
+ - to_int
317
+ - to_io
318
+ - to_open
319
+ - to_path
320
+ - to_proc
321
+ - to_r
322
+ - to_regexp
323
+ - to_str
324
+ - to_s
325
+ - to_sym
326
+ Style/VariableName:
327
+ Description: Use the configured style when naming variables.
328
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars
329
+ Enabled: true
330
+ EnforcedStyle: snake_case
331
+ SupportedStyles:
332
+ - snake_case
333
+ - camelCase
334
+ Style/WhileUntilModifier:
335
+ Description: Favor modifier while/until usage when you have a single-line body.
336
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier
337
+ Enabled: false
338
+ MaxLineLength: 80
339
+ Style/WordArray:
340
+ Description: Use %w or %W for arrays of words.
341
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-w
342
+ Enabled: false
343
+ MinSize: 0
344
+ WordRegex: !ruby/regexp /\A[\p{Word}]+\z/
345
+ Metrics/AbcSize:
346
+ Description: A calculated magnitude based on number of assignments, branches, and
347
+ conditions.
348
+ Enabled: true
349
+ Max: 15
350
+ Metrics/BlockLength:
351
+ Exclude:
352
+ - "spec/**/*"
353
+ Metrics/BlockNesting:
354
+ Description: Avoid excessive block nesting
355
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count
356
+ Enabled: true
357
+ Max: 3
358
+ Metrics/ClassLength:
359
+ Description: Avoid classes longer than 100 lines of code.
360
+ Enabled: false
361
+ CountComments: false
362
+ Max: 100
363
+ Metrics/CyclomaticComplexity:
364
+ Description: A complexity metric that is strongly correlated to the number of test
365
+ cases needed to validate a method.
366
+ Enabled: true
367
+ Max: 6
368
+ Metrics/LineLength:
369
+ Description: Limit lines to 80 characters.
370
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#80-character-limits
371
+ Enabled: true
372
+ Max: 80
373
+ AllowURI: true
374
+ URISchemes:
375
+ - http
376
+ - https
377
+ Metrics/MethodLength:
378
+ Description: Avoid methods longer than 10 lines of code.
379
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#short-methods
380
+ Enabled: true
381
+ CountComments: true
382
+ Max: 10
383
+ Exclude:
384
+ - "spec/**/*"
385
+ Metrics/ParameterLists:
386
+ Description: Avoid long parameter lists.
387
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#too-many-params
388
+ Enabled: true
389
+ Max: 5
390
+ CountKeywordArgs: true
391
+ Metrics/PerceivedComplexity:
392
+ Description: A complexity metric geared towards measuring complexity for a human
393
+ reader.
394
+ Enabled: true
395
+ Max: 7
396
+ Lint/AssignmentInCondition:
397
+ Description: Don't use assignment in conditions.
398
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition
399
+ Enabled: false
400
+ AllowSafeAssignment: true
401
+ Lint/EndAlignment:
402
+ Description: Align ends correctly.
403
+ Enabled: true
404
+ EnforcedStyleAlignWith: keyword
405
+ SupportedStylesAlignWith:
406
+ - keyword
407
+ - variable
408
+ Lint/DefEndAlignment:
409
+ Description: Align ends corresponding to defs correctly.
410
+ Enabled: true
411
+ EnforcedStyleAlignWith: start_of_line
412
+ SupportedStylesAlignWith:
413
+ - start_of_line
414
+ - def
415
+ Rails/ActionFilter:
416
+ Description: Enforces consistent use of action filter methods.
417
+ Enabled: true
418
+ EnforcedStyle: action
419
+ SupportedStyles:
420
+ - action
421
+ - filter
422
+ Include:
423
+ - app/controllers/**/*.rb
424
+ Rails/HasAndBelongsToMany:
425
+ Description: Prefer has_many :through to has_and_belongs_to_many.
426
+ Enabled: true
427
+ Include:
428
+ - app/models/**/*.rb
429
+ Rails/HttpPositionalArguments:
430
+ Enabled: false
431
+ Rails/Output:
432
+ Description: Checks for calls to puts, print, etc.
433
+ Enabled: true
434
+ Include:
435
+ - app/**/*.rb
436
+ - config/**/*.rb
437
+ - db/**/*.rb
438
+ - lib/**/*.rb
439
+ Rails/ReadWriteAttribute:
440
+ Description: Checks for read_attribute(:attr) and write_attribute(:attr, val).
441
+ Enabled: true
442
+ Include:
443
+ - app/models/**/*.rb
444
+ Rails/ScopeArgs:
445
+ Description: Checks the arguments of ActiveRecord scopes.
446
+ Enabled: true
447
+ Include:
448
+ - app/models/**/*.rb
449
+ Rails/Validation:
450
+ Description: Use validates :attribute, hash of validations.
451
+ Enabled: true
452
+ Include:
453
+ - app/models/**/*.rb
454
+ Style/InlineComment:
455
+ Description: Avoid inline comments.
456
+ Enabled: false
457
+ Style/MethodCalledOnDoEndBlock:
458
+ Description: Avoid chaining a method call on a do...end block.
459
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#single-line-blocks
460
+ Enabled: false
461
+ Style/SymbolArray:
462
+ Description: Use %i or %I for arrays of symbols.
463
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-i
464
+ Enabled: false
465
+ Style/AccessorMethodName:
466
+ Description: Check the naming of accessor methods for get_/set_.
467
+ Enabled: false
468
+ Style/Alias:
469
+ Description: Use alias_method instead of alias.
470
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#alias-method
471
+ Enabled: false
472
+ Style/ArrayJoin:
473
+ Description: Use Array#join instead of Array#*.
474
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#array-join
475
+ Enabled: false
476
+ Style/AsciiComments:
477
+ Description: Use only ascii symbols in comments.
478
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#english-comments
479
+ Enabled: false
480
+ Style/AsciiIdentifiers:
481
+ Description: Use only ascii symbols in identifiers.
482
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#english-identifiers
483
+ Enabled: false
484
+ Style/Attr:
485
+ Description: Checks for uses of Module#attr.
486
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#attr
487
+ Enabled: false
488
+ Style/BeginBlock:
489
+ Description: Avoid the use of BEGIN blocks.
490
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-BEGIN-blocks
491
+ Enabled: true
492
+ Style/BlockComments:
493
+ Description: Do not use block comments.
494
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-block-comments
495
+ Enabled: true
496
+ Style/BlockDelimiters:
497
+ Description: Avoid using {...} for multi-line blocks (multiline chaining is always
498
+ ugly). Prefer {...} over do...end for single-line blocks.
499
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#single-line-blocks
500
+ Enabled: true
501
+ Style/CaseEquality:
502
+ Description: Avoid explicit use of the case equality operator(===).
503
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-case-equality
504
+ Enabled: false
505
+ Style/CharacterLiteral:
506
+ Description: Checks for uses of character literals.
507
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-character-literals
508
+ Enabled: false
509
+ Style/ClassAndModuleCamelCase:
510
+ Description: Use CamelCase for classes and modules.
511
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#camelcase-classes
512
+ Enabled: true
513
+ Style/ClassMethods:
514
+ Description: Use self when defining module/class methods.
515
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#def-self-singletons
516
+ Enabled: true
517
+ Style/ClassVars:
518
+ Description: Avoid the use of class variables.
519
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-class-vars
520
+ Enabled: false
521
+ Style/ColonMethodCall:
522
+ Description: 'Do not use :: for method call.'
523
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#double-colons
524
+ Enabled: false
525
+ Style/ConstantName:
526
+ Description: Constants should use SCREAMING_SNAKE_CASE.
527
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#screaming-snake-case
528
+ Enabled: true
529
+ Style/DefWithParentheses:
530
+ Description: Use def with parentheses when there are arguments.
531
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#method-parens
532
+ Enabled: true
533
+ Style/Documentation:
534
+ Description: Document classes and non-namespace modules.
535
+ Enabled: false
536
+ Style/DoubleNegation:
537
+ Description: Checks for uses of double negation (!!).
538
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-bang-bang
539
+ Enabled: false
540
+ Style/EachWithObject:
541
+ Description: Prefer `each_with_object` over `inject` or `reduce`.
542
+ Enabled: false
543
+ Style/EmptyElse:
544
+ Description: Avoid empty else-clauses.
545
+ Enabled: true
546
+ Style/EmptyLiteral:
547
+ Description: Prefer literals to Array.new/Hash.new/String.new.
548
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#literal-array-hash
549
+ Enabled: false
550
+ Style/EndBlock:
551
+ Description: Avoid the use of END blocks.
552
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-END-blocks
553
+ Enabled: true
554
+ Style/EvenOdd:
555
+ Description: Favor the use of Fixnum#even? && Fixnum#odd?
556
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#predicate-methods
557
+ Enabled: false
558
+ Style/FlipFlop:
559
+ Description: Checks for flip flops
560
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-flip-flops
561
+ Enabled: false
562
+ Style/IfWithSemicolon:
563
+ Description: Do not use if x; .... Use the ternary operator instead.
564
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs
565
+ Enabled: false
566
+ Style/InfiniteLoop:
567
+ Description: Use Kernel#loop for infinite loops.
568
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#infinite-loop
569
+ Enabled: true
570
+ Style/Lambda:
571
+ Description: Use the new lambda literal syntax for single-line blocks.
572
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#lambda-multi-line
573
+ Enabled: false
574
+ Style/LineEndConcatenation:
575
+ Description: Use \ instead of + or << to concatenate two string literals at line
576
+ end.
577
+ Enabled: false
578
+ Style/MethodCallWithoutArgsParentheses:
579
+ Description: Do not use parentheses for method calls with no arguments.
580
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-args-no-parens
581
+ Enabled: true
582
+ Style/ModuleFunction:
583
+ Description: Checks for usage of `extend self` in modules.
584
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#module-function
585
+ Enabled: false
586
+ Style/MultilineIfThen:
587
+ Description: Do not use then for multi-line if/unless.
588
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-then
589
+ Enabled: true
590
+ Style/MultilineTernaryOperator:
591
+ Description: 'Avoid multi-line ?: (the ternary operator); use if/unless instead.'
592
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-multiline-ternary
593
+ Enabled: true
594
+ Style/NegatedIf:
595
+ Description: Favor unless over if for negative conditions (or control flow or).
596
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#unless-for-negatives
597
+ Enabled: false
598
+ Style/NegatedWhile:
599
+ Description: Favor until over while for negative conditions.
600
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#until-for-negatives
601
+ Enabled: false
602
+ Style/NestedTernaryOperator:
603
+ Description: Use one expression per branch in a ternary operator.
604
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-ternary
605
+ Enabled: true
606
+ Style/NilComparison:
607
+ Description: Prefer x.nil? to x == nil.
608
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#predicate-methods
609
+ Enabled: false
610
+ Style/Not:
611
+ Description: Use ! instead of not.
612
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#bang-not-not
613
+ Enabled: false
614
+ Style/OneLineConditional:
615
+ Description: Favor the ternary operator(?:) over if/then/else/end constructs.
616
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#ternary-operator
617
+ Enabled: false
618
+ Style/OpMethod:
619
+ Description: When defining binary operators, name the argument other.
620
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#other-arg
621
+ Enabled: false
622
+ Style/PerlBackrefs:
623
+ Description: Avoid Perl-style regex back references.
624
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers
625
+ Enabled: false
626
+ Style/PreferredHashMethods:
627
+ Description: Checks for use of deprecated Hash methods.
628
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#hash-key
629
+ Enabled: false
630
+ Style/Proc:
631
+ Description: Use proc instead of Proc.new.
632
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#proc
633
+ Enabled: false
634
+ Style/RedundantBegin:
635
+ Description: Don't use begin blocks when they are not needed.
636
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#begin-implicit
637
+ Enabled: true
638
+ Style/RedundantException:
639
+ Description: Checks for an obsolete RuntimeException argument in raise/fail.
640
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-explicit-runtimeerror
641
+ Enabled: true
642
+ Style/RedundantSelf:
643
+ Description: Don't use self where it's not needed.
644
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-self-unless-required
645
+ Enabled: true
646
+ Style/RescueModifier:
647
+ Description: Avoid using rescue in its modifier form.
648
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-rescue-modifiers
649
+ Enabled: true
650
+ Style/SelfAssignment:
651
+ Description: Checks for places where self-assignment shorthand should have been
652
+ used.
653
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#self-assignment
654
+ Enabled: false
655
+ Style/SpecialGlobalVars:
656
+ Description: Avoid Perl-style global variables.
657
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms
658
+ Enabled: false
659
+ Style/StructInheritance:
660
+ Description: Checks for inheritance from Struct.new.
661
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-extend-struct-new
662
+ Enabled: true
663
+ Style/UnlessElse:
664
+ Description: Do not use unless with else. Rewrite these with the positive case first.
665
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-else-with-unless
666
+ Enabled: true
667
+ Style/UnneededCapitalW:
668
+ Description: Checks for %W when interpolation is not needed.
669
+ Enabled: true
670
+ Style/UnneededPercentQ:
671
+ Description: Checks for %q/%Q when single quotes or double quotes would do.
672
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-q
673
+ Enabled: true
674
+ Style/CommandLiteral:
675
+ Description: Checks for %x when `` would do.
676
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-x
677
+ Enabled: true
678
+ Style/VariableInterpolation:
679
+ Description: Don't interpolate global, instance and class variables directly in
680
+ strings.
681
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#curlies-interpolate
682
+ Enabled: false
683
+ Style/WhenThen:
684
+ Description: Use when x then ... for one-line cases.
685
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#one-line-cases
686
+ Enabled: false
687
+ Style/WhileUntilDo:
688
+ Description: Checks for redundant do after while or until.
689
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-multiline-while-do
690
+ Enabled: true
691
+ Layout/AccessModifierIndentation:
692
+ Description: Check indentation of private/protected visibility modifiers.
693
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#indent-public-private-protected
694
+ Enabled: true
695
+ EnforcedStyle: indent
696
+ SupportedStyles:
697
+ - outdent
698
+ - indent
699
+ Layout/AlignHash:
700
+ Description: Align the elements of a hash literal if they span more than one line.
701
+ Enabled: true
702
+ EnforcedHashRocketStyle: key
703
+ EnforcedColonStyle: key
704
+ EnforcedLastArgumentHashStyle: always_inspect
705
+ SupportedLastArgumentHashStyles:
706
+ - always_inspect
707
+ - always_ignore
708
+ - ignore_implicit
709
+ - ignore_explicit
710
+ Layout/AlignParameters:
711
+ Description: Align the parameters of a method call if they span more than one line.
712
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-double-indent
713
+ Enabled: true
714
+ EnforcedStyle: with_first_parameter
715
+ SupportedStyles:
716
+ - with_first_parameter
717
+ - with_fixed_indentation
718
+ Layout/CaseIndentation:
719
+ Description: Indentation of when in a case/when/[else/]end.
720
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#indent-when-to-case
721
+ Enabled: true
722
+ EnforcedStyle: case
723
+ SupportedStyles:
724
+ - case
725
+ - end
726
+ IndentOneStep: false
727
+ Layout/CommentIndentation:
728
+ Description: Indentation of comments.
729
+ Enabled: true
730
+ Layout/DotPosition:
731
+ Description: Checks the position of the dot in multi-line method calls.
732
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains
733
+ Enabled: true
734
+ EnforcedStyle: trailing
735
+ SupportedStyles:
736
+ - leading
737
+ - trailing
738
+ Layout/EmptyLineBetweenDefs:
739
+ Description: Use empty lines between defs.
740
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods
741
+ Enabled: true
742
+ AllowAdjacentOneLineDefs: false
743
+ Layout/EmptyLinesAroundBlockBody:
744
+ Description: Keeps track of empty lines around block bodies.
745
+ Enabled: true
746
+ EnforcedStyle: no_empty_lines
747
+ SupportedStyles:
748
+ - empty_lines
749
+ - no_empty_lines
750
+ Layout/EmptyLinesAroundClassBody:
751
+ Description: Keeps track of empty lines around class bodies.
752
+ Enabled: true
753
+ EnforcedStyle: no_empty_lines
754
+ SupportedStyles:
755
+ - empty_lines
756
+ - no_empty_lines
757
+ Layout/EmptyLinesAroundModuleBody:
758
+ Description: Keeps track of empty lines around module bodies.
759
+ Enabled: true
760
+ EnforcedStyle: no_empty_lines
761
+ SupportedStyles:
762
+ - empty_lines
763
+ - no_empty_lines
764
+ Layout/FirstParameterIndentation:
765
+ Description: Checks the indentation of the first parameter in a method call.
766
+ Enabled: true
767
+ EnforcedStyle: special_for_inner_method_call_in_parentheses
768
+ SupportedStyles:
769
+ - consistent
770
+ - special_for_inner_method_call
771
+ - special_for_inner_method_call_in_parentheses
772
+ Layout/IndentationWidth:
773
+ Description: Use 2 spaces for indentation.
774
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-indentation
775
+ Enabled: true
776
+ Width: 2
777
+ Layout/IndentHash:
778
+ Description: Checks the indentation of the first key in a hash literal.
779
+ Enabled: true
780
+ EnforcedStyle: special_inside_parentheses
781
+ SupportedStyles:
782
+ - special_inside_parentheses
783
+ - consistent
784
+ Layout/MultilineMethodCallIndentation:
785
+ Description: Checks indentation of method calls with the dot operator
786
+ that span more than one line.
787
+ Enabled: true
788
+ EnforcedStyle: indented
789
+ SupportedStyles:
790
+ - aligned
791
+ - indented
792
+ Layout/MultilineOperationIndentation:
793
+ Description: Checks indentation of binary operations that span more than one line.
794
+ Enabled: true
795
+ EnforcedStyle: indented
796
+ SupportedStyles:
797
+ - aligned
798
+ - indented
799
+ Layout/SpaceAroundBlockParameters:
800
+ Description: Checks the spacing inside and after block parameters pipes.
801
+ Enabled: true
802
+ EnforcedStyleInsidePipes: no_space
803
+ SupportedStylesInsidePipes:
804
+ - space
805
+ - no_space
806
+ Layout/SpaceAroundEqualsInParameterDefault:
807
+ Description: Checks that the equals signs in parameter default assignments have
808
+ or don't have surrounding space depending on configuration.
809
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-around-equals
810
+ Enabled: true
811
+ EnforcedStyle: space
812
+ SupportedStyles:
813
+ - space
814
+ - no_space
815
+ Layout/SpaceBeforeBlockBraces:
816
+ Description: Checks that the left block brace has or doesn't have space before it.
817
+ Enabled: true
818
+ EnforcedStyle: space
819
+ SupportedStyles:
820
+ - space
821
+ - no_space
822
+ Layout/SpaceBeforeFirstArg:
823
+ Description: Put a space between a method name and the first argument in a method
824
+ call without parentheses.
825
+ Enabled: true
826
+ Layout/SpaceInsideBlockBraces:
827
+ Description: Checks that block braces have or don't have surrounding space. For
828
+ blocks taking parameters, checks that the left brace has or doesn't have trailing
829
+ space.
830
+ Enabled: true
831
+ EnforcedStyle: space
832
+ SupportedStyles:
833
+ - space
834
+ - no_space
835
+ EnforcedStyleForEmptyBraces: no_space
836
+ SpaceBeforeBlockParameters: true
837
+ Layout/SpaceInsideHashLiteralBraces:
838
+ Description: Use spaces inside hash literal braces - or don't.
839
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
840
+ Enabled: true
841
+ EnforcedStyle: space
842
+ EnforcedStyleForEmptyBraces: no_space
843
+ SupportedStyles:
844
+ - space
845
+ - no_space
846
+ Layout/TrailingBlankLines:
847
+ Description: Checks trailing blank lines and final newline.
848
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#newline-eof
849
+ Enabled: true
850
+ EnforcedStyle: final_newline
851
+ SupportedStyles:
852
+ - final_newline
853
+ - final_blank_line
854
+ Layout/ExtraSpacing:
855
+ Description: Do not use unnecessary spacing.
856
+ Enabled: true
857
+ Layout/AlignArray:
858
+ Description: Align the elements of an array literal if they span more than one line.
859
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#align-multiline-arrays
860
+ Enabled: true
861
+ Layout/BlockEndNewline:
862
+ Description: Put end statement of multiline block on its own line.
863
+ Enabled: true
864
+ Layout/CommentIndentation:
865
+ Description: Indentation of comments.
866
+ Enabled: true
867
+ Layout/ElseAlignment:
868
+ Description: Align elses and elsifs correctly.
869
+ Enabled: true
870
+ Layout/EmptyLines:
871
+ Description: Don't use several empty lines in a row.
872
+ Enabled: true
873
+ Layout/EmptyLinesAroundAccessModifier:
874
+ Description: Keep blank lines around access modifiers.
875
+ Enabled: true
876
+ Layout/EmptyLinesAroundMethodBody:
877
+ Description: Keeps track of empty lines around method bodies.
878
+ Enabled: true
879
+ Layout/EndOfLine:
880
+ Description: Use Unix-style line endings.
881
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#crlf
882
+ Enabled: true
883
+ Layout/IndentationConsistency:
884
+ Description: Keep indentation straight.
885
+ Enabled: true
886
+ Layout/IndentArray:
887
+ Description: Checks the indentation of the first element in an array literal.
888
+ Enabled: true
889
+ Layout/LeadingCommentSpace:
890
+ Description: Comments should start with a space.
891
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#hash-space
892
+ Enabled: true
893
+ Layout/MultilineBlockLayout:
894
+ Description: Ensures newlines after multiline block do statements.
895
+ Enabled: true
896
+ Layout/SpaceBeforeFirstArg:
897
+ Description: Checks that exactly one space is used between a method name and the
898
+ first argument for method calls without parentheses.
899
+ Enabled: true
900
+ Layout/SpaceAfterColon:
901
+ Description: Use spaces after colons.
902
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
903
+ Enabled: true
904
+ Layout/SpaceAfterComma:
905
+ Description: Use spaces after commas.
906
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
907
+ Enabled: true
908
+ Layout/SpaceAroundKeyword:
909
+ Description: Use spaces after if/elsif/unless/while/until/case/when.
910
+ Enabled: true
911
+ Layout/SpaceAfterMethodName:
912
+ Description: Do not put a space between a method name and the opening parenthesis
913
+ in a method definition.
914
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#parens-no-spaces
915
+ Enabled: true
916
+ Layout/SpaceAfterNot:
917
+ Description: Tracks redundant space after the ! operator.
918
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-space-bang
919
+ Enabled: true
920
+ Layout/SpaceAfterSemicolon:
921
+ Description: Use spaces after semicolons.
922
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
923
+ Enabled: true
924
+ Layout/SpaceBeforeComma:
925
+ Description: No spaces before commas.
926
+ Enabled: true
927
+ Layout/SpaceBeforeComment:
928
+ Description: Checks for missing space between code and a comment on the same line.
929
+ Enabled: true
930
+ Layout/SpaceBeforeSemicolon:
931
+ Description: No spaces before semicolons.
932
+ Enabled: true
933
+ Layout/SpaceAroundOperators:
934
+ Description: Use spaces around operators.
935
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
936
+ Enabled: true
937
+ Layout/SpaceAroundKeyword:
938
+ Description: Put a space before the modifier keyword.
939
+ Enabled: true
940
+ Layout/SpaceInsideBrackets:
941
+ Description: No spaces after [ or before ].
942
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-spaces-braces
943
+ Enabled: true
944
+ Layout/SpaceInsideParens:
945
+ Description: No spaces after ( or before ).
946
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-spaces-braces
947
+ Enabled: true
948
+ Layout/SpaceInsideRangeLiteral:
949
+ Description: No spaces inside range literals.
950
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-space-inside-range-literals
951
+ Enabled: true
952
+ Layout/Tab:
953
+ Description: No hard tabs.
954
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-indentation
955
+ Enabled: true
956
+ Layout/TrailingWhitespace:
957
+ Description: Avoid trailing whitespace.
958
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace
959
+ Enabled: true
960
+ Lint/AmbiguousOperator:
961
+ Description: Checks for ambiguous operators in the first argument of a method invocation
962
+ without parentheses.
963
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#parens-as-args
964
+ Enabled: false
965
+ Lint/AmbiguousRegexpLiteral:
966
+ Description: Checks for ambiguous regexp literals in the first argument of a method
967
+ invocation without parenthesis.
968
+ Enabled: false
969
+ Lint/BlockAlignment:
970
+ Description: Align block ends correctly.
971
+ Enabled: true
972
+ Lint/ConditionPosition:
973
+ Description: Checks for condition placed in a confusing position relative to the
974
+ keyword.
975
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#same-line-condition
976
+ Enabled: false
977
+ Lint/Debugger:
978
+ Description: Check for debugger calls.
979
+ Enabled: true
980
+ Lint/DeprecatedClassMethods:
981
+ Description: Check for deprecated class method calls.
982
+ Enabled: false
983
+ Lint/DuplicateMethods:
984
+ Description: Check for duplicate methods calls.
985
+ Enabled: true
986
+ Lint/ElseLayout:
987
+ Description: Check for odd code arrangement in an else block.
988
+ Enabled: false
989
+ Lint/EmptyEnsure:
990
+ Description: Checks for empty ensure block.
991
+ Enabled: true
992
+ Lint/EmptyInterpolation:
993
+ Description: Checks for empty string interpolation.
994
+ Enabled: true
995
+ Lint/EndInMethod:
996
+ Description: END blocks should not be placed inside method definitions.
997
+ Enabled: true
998
+ Lint/EnsureReturn:
999
+ Description: Do not use return in an ensure block.
1000
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-return-ensure
1001
+ Enabled: true
1002
+ Lint/HandleExceptions:
1003
+ Description: Don't suppress exception.
1004
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions
1005
+ Enabled: false
1006
+ Lint/InvalidCharacterLiteral:
1007
+ Description: Checks for invalid character literals with a non-escaped whitespace
1008
+ character.
1009
+ Enabled: false
1010
+ Lint/LiteralInCondition:
1011
+ Description: Checks of literals used in conditions.
1012
+ Enabled: false
1013
+ Lint/LiteralInInterpolation:
1014
+ Description: Checks for literals used in interpolation.
1015
+ Enabled: false
1016
+ Lint/Loop:
1017
+ Description: Use Kernel#loop with break rather than begin/end/until or begin/end/while
1018
+ for post-loop tests.
1019
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#loop-with-break
1020
+ Enabled: false
1021
+ Lint/ParenthesesAsGroupedExpression:
1022
+ Description: Checks for method calls with a space before the opening parenthesis.
1023
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#parens-no-spaces
1024
+ Enabled: false
1025
+ Lint/RequireParentheses:
1026
+ Description: Use parentheses in the method call to avoid confusion about precedence.
1027
+ Enabled: false
1028
+ Lint/RescueException:
1029
+ Description: Avoid rescuing the Exception class.
1030
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-blind-rescues
1031
+ Enabled: true
1032
+ Lint/ShadowingOuterLocalVariable:
1033
+ Description: Do not use the same name as outer local variable for block arguments
1034
+ or block local variables.
1035
+ Enabled: true
1036
+ Lint/StringConversionInInterpolation:
1037
+ Description: Checks for Object#to_s usage in string interpolation.
1038
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-to-s
1039
+ Enabled: true
1040
+ Lint/UnderscorePrefixedVariableName:
1041
+ Description: Do not use prefix `_` for a variable that is used.
1042
+ Enabled: false
1043
+ Lint/UnusedBlockArgument:
1044
+ Description: Checks for unused block arguments.
1045
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars
1046
+ Enabled: true
1047
+ Lint/UnusedMethodArgument:
1048
+ Description: Checks for unused method arguments.
1049
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars
1050
+ Enabled: true
1051
+ Lint/UnreachableCode:
1052
+ Description: Unreachable code.
1053
+ Enabled: true
1054
+ Lint/UselessAccessModifier:
1055
+ Description: Checks for useless access modifiers.
1056
+ Enabled: true
1057
+ Lint/UselessAssignment:
1058
+ Description: Checks for useless assignment to a local variable.
1059
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars
1060
+ Enabled: true
1061
+ Lint/UselessComparison:
1062
+ Description: Checks for comparison of something with itself.
1063
+ Enabled: true
1064
+ Lint/UselessElseWithoutRescue:
1065
+ Description: Checks for useless `else` in `begin..end` without `rescue`.
1066
+ Enabled: true
1067
+ Lint/UselessSetterCall:
1068
+ Description: Checks for useless setter call to a local variable.
1069
+ Enabled: true
1070
+ Lint/Void:
1071
+ Description: Possible use of operator/literal/variable in void context.
1072
+ Enabled: false
1073
+ Rails/Delegate:
1074
+ Description: Prefer delegate method for delegations.
1075
+ Enabled: false
1076
+ Security/Eval:
1077
+ Description: The use of eval represents a serious security risk.
1078
+ Enabled: true
1079
+ Lint/AmbiguousBlockAssociation:
1080
+ Exclude:
1081
+ - "spec/**/*"
@@ -0,0 +1,7 @@
1
+ require "reinteractive/style/version"
2
+
3
+ module Reinteractive
4
+ module Style
5
+ # Nothing to see here... Move along!
6
+ end
7
+ end
@@ -0,0 +1,5 @@
1
+ module Reinteractive
2
+ module Style
3
+ VERSION = "0.2.1".freeze
4
+ end
5
+ end
@@ -0,0 +1,39 @@
1
+ # coding: utf-8
2
+
3
+ lib = File.expand_path("../lib", __FILE__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require "reinteractive/style/version"
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = "reinteractive-style"
9
+ spec.version = Reinteractive::Style::VERSION
10
+ spec.authors = ["reinteractive"]
11
+ spec.email = ["team@reinteractive.com"]
12
+
13
+ spec.summary = "reinteractive shared style configurations"
14
+ spec.homepage = "https://github.com/reinteractive/reinteractive-style"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the
18
+ # 'allowed_push_host' to allow pushing to a single host or delete this section
19
+ # to allow pushing to any host.
20
+ if spec.respond_to?(:metadata)
21
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
22
+ else
23
+ raise "RubyGems 2.0 or newer is required to protect against " \
24
+ "public gem pushes."
25
+ end
26
+
27
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
28
+ f.match(%r{^(test|spec|features)/})
29
+ end
30
+ spec.bindir = "exe"
31
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
32
+ spec.require_paths = ["lib"]
33
+
34
+ spec.add_dependency "rubocop", "~> 0.49"
35
+ spec.add_dependency "rubocop-rspec", "~> 1.15"
36
+
37
+ spec.add_development_dependency "bundler", "~> 1.15"
38
+ spec.add_development_dependency "rake", "~> 10.0"
39
+ end
metadata ADDED
@@ -0,0 +1,111 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: reinteractive-style
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.1
5
+ platform: ruby
6
+ authors:
7
+ - reinteractive
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-08-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rubocop
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.49'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.49'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop-rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.15'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.15'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.15'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.15'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ description:
70
+ email:
71
+ - team@reinteractive.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".gitignore"
77
+ - ".rubocop.yml"
78
+ - Gemfile
79
+ - LICENSE.txt
80
+ - README.md
81
+ - Rakefile
82
+ - default.yml
83
+ - lib/reinteractive/style.rb
84
+ - lib/reinteractive/style/version.rb
85
+ - reinteractive-style.gemspec
86
+ homepage: https://github.com/reinteractive/reinteractive-style
87
+ licenses:
88
+ - MIT
89
+ metadata:
90
+ allowed_push_host: https://rubygems.org
91
+ post_install_message:
92
+ rdoc_options: []
93
+ require_paths:
94
+ - lib
95
+ required_ruby_version: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ required_rubygems_version: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ requirements: []
106
+ rubyforge_project:
107
+ rubygems_version: 2.6.11
108
+ signing_key:
109
+ specification_version: 4
110
+ summary: reinteractive shared style configurations
111
+ test_files: []