chefstyle 1.4.0 → 1.4.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f8855b643a12f7609e03fe4fef4bec806eacfc1b609ad3f927fa2750be52c5d
|
4
|
+
data.tar.gz: 1d2af7269153108d67ce8d02503a6b32226a182907436b80cc57b6583c612386
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab7bc2f6b2f3e22d060be4e6e30eacfc171e7fb5bee4f1ac11ca5a4b6cf190745fe79c20b0b4d65c9bee5d0d4b61431a3bedbd7a08a8db4c2a18d6f634af4a25
|
7
|
+
data.tar.gz: 7b34f9396e79b75b88a726c6b14fb25138197eb087a4bba9dbf31c93eb33a314a8b76ecc1c963c3182981cf99e64595dd766d37a66a9c992de7159775cd5d473
|
data/config/upstream.yml
CHANGED
@@ -2463,7 +2463,7 @@ Style/ArrayCoercion:
|
|
2463
2463
|
with a variable you want to treat as an Array, but you're not certain it's an array.
|
2464
2464
|
StyleGuide: '#array-coercion'
|
2465
2465
|
Safe: false
|
2466
|
-
Enabled:
|
2466
|
+
Enabled: false
|
2467
2467
|
VersionAdded: '0.88'
|
2468
2468
|
|
2469
2469
|
Style/ArrayJoin:
|
@@ -2863,7 +2863,8 @@ Style/DateTime:
|
|
2863
2863
|
StyleGuide: '#date--time'
|
2864
2864
|
Enabled: false
|
2865
2865
|
VersionAdded: '0.51'
|
2866
|
-
VersionChanged: '0.
|
2866
|
+
VersionChanged: '0.92'
|
2867
|
+
SafeAutoCorrect: false
|
2867
2868
|
AllowCoercion: false
|
2868
2869
|
|
2869
2870
|
Style/DefWithParentheses:
|
@@ -3283,11 +3284,16 @@ Style/IpAddresses:
|
|
3283
3284
|
Description: "Don't include literal IP addresses in code."
|
3284
3285
|
Enabled: false
|
3285
3286
|
VersionAdded: '0.58'
|
3286
|
-
VersionChanged: '0.
|
3287
|
+
VersionChanged: '0.91'
|
3287
3288
|
# Allow addresses to be permitted
|
3288
3289
|
AllowedAddresses:
|
3289
3290
|
- "::"
|
3290
3291
|
# :: is a valid IPv6 address, but could potentially be legitimately in code
|
3292
|
+
Exclude:
|
3293
|
+
- '**/*.gemfile'
|
3294
|
+
- '**/Gemfile'
|
3295
|
+
- '**/gems.rb'
|
3296
|
+
- '**/*.gemspec'
|
3291
3297
|
|
3292
3298
|
Style/KeywordParametersOrder:
|
3293
3299
|
Description: 'Enforces that optional keyword parameters are placed at the end of the parameters list.'
|
@@ -3720,6 +3726,8 @@ Style/OptionalBooleanParameter:
|
|
3720
3726
|
Enabled: pending
|
3721
3727
|
Safe: false
|
3722
3728
|
VersionAdded: '0.89'
|
3729
|
+
AllowedMethods:
|
3730
|
+
- respond_to_missing?
|
3723
3731
|
|
3724
3732
|
Style/OrAssignment:
|
3725
3733
|
Description: 'Recommend usage of double pipe equals (||=) where applicable.'
|
@@ -3988,6 +3996,8 @@ Style/SafeNavigation:
|
|
3988
3996
|
This cop transforms usages of a method call safeguarded by
|
3989
3997
|
a check for the existence of the object to
|
3990
3998
|
safe navigation (`&.`).
|
3999
|
+
Auto-correction is unsafe as it assumes the object will
|
4000
|
+
be `nil` or truthy, but never `false`.
|
3991
4001
|
Enabled: true
|
3992
4002
|
VersionAdded: '0.43'
|
3993
4003
|
VersionChanged: '0.77'
|
@@ -4000,6 +4010,7 @@ Style/SafeNavigation:
|
|
4000
4010
|
- presence
|
4001
4011
|
- try
|
4002
4012
|
- try!
|
4013
|
+
SafeAutoCorrect: false
|
4003
4014
|
|
4004
4015
|
Style/Sample:
|
4005
4016
|
Description: >-
|
data/lib/chefstyle.rb
CHANGED
@@ -5,9 +5,6 @@ require_relative "chefstyle/version"
|
|
5
5
|
gem "rubocop", "= #{Chefstyle::RUBOCOP_VERSION}"
|
6
6
|
require "rubocop"
|
7
7
|
|
8
|
-
# @TODO remove this monkeypatch after we upgrade from 0.91.0
|
9
|
-
require_relative "rubocop/monkey_patches/rescue_ensure_alignment"
|
10
|
-
|
11
8
|
module RuboCop
|
12
9
|
class ConfigLoader
|
13
10
|
RUBOCOP_HOME.gsub!(
|
data/lib/chefstyle/version.rb
CHANGED
@@ -34,7 +34,7 @@ module RuboCop
|
|
34
34
|
"base64" => "Base64",
|
35
35
|
"benchmark" => "Benchmark",
|
36
36
|
"cgi" => "CGI",
|
37
|
-
"chef-utils" => "ChefUtils",
|
37
|
+
"chef-utils" => "ChefUtils::CANARY",
|
38
38
|
"chef-utils/dist" => "ChefUtils::Dist",
|
39
39
|
"csv" => "CSV",
|
40
40
|
"digest" => "Digest",
|
@@ -99,6 +99,7 @@ module RuboCop
|
|
99
99
|
"yard" => "YARD",
|
100
100
|
"zip" => "Zip",
|
101
101
|
"zlib" => "Zlib",
|
102
|
+
"pastel" => "Pastel",
|
102
103
|
}.freeze
|
103
104
|
|
104
105
|
def_node_matcher :require?, <<-PATTERN
|
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.4.
|
4
|
+
version: 1.4.2
|
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-09-
|
11
|
+
date: 2020-09-28 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: 0.
|
19
|
+
version: 0.92.0
|
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: 0.
|
26
|
+
version: 0.92.0
|
27
27
|
description:
|
28
28
|
email:
|
29
29
|
- oss@chef.io
|
@@ -46,7 +46,6 @@ files:
|
|
46
46
|
- lib/rubocop/cop/chef/ruby/require_net_https.rb
|
47
47
|
- lib/rubocop/cop/chef/ruby/ruby_27_keyword_argument_warnings.rb
|
48
48
|
- lib/rubocop/cop/chef/ruby/unless_defined_require.rb
|
49
|
-
- lib/rubocop/monkey_patches/rescue_ensure_alignment.rb
|
50
49
|
homepage: https://github.com/chef/chefstyle
|
51
50
|
licenses:
|
52
51
|
- Apache-2.0
|
@@ -1,22 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
module RuboCop
|
3
|
-
module Cop
|
4
|
-
module Layout
|
5
|
-
class RescueEnsureAlignment < Base
|
6
|
-
# @TODO remove this monkeypatch after we upgrade from RuboCop 0.91.0
|
7
|
-
def begin_end_alignment_style
|
8
|
-
# FIXME: Workaround for pending status for `Layout/BeginEndAlignment` cop
|
9
|
-
# When RuboCop 1.0 is released, please replace it with the following condition.
|
10
|
-
#
|
11
|
-
# config.for_cop('Layout/BeginEndAlignment')['Enabled'] &&
|
12
|
-
# config.for_cop('Layout/BeginEndAlignment')['EnforcedStyleAlignWith']
|
13
|
-
if config.for_all_cops["NewCops"] == "enable" ||
|
14
|
-
config.for_cop("Layout/BeginEndAlignment")["Enabled"] &&
|
15
|
-
config.for_cop("Layout/BeginEndAlignment")["Enabled"] != "pending"
|
16
|
-
config.for_cop("Layout/BeginEndAlignment")["EnforcedStyleAlignWith"]
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|