chefstyle 2.0.4 → 2.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 24a70093af7e575252cbf8d6c0d791192b517d9d508b72697f43cb309471cfed
4
- data.tar.gz: 39aff8e7080a8830d4f13f6d9d45e45d70ed7e179ca5c32b5a71c96b5e33de8c
3
+ metadata.gz: 4b08c659e1eca34204d6714da4ef791a40178b0d91967c4924623c9989c1bcdb
4
+ data.tar.gz: 897d0470cb32aa60667bfdc8629f535a3f1eb850bb172215f77044f8c4f6536c
5
5
  SHA512:
6
- metadata.gz: fa0a29d52c983bc46dbcdb79ff2d1df62ef64104ff81fb7365df606dc38a7b86a721d53de2bb7c7a224417b9cfc5da5d511112530befe334a92927957a249786
7
- data.tar.gz: 163fcb0121d79699af424ce281b30e2e89338b471770e7903514a3efde7b56fa7145c80807d42ab15331acf23c1fe738adf80a0998662c03750acae613ec9ff7
6
+ metadata.gz: 4a438e90b3d9f12782bea3fadcc7d0f04dca03e4a732787f9602e346da22e0818760a60cec6a98bf3fd019b2585e2145e504d8c5ea62e517dd4747896c4befff
7
+ data.tar.gz: b9a051fd0213bafd8981dcb17e0780f22046ff4feabc7093ab5e49c4f7351e01930d2da1a575b2fddf72cddfab7094164d3011947cbf2e9b57237816b1c83cf9
@@ -275,6 +275,8 @@ Lint/EmptyExpression:
275
275
  Enabled: false
276
276
  Lint/EmptyFile:
277
277
  Enabled: false
278
+ Lint/EmptyInPattern:
279
+ Enabled: false
278
280
  Lint/EmptyInterpolation:
279
281
  Enabled: false
280
282
  Lint/EmptyWhen:
@@ -667,6 +669,8 @@ Style/IfWithSemicolon:
667
669
  Enabled: false
668
670
  Style/ImplicitRuntimeError:
669
671
  Enabled: false
672
+ Style/InPatternThen:
673
+ Enabled: false
670
674
  Style/InfiniteLoop:
671
675
  Enabled: false
672
676
  Style/InverseMethods:
@@ -687,6 +691,8 @@ Style/MethodCallWithoutArgsParentheses:
687
691
  Enabled: false
688
692
  Style/MethodCallWithArgsParentheses:
689
693
  Enabled: false
694
+ Style/MultilineInPatternThen:
695
+ Enabled: false
690
696
  Style/RedundantAssignment:
691
697
  Enabled: false
692
698
  Style/RedundantFetchBlock:
@@ -787,6 +793,8 @@ Style/PreferredHashMethods:
787
793
  Enabled: false
788
794
  Style/Proc:
789
795
  Enabled: false
796
+ Style/QuotedSymbols:
797
+ Enabled: false
790
798
  Style/RaiseArgs:
791
799
  Enabled: false
792
800
  Style/RandomWithOffset:
data/config/upstream.yml CHANGED
@@ -377,10 +377,11 @@ Layout/BlockEndNewline:
377
377
  VersionAdded: '0.49'
378
378
 
379
379
  Layout/CaseIndentation:
380
- Description: 'Indentation of when in a case/when/[else/]end.'
380
+ Description: 'Indentation of when in a case/(when|in)/[else/]end.'
381
381
  StyleGuide: '#indent-when-to-case'
382
382
  Enabled: true
383
383
  VersionAdded: '0.49'
384
+ VersionChanged: '1.16'
384
385
  EnforcedStyle: case
385
386
  SupportedStyles:
386
387
  - case
@@ -771,7 +772,7 @@ Layout/HashAlignment:
771
772
  Enabled: true
772
773
  AllowMultipleStyles: true
773
774
  VersionAdded: '0.49'
774
- VersionChanged: '0.77'
775
+ VersionChanged: '1.16'
775
776
  # Alignment of entries using hash rocket as separator. Valid values are:
776
777
  #
777
778
  # key - left alignment of keys
@@ -1645,6 +1646,12 @@ Lint/EmptyFile:
1645
1646
  AllowComments: true
1646
1647
  VersionAdded: '0.90'
1647
1648
 
1649
+ Lint/EmptyInPattern:
1650
+ Description: 'Checks for the presence of `in` pattern branches without a body.'
1651
+ Enabled: pending
1652
+ AllowComments: true
1653
+ VersionAdded: '1.16'
1654
+
1648
1655
  Lint/EmptyInterpolation:
1649
1656
  Description: 'Checks for empty string interpolation.'
1650
1657
  Enabled: true
@@ -2092,6 +2099,7 @@ Lint/SymbolConversion:
2092
2099
  Description: 'Checks for unnecessary symbol conversions.'
2093
2100
  Enabled: pending
2094
2101
  VersionAdded: '1.9'
2102
+ VersionChanged: '1.16'
2095
2103
  EnforcedStyle: strict
2096
2104
  SupportedStyles:
2097
2105
  - strict
@@ -3490,8 +3498,10 @@ Style/HashEachMethods:
3490
3498
  Description: 'Use Hash#each_key and Hash#each_value.'
3491
3499
  StyleGuide: '#hash-each'
3492
3500
  Enabled: true
3493
- VersionAdded: '0.80'
3494
3501
  Safe: false
3502
+ VersionAdded: '0.80'
3503
+ VersionChanged: '1.16'
3504
+ AllowedReceivers: []
3495
3505
 
3496
3506
  Style/HashExcept:
3497
3507
  Description: >-
@@ -3554,6 +3564,7 @@ Style/IdenticalConditionalBranches:
3554
3564
  out of the conditional.
3555
3565
  Enabled: true
3556
3566
  VersionAdded: '0.36'
3567
+ VersionChanged: '1.16'
3557
3568
 
3558
3569
  Style/IfInsideElse:
3559
3570
  Description: 'Finds if nodes inside else, which can be converted to elsif.'
@@ -3600,6 +3611,12 @@ Style/ImplicitRuntimeError:
3600
3611
  Enabled: false
3601
3612
  VersionAdded: '0.41'
3602
3613
 
3614
+ Style/InPatternThen:
3615
+ Description: 'Checks for `in;` uses in `case` expressions.'
3616
+ StyleGuide: '#no-in-pattern-semicolons'
3617
+ Enabled: pending
3618
+ VersionAdded: '1.16'
3619
+
3603
3620
  Style/InfiniteLoop:
3604
3621
  Description: >-
3605
3622
  Use Kernel#loop for infinite loops.
@@ -3828,6 +3845,12 @@ Style/MultilineIfThen:
3828
3845
  VersionAdded: '0.9'
3829
3846
  VersionChanged: '0.26'
3830
3847
 
3848
+ Style/MultilineInPatternThen:
3849
+ Description: 'Do not use `then` for multi-line `in` statement.'
3850
+ StyleGuide: '#no-then'
3851
+ Enabled: pending
3852
+ VersionAdded: '1.16'
3853
+
3831
3854
  Style/MultilineMemoization:
3832
3855
  Description: 'Wrap multiline memoizations in a `begin` and `end` block.'
3833
3856
  Enabled: true
@@ -4186,6 +4209,16 @@ Style/Proc:
4186
4209
  VersionAdded: '0.9'
4187
4210
  VersionChanged: '0.18'
4188
4211
 
4212
+ Style/QuotedSymbols:
4213
+ Description: 'Use a consistent style for quoted symbols.'
4214
+ Enabled: pending
4215
+ VersionAdded: '1.16'
4216
+ EnforcedStyle: same_as_string_literals
4217
+ SupportedStyles:
4218
+ - same_as_string_literals
4219
+ - single_quotes
4220
+ - double_quotes
4221
+
4189
4222
  Style/RaiseArgs:
4190
4223
  Description: 'Checks the arguments passed to raise/fail.'
4191
4224
  StyleGuide: '#exception-class-messages'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module Chefstyle
3
- VERSION = "2.0.4"
4
- RUBOCOP_VERSION = "1.15.0"
3
+ VERSION = "2.0.5"
4
+ RUBOCOP_VERSION = "1.17.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chefstyle
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chef Software, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-27 00:00:00.000000000 Z
11
+ date: 2021-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.15.0
19
+ version: 1.17.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 1.15.0
26
+ version: 1.17.0
27
27
  description:
28
28
  email:
29
29
  - oss@chef.io