chefstyle 0.9.0 → 0.10.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 +4 -0
- data/config/enabled.yml +13 -0
- data/config/upstream.yml +17 -2
- data/lib/chefstyle/version.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e8be47fb2751cf9c274107ed36e406fa4f24bffdd380fbcb6c97733ce19c20c
|
4
|
+
data.tar.gz: a71cd612eaccaa2b15a921fb67b1211ada8ee2b3319c4dec1744bb23d6e00b39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56d9c71745581b7cc4fa21e83331acac6d645c732beb505b06de293af572fa4c23adc8f3c80dceb7296cb9f62fc694dd4986ccb8267ea18056cae4ccc97407a8
|
7
|
+
data.tar.gz: 62fc6f13eb08931b655589a5da5d9dad868048bae361d2cae175b43af1c4751ccb8f4360d32bb3219174011a8e1fd45b8c30f5b4472a119ed57ec5a1183d3e63
|
data/config/disable_all.yml
CHANGED
@@ -265,6 +265,8 @@ Lint/RescueType:
|
|
265
265
|
Enabled: false
|
266
266
|
Lint/ReturnInVoidContext:
|
267
267
|
Enabled: false
|
268
|
+
Lint/SafeNavigationConsistency:
|
269
|
+
Enabled: false
|
268
270
|
Lint/SafeNavigationChain:
|
269
271
|
Enabled: false
|
270
272
|
Lint/ScriptPermission:
|
@@ -411,6 +413,8 @@ Performance/TimesMap:
|
|
411
413
|
Enabled: false
|
412
414
|
Performance/UnfreezeString:
|
413
415
|
Enabled: false
|
416
|
+
Performance/UnneededSort:
|
417
|
+
Enabled: false
|
414
418
|
Performance/UriDefaultParser:
|
415
419
|
Enabled: false
|
416
420
|
Style/Alias:
|
data/config/enabled.yml
CHANGED
@@ -654,6 +654,13 @@ Lint/SafeNavigationChain:
|
|
654
654
|
Description: 'Do not chain ordinary method call after safe navigation operator.'
|
655
655
|
Enabled: true
|
656
656
|
|
657
|
+
Lint/SafeNavigationConsistency:
|
658
|
+
Description: >-
|
659
|
+
Check to make sure that if safe navigation is used for a method
|
660
|
+
call in an `&&` or `||` condition that safe navigation is used
|
661
|
+
for all method calls on that same object.
|
662
|
+
Enabled: true
|
663
|
+
|
657
664
|
Lint/ScriptPermission:
|
658
665
|
Description: 'Grant script file execute permission.'
|
659
666
|
Enabled: true
|
@@ -1056,6 +1063,12 @@ Performance/UnfreezeString:
|
|
1056
1063
|
Description: 'Use unary plus to get an unfrozen string literal.'
|
1057
1064
|
Enabled: true
|
1058
1065
|
|
1066
|
+
Performance/UnneededSort:
|
1067
|
+
Description: >-
|
1068
|
+
Use `min` instead of `sort.first`,
|
1069
|
+
`max_by` instead of `sort_by...last`, etc.
|
1070
|
+
Enabled: true
|
1071
|
+
|
1059
1072
|
Performance/UriDefaultParser:
|
1060
1073
|
Description: 'Use `URI::DEFAULT_PARSER` instead of `URI::Parser.new`.'
|
1061
1074
|
Enabled: true
|
data/config/upstream.yml
CHANGED
@@ -604,6 +604,12 @@ Layout/SpaceInsideHashLiteralBraces:
|
|
604
604
|
- space
|
605
605
|
- no_space
|
606
606
|
|
607
|
+
Layout/SpaceInsideParens:
|
608
|
+
EnforcedStyle: no_space
|
609
|
+
SupportedStyles:
|
610
|
+
- space
|
611
|
+
- no_space
|
612
|
+
|
607
613
|
Layout/SpaceInsideReferenceBrackets:
|
608
614
|
EnforcedStyle: no_space
|
609
615
|
SupportedStyles:
|
@@ -648,6 +654,9 @@ Layout/TrailingBlankLines:
|
|
648
654
|
- final_newline
|
649
655
|
- final_blank_line
|
650
656
|
|
657
|
+
Layout/TrailingWhitespace:
|
658
|
+
AllowInHeredoc: false
|
659
|
+
|
651
660
|
#################### Naming ##########################
|
652
661
|
|
653
662
|
Naming/FileName:
|
@@ -712,8 +721,7 @@ Naming/FileName:
|
|
712
721
|
|
713
722
|
Naming/HeredocDelimiterNaming:
|
714
723
|
Blacklist:
|
715
|
-
- END
|
716
|
-
- !ruby/regexp '/EO[A-Z]{1}/'
|
724
|
+
- !ruby/regexp '/(^|\s)(EO[A-Z]{1}|END)(\s|$)/'
|
717
725
|
|
718
726
|
Naming/HeredocDelimiterCase:
|
719
727
|
EnforcedStyle: uppercase
|
@@ -769,6 +777,10 @@ Naming/UncommunicativeMethodParamName:
|
|
769
777
|
- io
|
770
778
|
- id
|
771
779
|
- to
|
780
|
+
- by
|
781
|
+
- 'on'
|
782
|
+
- in
|
783
|
+
- at
|
772
784
|
# Blacklisted names that will register an offense
|
773
785
|
ForbiddenNames: []
|
774
786
|
|
@@ -1121,6 +1133,9 @@ Style/MethodCallWithArgsParentheses:
|
|
1121
1133
|
IgnoreMacros: true
|
1122
1134
|
IgnoredMethods: []
|
1123
1135
|
|
1136
|
+
Style/MethodCallWithoutArgsParentheses:
|
1137
|
+
IgnoredMethods: []
|
1138
|
+
|
1124
1139
|
Style/MethodDefParentheses:
|
1125
1140
|
EnforcedStyle: require_parentheses
|
1126
1141
|
SupportedStyles:
|
data/lib/chefstyle/version.rb
CHANGED
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: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thom May
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.55.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: 0.55.0
|
69
69
|
description:
|
70
70
|
email:
|
71
71
|
- thom@chef.io
|