chefstyle 1.1.2 → 1.1.3

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: 423500f6eb097e6b1d618a9af1f2709e2185c61bb2ad1f98d2c2796827d14f0e
4
- data.tar.gz: 915a023dceef60d5e35e783cc6415751f1008ba55bb0e10a8b92620e2ac2f13d
3
+ metadata.gz: e40deeb91a3e76c9814149540784f399683722e39ee23882fb47a54746ccb544
4
+ data.tar.gz: 00d5f5e04092c6e38092977dd7e258053a979fc85325f807f21ad7cc4012d8c7
5
5
  SHA512:
6
- metadata.gz: f5db0b4e3239e1243fd6947f0b99198a28984552cce90d4ba36c1a58b712390a65b5047966d67fdf5f8a7bf5052d20b6febde5b12851e2e8c30ccf947717c9c7
7
- data.tar.gz: 16c99a1b36cb3d3347120e242cf2719b1276f25bfa52ff07ece52f561ba5a351f9eb5f8e635a313a4a63dda55b4847ef330f815217ba116c095242a7cadb3c09
6
+ metadata.gz: 9c03f7c0554896e837df0e8a4b90224ff5c9004107af2487d2dca50cc6a9422ce56d742676a6ccd30dfd87e40b28b2da825697cba628c4118ddf30fe8935f135
7
+ data.tar.gz: 6abc093693bc6cc9695b7e2d9a4843bbfa046a5f25f07958ec797aef4e8084f59dbeb75ea7d8320e5bcfa965b7fb0c42c695f21216263d2c69544117882bb85f
@@ -421,6 +421,8 @@ Naming/VariableNumber:
421
421
  Enabled: false
422
422
  Style/AccessModifierDeclarations:
423
423
  Enabled: false
424
+ Style/AccessorGrouping:
425
+ Enabled: false
424
426
  Style/Alias:
425
427
  Enabled: false
426
428
  Style/AndOr:
@@ -437,6 +439,8 @@ Style/BarePercentLiterals:
437
439
  Enabled: false
438
440
  Style/BeginBlock:
439
441
  Enabled: false
442
+ Style/BisectedAttrAccessor:
443
+ Enabled: false
440
444
  Style/BlockComments:
441
445
  Enabled: false
442
446
  Style/BlockDelimiters:
@@ -567,6 +571,8 @@ Style/MethodCallWithoutArgsParentheses:
567
571
  Enabled: false
568
572
  Style/MethodCallWithArgsParentheses:
569
573
  Enabled: false
574
+ Style/RedundantAssignment:
575
+ Enabled: false
570
576
  Style/RedundantFetchBlock:
571
577
  Enabled: false
572
578
  Style/MethodCalledOnDoEndBlock:
@@ -180,6 +180,9 @@ Bundler/OrderedGems:
180
180
  VersionAdded: '0.46'
181
181
  VersionChanged: '0.47'
182
182
  TreatCommentsAsGroupSeparators: true
183
+ # By default, "-" and "_" are ignored for order purposes.
184
+ # This can be overridden by setting this parameter to true.
185
+ ConsiderPunctuation: false
183
186
  Include:
184
187
  - '**/*.gemfile'
185
188
  - '**/Gemfile'
@@ -200,6 +203,9 @@ Gemspec/OrderedDependencies:
200
203
  Enabled: true
201
204
  VersionAdded: '0.51'
202
205
  TreatCommentsAsGroupSeparators: true
206
+ # By default, "-" and "_" are ignored for order purposes.
207
+ # This can be overridden by setting this parameter to true.
208
+ ConsiderPunctuation: false
203
209
  Include:
204
210
  - '**/*.gemspec'
205
211
 
@@ -1508,7 +1514,9 @@ Lint/InheritException:
1508
1514
  Lint/InterpolationCheck:
1509
1515
  Description: 'Raise warning for interpolation in single q strs.'
1510
1516
  Enabled: true
1517
+ SafeAutoCorrect: false
1511
1518
  VersionAdded: '0.50'
1519
+ VersionChanged: '0.87'
1512
1520
 
1513
1521
  Lint/LiteralAsCondition:
1514
1522
  Description: 'Checks of literals used in conditions.'
@@ -1736,6 +1744,7 @@ Lint/SafeNavigationWithEmpty:
1736
1744
  Description: 'Avoid `foo&.empty?` in conditionals.'
1737
1745
  Enabled: true
1738
1746
  VersionAdded: '0.62'
1747
+ VersionChanged: '0.87'
1739
1748
 
1740
1749
  Lint/ScriptPermission:
1741
1750
  Description: 'Grant script file execute permission.'
@@ -1902,9 +1911,10 @@ Metrics/BlockLength:
1902
1911
  Description: 'Avoid long blocks with many lines.'
1903
1912
  Enabled: true
1904
1913
  VersionAdded: '0.44'
1905
- VersionChanged: '0.66'
1914
+ VersionChanged: '0.87'
1906
1915
  CountComments: false # count full line comments?
1907
1916
  Max: 25
1917
+ CountAsOne: []
1908
1918
  ExcludedMethods:
1909
1919
  # By default, exclude the `#refine` method, as it tends to have larger
1910
1920
  # associated blocks.
@@ -1925,8 +1935,10 @@ Metrics/ClassLength:
1925
1935
  Description: 'Avoid classes longer than 100 lines of code.'
1926
1936
  Enabled: true
1927
1937
  VersionAdded: '0.25'
1938
+ VersionChanged: '0.87'
1928
1939
  CountComments: false # count full line comments?
1929
1940
  Max: 100
1941
+ CountAsOne: []
1930
1942
 
1931
1943
  # Avoid complex methods.
1932
1944
  Metrics/CyclomaticComplexity:
@@ -1944,17 +1956,20 @@ Metrics/MethodLength:
1944
1956
  StyleGuide: '#short-methods'
1945
1957
  Enabled: true
1946
1958
  VersionAdded: '0.25'
1947
- VersionChanged: '0.59.2'
1959
+ VersionChanged: '0.87'
1948
1960
  CountComments: false # count full line comments?
1949
1961
  Max: 10
1962
+ CountAsOne: []
1950
1963
  ExcludedMethods: []
1951
1964
 
1952
1965
  Metrics/ModuleLength:
1953
1966
  Description: 'Avoid modules longer than 100 lines of code.'
1954
1967
  Enabled: true
1955
1968
  VersionAdded: '0.31'
1969
+ VersionChanged: '0.87'
1956
1970
  CountComments: false # count full line comments?
1957
1971
  Max: 100
1972
+ CountAsOne: []
1958
1973
 
1959
1974
  Metrics/ParameterLists:
1960
1975
  Description: 'Avoid parameter lists longer than three or four parameters.'
@@ -1992,10 +2007,12 @@ Naming/AccessorMethodName:
1992
2007
  VersionAdded: '0.50'
1993
2008
 
1994
2009
  Naming/AsciiIdentifiers:
1995
- Description: 'Use only ascii symbols in identifiers.'
2010
+ Description: 'Use only ascii symbols in identifiers and constants.'
1996
2011
  StyleGuide: '#english-identifiers'
1997
2012
  Enabled: true
1998
2013
  VersionAdded: '0.50'
2014
+ VersionChanged: '0.87'
2015
+ AsciiConstants: true
1999
2016
 
2000
2017
  Naming/BinaryOperatorParameterName:
2001
2018
  Description: 'When defining binary operators, name the argument other.'
@@ -2288,6 +2305,17 @@ Style/AccessModifierDeclarations:
2288
2305
  - group
2289
2306
  AllowModifiersOnSymbols: true
2290
2307
 
2308
+ Style/AccessorGrouping:
2309
+ Description: 'Checks for grouping of accessors in `class` and `module` bodies.'
2310
+ Enabled: 'pending'
2311
+ VersionAdded: '0.87'
2312
+ EnforcedStyle: grouped
2313
+ SupportedStyles:
2314
+ # separated: each accessor goes in a separate statement.
2315
+ # grouped: accessors are grouped into a single statement.
2316
+ - separated
2317
+ - grouped
2318
+
2291
2319
  Style/Alias:
2292
2320
  Description: 'Use alias instead of alias_method.'
2293
2321
  StyleGuide: '#alias-method-lexically'
@@ -2355,6 +2383,13 @@ Style/BeginBlock:
2355
2383
  Enabled: true
2356
2384
  VersionAdded: '0.9'
2357
2385
 
2386
+ Style/BisectedAttrAccessor:
2387
+ Description: >-
2388
+ Checks for places where `attr_reader` and `attr_writer`
2389
+ for the same method can be combined into single `attr_accessor`.
2390
+ Enabled: 'pending'
2391
+ VersionAdded: '0.87'
2392
+
2358
2393
  Style/BlockComments:
2359
2394
  Description: 'Do not use block comments.'
2360
2395
  StyleGuide: '#no-block-comments'
@@ -2729,6 +2764,7 @@ Style/DoubleNegation:
2729
2764
  VersionAdded: '0.19'
2730
2765
  VersionChanged: '0.84'
2731
2766
  EnforcedStyle: allowed_in_returns
2767
+ SafeAutoCorrect: false
2732
2768
  SupportedStyles:
2733
2769
  - allowed_in_returns
2734
2770
  - forbidden
@@ -2995,6 +3031,7 @@ Style/IfUnlessModifierOfIfUnless:
2995
3031
  Avoid modifier if/unless usage on conditionals.
2996
3032
  Enabled: true
2997
3033
  VersionAdded: '0.39'
3034
+ VersionChanged: '0.87'
2998
3035
 
2999
3036
  Style/IfWithSemicolon:
3000
3037
  Description: 'Do not use if x; .... Use the ternary operator instead.'
@@ -3581,6 +3618,11 @@ Style/RandomWithOffset:
3581
3618
  Enabled: true
3582
3619
  VersionAdded: '0.52'
3583
3620
 
3621
+ Style/RedundantAssignment:
3622
+ Description: 'Checks for redundant assignment before returning.'
3623
+ Enabled: 'pending'
3624
+ VersionAdded: '0.87'
3625
+
3584
3626
  Style/RedundantBegin:
3585
3627
  Description: "Don't use begin blocks when they are not needed."
3586
3628
  StyleGuide: '#begin-implicit'
@@ -3924,7 +3966,7 @@ Style/SymbolLiteral:
3924
3966
  Style/SymbolProc:
3925
3967
  Description: 'Use symbols as procs instead of blocks when possible.'
3926
3968
  Enabled: true
3927
- SafeAutoCorrect: false
3969
+ Safe: false
3928
3970
  VersionAdded: '0.26'
3929
3971
  VersionChanged: '0.64'
3930
3972
  # A list of method names to be ignored by the check.
@@ -1,4 +1,4 @@
1
1
  module Chefstyle
2
- VERSION = "1.1.2".freeze
3
- RUBOCOP_VERSION = "0.86.0".freeze
2
+ VERSION = "1.1.3".freeze
3
+ RUBOCOP_VERSION = "0.87.1".freeze
4
4
  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: 1.1.2
4
+ version: 1.1.3
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: 2020-06-25 00:00:00.000000000 Z
11
+ date: 2020-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 0.86.0
61
+ version: 0.87.1
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 0.86.0
68
+ version: 0.87.1
69
69
  description:
70
70
  email:
71
71
  - oss@chef.io