cookstyle 6.19.11 → 6.20.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f26b00de7e92bb6cd6e16e2c323c66504b95a098512d78929dda659128c0f828
4
- data.tar.gz: ae852bc01e5b7d9e2bab25ef88778650c46a0c0fb463286bc68dc8400892c215
3
+ metadata.gz: 0de6166c99ad16d4105a50c4e599aeecd6d4a98d6e18d3a3b0464de54bc96d69
4
+ data.tar.gz: a38e62ad11d0d8286cdd1132cb3580dc6cdf2114788ae88c01651edfe7eeb5e3
5
5
  SHA512:
6
- metadata.gz: 69f6664c011cd99a25a1a2695c156190eea02c952e3dfcef41de670de003d3ccfb3a927c9967c3f1ea887294a0acdbd11280b61b410382dc20231fa408abf6a8
7
- data.tar.gz: 1a0a759425be48591153c51e14d06324a3edc240eae193e99110870f62785405043f5847c5ee112157288c11c529614ed920fa17d3b281392d8798d8679723c2
6
+ metadata.gz: d69265f1bcb040b18b3073112f1afddc8c70e748108f0aa6c0f4c2fb3d506113342ac6874565e48331a4560815ab4757a96bebf1c88e44e15dbd707ea3f5b432
7
+ data.tar.gz: 0fe0d04ce0fde1a1bbdd60d6b2d42675e80726895efb4f812c192ec53d6b5270bded94a1318549573ca08d139172f17e66faa6f538dcfe4bc3eddf1dd96bd408
@@ -1929,7 +1929,7 @@ ChefEffortless/CookbookUsesDatabags:
1929
1929
  Exclude:
1930
1930
  - '**/metadata.rb'
1931
1931
  - '**/Berksfile'
1932
-
1932
+
1933
1933
  # https://github.com/chef/cookstyle/issues/346
1934
1934
  ChefEffortless/ChefVaultUsed:
1935
1935
  Description: Cookbook uses Chef Vault, which cannot be used in the Effortless Infra pattern
@@ -2727,4 +2727,8 @@ Style/Dir:
2727
2727
 
2728
2728
  # Use __FILE__ or __dir__ to simplify expand_paths
2729
2729
  Style/ExpandPathArguments:
2730
+ Enabled: true
2731
+
2732
+ # Avoid a safe navigation operator if we don't need it
2733
+ Lint/RedundantSafeNavigation:
2730
2734
  Enabled: true
@@ -269,6 +269,8 @@ Lint/FloatOutOfRange:
269
269
  Enabled: false
270
270
  Lint/FormatParameterMismatch:
271
271
  Enabled: false
272
+ Lint/HashCompareByIdentity:
273
+ Enabled: false
272
274
  Lint/HeredocMethodCallPosition:
273
275
  Enabled: false
274
276
  Lint/IdentityComparison:
@@ -327,6 +329,8 @@ Lint/RedundantCopEnableDirective:
327
329
  Enabled: false
328
330
  Lint/RedundantRequireStatement:
329
331
  Enabled: false
332
+ Lint/RedundantSafeNavigation:
333
+ Enabled: false
330
334
  Lint/RedundantSplatExpansion:
331
335
  Enabled: false
332
336
  Lint/RedundantStringCoercion:
@@ -493,6 +497,8 @@ Style/ClassAndModuleChildren:
493
497
  Enabled: false
494
498
  Style/ClassCheck:
495
499
  Enabled: false
500
+ Style/ClassEqualityComparison:
501
+ Enabled: false
496
502
  Style/ClassMethods:
497
503
  Enabled: false
498
504
  Style/ClassMethodsDefinitions:
@@ -1546,6 +1546,13 @@ Lint/FormatParameterMismatch:
1546
1546
  Enabled: true
1547
1547
  VersionAdded: '0.33'
1548
1548
 
1549
+ Lint/HashCompareByIdentity:
1550
+ Description: 'Prefer using `Hash#compare_by_identity` than using `object_id` for keys.'
1551
+ StyleGuide: '#identity-comparison'
1552
+ Enabled: pending
1553
+ Safe: false
1554
+ VersionAdded: '0.93'
1555
+
1549
1556
  Lint/HeredocMethodCallPosition:
1550
1557
  Description: >-
1551
1558
  Checks for the ordering of a method call where
@@ -1746,6 +1753,21 @@ Lint/RedundantRequireStatement:
1746
1753
  Enabled: true
1747
1754
  VersionAdded: '0.76'
1748
1755
 
1756
+ Lint/RedundantSafeNavigation:
1757
+ Description: 'Checks for redundant safe navigation calls.'
1758
+ Enabled: pending
1759
+ VersionAdded: '0.93'
1760
+ Safe: false
1761
+ IgnoredMethods:
1762
+ - to_c
1763
+ - to_f
1764
+ - to_i
1765
+ - to_r
1766
+ - rationalize
1767
+ - public_send
1768
+ - send
1769
+ - __send__
1770
+
1749
1771
  Lint/RedundantSplatExpansion:
1750
1772
  Description: 'Checks for splat unnecessarily being called on literals.'
1751
1773
  Enabled: true
@@ -2702,6 +2724,16 @@ Style/ClassCheck:
2702
2724
  - is_a?
2703
2725
  - kind_of?
2704
2726
 
2727
+ Style/ClassEqualityComparison:
2728
+ Description: 'Enforces the use of `Object#instance_of?` instead of class comparison for equality.'
2729
+ StyleGuide: '#instance-of-vs-class-comparison'
2730
+ Enabled: pending
2731
+ VersionAdded: '0.93'
2732
+ IgnoredMethods:
2733
+ - ==
2734
+ - equal?
2735
+ - eql?
2736
+
2705
2737
  Style/ClassMethods:
2706
2738
  Description: 'Use self when defining module/class methods.'
2707
2739
  StyleGuide: '#def-self-class-methods'
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
  'homepage_uri' => 'https://github.com/chef/cookstyle',
25
25
  'changelog_uri' => 'https://github.com/chef/cookstyle/blob/master/CHANGELOG.md',
26
26
  'source_code_uri' => 'https://github.com/chef/cookstyle',
27
- 'documentation_uri' => 'https://docs.chef.io/cookstyle.html',
27
+ 'documentation_uri' => 'https://docs.chef.io/workstation/cookstyle/',
28
28
  'bug_tracker_uri' => 'https://github.com/chef/cookstyle/issues',
29
29
  }
30
30
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module Cookstyle
3
- VERSION = "6.19.11" # rubocop: disable Style/StringLiterals
4
- RUBOCOP_VERSION = '0.92.0'
3
+ VERSION = "6.20.1" # rubocop: disable Style/StringLiterals
4
+ RUBOCOP_VERSION = '0.93.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cookstyle
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.19.11
4
+ version: 6.20.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thom May
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-10-02 00:00:00.000000000 Z
12
+ date: 2020-10-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubocop
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: 0.92.0
20
+ version: 0.93.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - '='
26
26
  - !ruby/object:Gem::Version
27
- version: 0.92.0
27
+ version: 0.93.0
28
28
  description:
29
29
  email:
30
30
  - thom@chef.io
@@ -280,7 +280,7 @@ metadata:
280
280
  homepage_uri: https://github.com/chef/cookstyle
281
281
  changelog_uri: https://github.com/chef/cookstyle/blob/master/CHANGELOG.md
282
282
  source_code_uri: https://github.com/chef/cookstyle
283
- documentation_uri: https://docs.chef.io/cookstyle.html
283
+ documentation_uri: https://docs.chef.io/workstation/cookstyle/
284
284
  bug_tracker_uri: https://github.com/chef/cookstyle/issues
285
285
  post_install_message:
286
286
  rdoc_options: []