reinteractive-style 0.2.6 → 0.2.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ff49318d1f8929b9ea2cefef742d032f1332572a8d2ddd3a96d5da7fdb66de5
4
- data.tar.gz: 149a327c58000d4f85e1826dad4e5eda0191eec0d555498337838b218743193b
3
+ metadata.gz: b1faa8b80b0fcb344a504433a3dd2bf7eb576c9f642a79cc22cef9e871f8270a
4
+ data.tar.gz: 8b31116e1bc4f1498904c70348bd31a18786760c69437a136d8d14170826ad14
5
5
  SHA512:
6
- metadata.gz: 4bd0fca86dbba2d8b1490ac3ef40eeb62f971827acb2e44c5e11247c038251f99625f7a5ff59461b20f0080c67541aee8ee4b457423103b6d07537b6bc6029d3
7
- data.tar.gz: 6fd8224d4919b9e0c9fd47ee2d84ad4289485fedd92f7ef8b0ea44dd38ffb2161421f7ced4b52dfce6d25601b3b5aad7c7b49a943c0ed9bb3e3e5f68a301a672
6
+ metadata.gz: '033088888aa806868c3fa82d68484b92f3ccf1492d1863c713d028e8690c786be8658ce528faee7706030ccea9dabdf4dd189964b75a2d0c10969075ac13ed1c'
7
+ data.tar.gz: 3fbd1638069ac0f1be91373d4de363f7e74e19741c1613ebe23dd05a431e3928754bc4980625242d43dcec45a9c85286f65edd246c5b0f21617c88ae85cc17eb
data/default.yml CHANGED
@@ -1,10 +1,12 @@
1
1
  require: rubocop-rspec
2
2
 
3
3
  AllCops:
4
+ DisplayCopNames: true
4
5
  Include:
5
6
  - "**/**/*.rake"
6
7
  - "**/Gemfile"
7
8
  - "**/Rakefile"
9
+ - '**/config.ru'
8
10
  Exclude:
9
11
  - "vendor/**/*"
10
12
  - "db/**/*"
@@ -277,22 +279,40 @@ Style/SymbolProc:
277
279
  Enabled: true
278
280
  IgnoredMethods:
279
281
  - respond_to
280
- Style/TrailingCommaInLiteral:
281
- Description: Checks for trailing comma in parameter lists and literals.
282
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas
283
- Enabled: true
282
+
283
+ Style/TrailingCommaInArguments:
284
+ # If `comma`, the cop requires a comma after the last argument, but only for
285
+ # parenthesized method calls where each argument is on its own line.
286
+ # If `consistent_comma`, the cop requires a comma after the last argument,
287
+ # for all parenthesized method calls with arguments.
284
288
  EnforcedStyleForMultiline: comma
285
289
  SupportedStylesForMultiline:
286
- - comma
287
- - no_comma
288
- Style/TrailingCommaInArguments:
289
- Description: Checks for trailing comma in parameter lists and literals.
290
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas
291
- Enabled: true
290
+ - comma
291
+ - consistent_comma
292
+ - no_comma
293
+
294
+ Style/TrailingCommaInArrayLiteral:
295
+ # If `comma`, the cop requires a comma after the last item in an array,
296
+ # but only when each item is on its own line.
297
+ # If `consistent_comma`, the cop requires a comma after the last item of all
298
+ # non-empty array literals.
292
299
  EnforcedStyleForMultiline: comma
293
300
  SupportedStylesForMultiline:
294
- - comma
295
- - no_comma
301
+ - comma
302
+ - consistent_comma
303
+ - no_comma
304
+
305
+ Style/TrailingCommaInHashLiteral:
306
+ # If `comma`, the cop requires a comma after the last item in a hash,
307
+ # but only when each item is on its own line.
308
+ # If `consistent_comma`, the cop requires a comma after the last item of all
309
+ # non-empty hash literals.
310
+ EnforcedStyleForMultiline: comma
311
+ SupportedStylesForMultiline:
312
+ - comma
313
+ - consistent_comma
314
+ - no_comma
315
+
296
316
  Style/TrivialAccessors:
297
317
  Description: Prefer attr_* methods to trivial readers/writers.
298
318
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#attr_family
@@ -392,14 +412,14 @@ Lint/AssignmentInCondition:
392
412
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition
393
413
  Enabled: false
394
414
  AllowSafeAssignment: true
395
- Lint/EndAlignment:
415
+ Layout/EndAlignment:
396
416
  Description: Align ends correctly.
397
417
  Enabled: true
398
418
  EnforcedStyleAlignWith: keyword
399
419
  SupportedStylesAlignWith:
400
420
  - keyword
401
421
  - variable
402
- Lint/DefEndAlignment:
422
+ Layout/DefEndAlignment:
403
423
  Description: Align ends corresponding to defs correctly.
404
424
  Enabled: true
405
425
  EnforcedStyleAlignWith: start_of_line
@@ -966,10 +986,10 @@ Lint/AmbiguousRegexpLiteral:
966
986
  Description: Checks for ambiguous regexp literals in the first argument of a method
967
987
  invocation without parenthesis.
968
988
  Enabled: false
969
- Lint/BlockAlignment:
989
+ Layout/BlockAlignment:
970
990
  Description: Align block ends correctly.
971
991
  Enabled: true
972
- Lint/ConditionPosition:
992
+ Layout/ConditionPosition:
973
993
  Description: Checks for condition placed in a confusing position relative to the
974
994
  keyword.
975
995
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#same-line-condition
@@ -1,5 +1,5 @@
1
1
  module Reinteractive
2
2
  module Style
3
- VERSION = "0.2.6".freeze
3
+ VERSION = "0.2.7".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reinteractive-style
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - reinteractive