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 +4 -4
- data/config/disable_all.yml +2 -0
- data/config/upstream.yml +11 -3
- data/lib/cookstyle/version.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 811ea8aed6ff56a955606ba47fd8c30181ea3827c816879fd2e8e98443db92bc
|
4
|
+
data.tar.gz: ab8a7d83c787649299f98c6e86722be5728d3aa2b510c50a2d5f72cd0718999b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e1184b274aa2fb50748e5e693f3f30a9ec6bf23230187152c3934c03a42350fbbb44624772722a871801cc8b9dbb9f9a5e676fbf9dabcfe34cdc0582584a0d4
|
7
|
+
data.tar.gz: '09c3f666ede2289ea7dfbe677e73c9df1f1763ae19c16d8b1c51ae33dddde2ead0eaee275d4dd45fee304769422549d171a0bfaede0262ef059dd6b4307c226e'
|
data/config/disable_all.yml
CHANGED
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.
|
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: '
|
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:
|
4767
|
+
AllowDSLWriters: true
|
4760
4768
|
IgnoreClassMethods: false
|
4761
4769
|
AllowedMethods:
|
4762
4770
|
- to_ary
|
data/lib/cookstyle/version.rb
CHANGED
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.
|
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.
|
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.
|
27
|
+
version: 1.15.0
|
28
28
|
description:
|
29
29
|
email:
|
30
30
|
- thom@chef.io
|