chefstyle 2.1.3 → 2.2.0

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: df3b49ba17acc295d60953cd43b69b3b5cd532e0383b3cd773ace5621c3c65a1
4
- data.tar.gz: 4292c12460e36e39db5ad65c7328b0de6e033bf7e7d4827eb3bbd8d50f01233c
3
+ metadata.gz: 1df2843e644a1b1139c96e89e1298cce7d3317f80c09d831217eb05142adf515
4
+ data.tar.gz: c014bea9e55b69bba12311b8538b53789dcd4291526c88ef8c9768a531521969
5
5
  SHA512:
6
- metadata.gz: 36bb76c00546710ecdeaed0e72e92fa70f74ff9d937f2a05429a463f8f0ec46999107deeb1a64756805c5a635ff0a3a57668a135fde232617cd59f3e8aece6a8
7
- data.tar.gz: 65635fd00bba510579420a3d44d17b1925174da919e211bc32749794280cc6ddfe895d510ce6fb321192d68735b86c28f0d5376f7e1eae8667acc76ad61c1164
6
+ metadata.gz: b61bc11764072271c06cf664e7dfb727488aba808a5f5b0801d7ebc8046fbe0bcba10ab655df56b918a57b745724b21d78a5826088f5cda32754e9e1474e9017
7
+ data.tar.gz: '096297a185924e121bae9eea0423911573ace2432d21aaec712db7a7006a55c1c27798f3aa8ddf4d2d1825605cc820a5567033682879fc68875b3974c452a7a3'
@@ -491,6 +491,8 @@ Naming/AccessorMethodName:
491
491
  Enabled: false
492
492
  Naming/AsciiIdentifiers:
493
493
  Enabled: false
494
+ Naming/BlockForwarding:
495
+ Enabled: false
494
496
  Naming/BlockParameterName:
495
497
  Enabled: false
496
498
  Naming/ClassAndModuleCamelCase:
@@ -641,6 +643,10 @@ Style/ExplicitBlockArgument:
641
643
  Enabled: false
642
644
  Style/ExponentialNotation:
643
645
  Enabled: false
646
+ Style/FileRead:
647
+ Enabled: false
648
+ Style/FileWrite:
649
+ Enabled: false
644
650
  Style/FloatDivision:
645
651
  Enabled: false
646
652
  Style/For:
@@ -705,6 +711,8 @@ Style/LambdaCall:
705
711
  Enabled: false
706
712
  Style/LineEndConcatenation:
707
713
  Enabled: false
714
+ Style/MapToHash:
715
+ Enabled: false
708
716
  Style/MethodCallWithoutArgsParentheses:
709
717
  Enabled: false
710
718
  Style/MethodCallWithArgsParentheses:
data/config/upstream.yml CHANGED
@@ -78,6 +78,8 @@ AllCops:
78
78
  # When specifying style guide URLs, any paths and/or fragments will be
79
79
  # evaluated relative to the base URL.
80
80
  StyleGuideBaseURL: https://rubystyle.guide
81
+ # Documentation URLs will be constructed using the base URL.
82
+ DocumentationBaseURL: https://docs.rubocop.org/rubocop
81
83
  # Extra details are not displayed in offense messages by default. Change
82
84
  # behavior by overriding ExtraDetails, or by giving the
83
85
  # `-E/--extra-details` option.
@@ -449,7 +451,11 @@ Layout/ClosingParenthesisIndentation:
449
451
  Layout/CommentIndentation:
450
452
  Description: 'Indentation of comments.'
451
453
  Enabled: true
454
+ # When true, allows comments to have extra indentation if that aligns them
455
+ # with a comment on the preceding line.
456
+ AllowForAlignment: false
452
457
  VersionAdded: '0.49'
458
+ VersionChanged: '1.24'
453
459
 
454
460
  Layout/ConditionPosition:
455
461
  Description: >-
@@ -1796,7 +1802,9 @@ Lint/ImplicitStringConcatenation:
1796
1802
  Lint/IncompatibleIoSelectWithFiberScheduler:
1797
1803
  Description: 'Checks for `IO.select` that is incompatible with Fiber Scheduler.'
1798
1804
  Enabled: pending
1805
+ SafeAutoCorrect: false
1799
1806
  VersionAdded: '1.21'
1807
+ VersionChanged: '1.24'
1800
1808
 
1801
1809
  Lint/IneffectiveAccessModifier:
1802
1810
  Description: >-
@@ -2479,6 +2487,16 @@ Naming/BinaryOperatorParameterName:
2479
2487
  VersionAdded: '0.50'
2480
2488
  VersionChanged: '1.2'
2481
2489
 
2490
+ Naming/BlockForwarding:
2491
+ Description: 'Use anonymous block forwarding.'
2492
+ StyleGuide: '#block-forwarding'
2493
+ Enabled: pending
2494
+ VersionAdded: '1.24'
2495
+ EnforcedStyle: anonymous
2496
+ SupportedStyles:
2497
+ - anonymous
2498
+ - explicit
2499
+
2482
2500
  Naming/BlockParameterName:
2483
2501
  Description: >-
2484
2502
  Checks for block parameter names that contain capital letters,
@@ -3492,6 +3510,18 @@ Style/ExponentialNotation:
3492
3510
  - engineering
3493
3511
  - integral
3494
3512
 
3513
+ Style/FileRead:
3514
+ Description: 'Favor `File.(bin)read` convenience methods.'
3515
+ StyleGuide: '#file-read'
3516
+ Enabled: pending
3517
+ VersionAdded: '1.24'
3518
+
3519
+ Style/FileWrite:
3520
+ Description: 'Favor `File.(bin)write` convenience methods.'
3521
+ StyleGuide: '#file-write'
3522
+ Enabled: pending
3523
+ VersionAdded: '1.24'
3524
+
3495
3525
  Style/FloatDivision:
3496
3526
  Description: 'For performing float division, coerce one side only.'
3497
3527
  StyleGuide: '#float-division'
@@ -3650,7 +3680,7 @@ Style/HashSyntax:
3650
3680
  StyleGuide: '#hash-literals'
3651
3681
  Enabled: true
3652
3682
  VersionAdded: '0.9'
3653
- VersionChanged: '0.43'
3683
+ VersionChanged: '1.24'
3654
3684
  EnforcedStyle: ruby19
3655
3685
  SupportedStyles:
3656
3686
  # checks for 1.9 syntax (e.g. {a: 1}) for all symbol keys
@@ -3661,6 +3691,13 @@ Style/HashSyntax:
3661
3691
  - no_mixed_keys
3662
3692
  # enforces both ruby19 and no_mixed_keys styles
3663
3693
  - ruby19_no_mixed_keys
3694
+ # Force hashes that have a hash value omission
3695
+ EnforcedShorthandSyntax: always
3696
+ SupportedShorthandSyntax:
3697
+ # forces use of the 3.1 syntax (e.g. {foo:}) when the hash key and value are the same.
3698
+ - always
3699
+ # forces use of explicit hash literal value.
3700
+ - never
3664
3701
  # Force hashes that have a symbol value to use hash rockets
3665
3702
  UseHashRocketsWithSymbolValues: false
3666
3703
  # Do not suggest { a?: 1 } over { :a? => 1 } in ruby19 style
@@ -3837,6 +3874,12 @@ Style/LineEndConcatenation:
3837
3874
  VersionAdded: '0.18'
3838
3875
  VersionChanged: '0.64'
3839
3876
 
3877
+ Style/MapToHash:
3878
+ Description: 'Prefer `to_h` with a block over `map.to_h`.'
3879
+ Enabled: pending
3880
+ VersionAdded: '1.24'
3881
+ Safe: false
3882
+
3840
3883
  Style/MethodCallWithArgsParentheses:
3841
3884
  Description: 'Use parentheses for method calls with arguments.'
3842
3885
  StyleGuide: '#method-invocation-parens'
@@ -4205,6 +4248,8 @@ Style/NumericLiterals:
4205
4248
  VersionChanged: '0.48'
4206
4249
  MinDigits: 5
4207
4250
  Strict: false
4251
+ # You can specify allowed numbers. (e.g. port number 3000, 8080, and etc)
4252
+ AllowedNumbers: []
4208
4253
 
4209
4254
  Style/NumericPredicate:
4210
4255
  Description: >-
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module Chefstyle
3
- VERSION = "2.1.3"
4
- RUBOCOP_VERSION = "1.23.0"
3
+ VERSION = "2.2.0"
4
+ RUBOCOP_VERSION = "1.24.1"
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.1.3
4
+ version: 2.2.0
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-11-15 00:00:00.000000000 Z
11
+ date: 2022-01-01 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.23.0
19
+ version: 1.24.1
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.23.0
26
+ version: 1.24.1
27
27
  description:
28
28
  email:
29
29
  - oss@chef.io