cookstyle 7.12.6 → 7.13.0

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: 7958b406a903a1393062af1fea9eb412dea315a39ba72f0614be9e50a61f48f5
4
- data.tar.gz: 65f9399991eb1969d32675ea92baf7515d8631a34f775599354e222a6e67539d
3
+ metadata.gz: 811ea8aed6ff56a955606ba47fd8c30181ea3827c816879fd2e8e98443db92bc
4
+ data.tar.gz: ab8a7d83c787649299f98c6e86722be5728d3aa2b510c50a2d5f72cd0718999b
5
5
  SHA512:
6
- metadata.gz: f11395e2998b9527c94071305e61abd63301a8f283ab5b032eb26fb842166c81ecaff34372fcaadf51e9467b56e10d14bb53f4fefdf6925e192277e9087f6068
7
- data.tar.gz: dbea35f94ed1240fab1e755d993906811e34420dcefa0f4d707ed5de3220519471547a8ccfcb690d99819c29fd4d53c12ae3b4f00a18d4e3448e5b5d21e7fca0
6
+ metadata.gz: 3e1184b274aa2fb50748e5e693f3f30a9ec6bf23230187152c3934c03a42350fbbb44624772722a871801cc8b9dbb9f9a5e676fbf9dabcfe34cdc0582584a0d4
7
+ data.tar.gz: '09c3f666ede2289ea7dfbe677e73c9df1f1763ae19c16d8b1c51ae33dddde2ead0eaee275d4dd45fee304769422549d171a0bfaede0262ef059dd6b4307c226e'
@@ -883,6 +883,8 @@ Style/SymbolProc:
883
883
  Enabled: false
884
884
  Style/TernaryParentheses:
885
885
  Enabled: false
886
+ Style/TopLevelMethodDefinition:
887
+ Enabled: false
886
888
  Style/TrailingBodyOnClass:
887
889
  Enabled: false
888
890
  Style/TrailingBodyOnMethodDefinition:
data/config/upstream.yml CHANGED
@@ -1612,7 +1612,7 @@ Lint/EmptyBlock:
1612
1612
  Description: 'This cop checks for blocks without a body.'
1613
1613
  Enabled: pending
1614
1614
  VersionAdded: '1.1'
1615
- VersionChanged: '1.3'
1615
+ VersionChanged: '1.15'
1616
1616
  AllowComments: true
1617
1617
  AllowEmptyLambdas: true
1618
1618
 
@@ -3480,6 +3480,7 @@ Style/HashAsLastArrayItem:
3480
3480
 
3481
3481
  Style/HashConversion:
3482
3482
  Description: 'Avoid Hash[] in favor of ary.to_h or literal hashes.'
3483
+ StyleGuide: '#avoid-hash-constructor'
3483
3484
  Enabled: pending
3484
3485
  VersionAdded: '1.10'
3485
3486
  VersionChanged: '1.11'
@@ -3998,6 +3999,7 @@ Style/NilLambda:
3998
3999
  Description: 'Prefer `-> {}` to `-> { nil }`.'
3999
4000
  Enabled: pending
4000
4001
  VersionAdded: '1.3'
4002
+ VersionChanged: '1.15'
4001
4003
 
4002
4004
  Style/NonNilCheck:
4003
4005
  Description: 'Checks for redundant nil checks.'
@@ -4651,6 +4653,12 @@ Style/TernaryParentheses:
4651
4653
  - require_parentheses_when_complex
4652
4654
  AllowSafeAssignment: true
4653
4655
 
4656
+ Style/TopLevelMethodDefinition:
4657
+ Description: 'This cop looks for top-level method definitions.'
4658
+ StyleGuide: '#top-level-methods'
4659
+ Enabled: false
4660
+ VersionAdded: '1.15'
4661
+
4654
4662
  Style/TrailingBodyOnClass:
4655
4663
  Description: 'Class body goes below class statement.'
4656
4664
  Enabled: true
@@ -4737,7 +4745,7 @@ Style/TrivialAccessors:
4737
4745
  StyleGuide: '#attr_family'
4738
4746
  Enabled: true
4739
4747
  VersionAdded: '0.9'
4740
- VersionChanged: '0.77'
4748
+ VersionChanged: '1.15'
4741
4749
  # When set to `false` the cop will suggest the use of accessor methods
4742
4750
  # in situations like:
4743
4751
  #
@@ -4756,7 +4764,7 @@ Style/TrivialAccessors:
4756
4764
  # on_exception :restart
4757
4765
  #
4758
4766
  # Commonly used in DSLs
4759
- AllowDSLWriters: false
4767
+ AllowDSLWriters: true
4760
4768
  IgnoreClassMethods: false
4761
4769
  AllowedMethods:
4762
4770
  - to_ary
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module Cookstyle
3
- VERSION = "7.12.6" # rubocop: disable Style/StringLiterals
4
- RUBOCOP_VERSION = '1.14.0'
3
+ VERSION = "7.13.0" # rubocop: disable Style/StringLiterals
4
+ RUBOCOP_VERSION = '1.15.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: 7.12.6
4
+ version: 7.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thom May
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: 1.14.0
20
+ version: 1.15.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: 1.14.0
27
+ version: 1.15.0
28
28
  description:
29
29
  email:
30
30
  - thom@chef.io