chefstyle 0.15.1 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -6
- data/chefstyle.gemspec +1 -1
- data/config/chefstyle.yml +2 -2
- data/config/disable_all.yml +14 -4
- data/config/upstream.yml +121 -28
- data/lib/chefstyle/version.rb +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d531f65ef4e895c55f0122b1b79625e7f5a59bd4cbf4fdf8dfe81d27bd55c9f2
|
4
|
+
data.tar.gz: e0919cd9edcb938688ea90469d5a6a43c2161ac2f9193081a317d77059b6c5e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf5bd448cdd24513731546fb143e0430f786155d52445d6766b0e1587ba7200cad22443225bca2b96a16218d4aa0bd9ad0f2620fd558df43807255b10aba7437
|
7
|
+
data.tar.gz: 6727ee8b0eb6109a9ce5373eb749ab83147df75f2ca005fc6d0f40d5ef1dd39d57ee92b209a52053485d709aabc607bc52d3c1e6e37e2392dd0cf377aaa22de5
|
data/Gemfile
CHANGED
@@ -14,9 +14,3 @@ group :docs do
|
|
14
14
|
gem "redcarpet"
|
15
15
|
gem "yard"
|
16
16
|
end
|
17
|
-
|
18
|
-
instance_eval(ENV["GEMFILE_MOD"]) if ENV["GEMFILE_MOD"]
|
19
|
-
|
20
|
-
# If you want to load debugging tools into the bundle exec sandbox,
|
21
|
-
# add these additional dependencies into Gemfile.local
|
22
|
-
eval_gemfile(__FILE__ + ".local") if File.exist?(__FILE__ + ".local")
|
data/chefstyle.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.summary = %q{Rubocop configuration for Chef's ruby projects}
|
13
13
|
spec.homepage = "https://github.com/chef/chefstyle"
|
14
14
|
spec.license = "Apache-2.0"
|
15
|
-
spec.required_ruby_version = ">= 2.
|
15
|
+
spec.required_ruby_version = ">= 2.4"
|
16
16
|
|
17
17
|
spec.files = %w{LICENSE chefstyle.gemspec Gemfile} + Dir.glob("{bin,config,lib}/**/*", File::FNM_DOTMATCH).reject { |f| File.directory?(f) }
|
18
18
|
spec.executables = %w{chefstyle}
|
data/config/chefstyle.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
AllCops:
|
2
|
-
TargetRubyVersion: 2.
|
2
|
+
TargetRubyVersion: 2.4
|
3
3
|
|
4
4
|
#
|
5
5
|
# Bundler
|
@@ -444,7 +444,7 @@ Style/SymbolArray:
|
|
444
444
|
Enabled: true
|
445
445
|
Style/SymbolProc:
|
446
446
|
Enabled: true
|
447
|
-
Layout/
|
447
|
+
Layout/IndentationStyle:
|
448
448
|
Enabled: true
|
449
449
|
Layout/TrailingBlankLines:
|
450
450
|
Enabled: true
|
data/config/disable_all.yml
CHANGED
@@ -103,6 +103,8 @@ Layout/HeredocIndentation:
|
|
103
103
|
Enabled: false
|
104
104
|
Layout/IndentationConsistency:
|
105
105
|
Enabled: false
|
106
|
+
Layout/IndentationStyle:
|
107
|
+
Enabled: false
|
106
108
|
Layout/IndentationWidth:
|
107
109
|
Enabled: false
|
108
110
|
Layout/InitialIndentation:
|
@@ -155,6 +157,8 @@ Layout/SpaceAroundEqualsInParameterDefault:
|
|
155
157
|
Enabled: false
|
156
158
|
Layout/SpaceAroundKeyword:
|
157
159
|
Enabled: false
|
160
|
+
Layout/SpaceAroundMethodCallOperator:
|
161
|
+
Enabled: false
|
158
162
|
Layout/SpaceAroundOperators:
|
159
163
|
Enabled: false
|
160
164
|
Layout/SpaceBeforeBlockBraces:
|
@@ -187,8 +191,6 @@ Layout/SpaceInsideReferenceBrackets:
|
|
187
191
|
Enabled: false
|
188
192
|
Layout/SpaceInsideStringInterpolation:
|
189
193
|
Enabled: false
|
190
|
-
Layout/Tab:
|
191
|
-
Enabled: false
|
192
194
|
Layout/TrailingEmptyLines:
|
193
195
|
Enabled: false
|
194
196
|
Layout/TrailingWhitespace:
|
@@ -231,8 +233,6 @@ Lint/EmptyInterpolation:
|
|
231
233
|
Enabled: false
|
232
234
|
Lint/EmptyWhen:
|
233
235
|
Enabled: false
|
234
|
-
Lint/EndInMethod:
|
235
|
-
Enabled: false
|
236
236
|
Lint/EnsureReturn:
|
237
237
|
Enabled: false
|
238
238
|
Lint/ErbNewArguments:
|
@@ -283,6 +283,8 @@ Lint/PercentStringArray:
|
|
283
283
|
Enabled: false
|
284
284
|
Lint/PercentSymbolArray:
|
285
285
|
Enabled: false
|
286
|
+
Lint/RaiseException:
|
287
|
+
Enabled: false
|
286
288
|
Lint/RandOne:
|
287
289
|
Enabled: false
|
288
290
|
Lint/RedundantCopDisableDirective:
|
@@ -325,6 +327,8 @@ Lint/ShadowedException:
|
|
325
327
|
Enabled: false
|
326
328
|
Lint/ShadowingOuterLocalVariable:
|
327
329
|
Enabled: false
|
330
|
+
Lint/StructNewOverride:
|
331
|
+
Enabled: false
|
328
332
|
Lint/SuppressedException:
|
329
333
|
Enabled: false
|
330
334
|
Lint/Syntax:
|
@@ -465,6 +469,8 @@ Style/DefWithParentheses:
|
|
465
469
|
Enabled: false
|
466
470
|
Style/Dir:
|
467
471
|
Enabled: false
|
472
|
+
Style/DisableCopsWithinSourceCodeDirective:
|
473
|
+
Enabled: false
|
468
474
|
Style/DocumentationMethod:
|
469
475
|
Enabled: false
|
470
476
|
Style/Documentation:
|
@@ -499,6 +505,8 @@ Style/EvenOdd:
|
|
499
505
|
Enabled: false
|
500
506
|
Style/ExpandPathArguments:
|
501
507
|
Enabled: false
|
508
|
+
Style/ExponentialNotation:
|
509
|
+
Enabled: false
|
502
510
|
Style/FloatDivision:
|
503
511
|
Enabled: false
|
504
512
|
Style/For:
|
@@ -725,6 +733,8 @@ Style/TrailingCommaInArguments:
|
|
725
733
|
Enabled: false
|
726
734
|
Style/TrailingCommaInArrayLiteral:
|
727
735
|
Enabled: false
|
736
|
+
Style/TrailingCommaInBlockArgs:
|
737
|
+
Enabled: false
|
728
738
|
Style/TrailingCommaInHashLiteral:
|
729
739
|
Enabled: false
|
730
740
|
Style/TrailingMethodEndStatement:
|
data/config/upstream.yml
CHANGED
@@ -97,6 +97,14 @@ AllCops:
|
|
97
97
|
# to true in the same configuration.
|
98
98
|
EnabledByDefault: false
|
99
99
|
DisabledByDefault: false
|
100
|
+
# New cops introduced between major versions are set to a special pending status
|
101
|
+
# and are not enabled by default with warning message.
|
102
|
+
# Change this behavior by overriding either `NewCops: enable` or `NewCops: disable`.
|
103
|
+
# When `NewCops` is `enable`, pending cops are enabled in bulk. Can be overridden by
|
104
|
+
# the `--enable-pending-cops` command-line option.
|
105
|
+
# When `NewCops` is `disable`, pending cops are disabled in bulk. Can be overridden by
|
106
|
+
# the `--disable-pending-cops` command-line option.
|
107
|
+
NewCops: pending
|
100
108
|
# Enables the result cache if `true`. Can be overridden by the `--cache` command
|
101
109
|
# line option.
|
102
110
|
UseCache: true
|
@@ -125,7 +133,7 @@ AllCops:
|
|
125
133
|
# followed by the Gemfile.lock or gems.locked file. (Although the Ruby version
|
126
134
|
# is specified in the Gemfile or gems.rb file, RuboCop reads the final value
|
127
135
|
# from the lock file.) If the Ruby version is still unresolved, RuboCop will
|
128
|
-
# use the oldest officially supported Ruby version (currently Ruby 2.
|
136
|
+
# use the oldest officially supported Ruby version (currently Ruby 2.4).
|
129
137
|
TargetRubyVersion: ~
|
130
138
|
|
131
139
|
#################### Bundler ###############################
|
@@ -255,10 +263,30 @@ Layout/ArrayAlignment:
|
|
255
263
|
Description: >-
|
256
264
|
Align the elements of an array literal if they span more than
|
257
265
|
one line.
|
258
|
-
StyleGuide: '#
|
266
|
+
StyleGuide: '#no-double-indent'
|
259
267
|
Enabled: true
|
260
268
|
VersionAdded: '0.49'
|
261
269
|
VersionChanged: '0.77'
|
270
|
+
# Alignment of elements of a multi-line array.
|
271
|
+
#
|
272
|
+
# The `with_first_parameter` style aligns the following lines along the same
|
273
|
+
# column as the first element.
|
274
|
+
#
|
275
|
+
# array = [1, 2, 3,
|
276
|
+
# 4, 5, 6]
|
277
|
+
#
|
278
|
+
# The `with_fixed_indentation` style aligns the following lines with one
|
279
|
+
# level of indentation relative to the start of the line with start of array.
|
280
|
+
#
|
281
|
+
# array = [1, 2, 3,
|
282
|
+
# 4, 5, 6]
|
283
|
+
EnforcedStyle: with_first_element
|
284
|
+
SupportedStyles:
|
285
|
+
- with_first_element
|
286
|
+
- with_fixed_indentation
|
287
|
+
# By default, the indentation width from Layout/IndentationWidth is used
|
288
|
+
# But it can be overridden by setting this parameter
|
289
|
+
IndentationWidth: ~
|
262
290
|
|
263
291
|
Layout/AssignmentIndentation:
|
264
292
|
Description: >-
|
@@ -773,6 +801,22 @@ Layout/IndentationConsistency:
|
|
773
801
|
# A reference to `EnforcedStyle: indented_internal_methods`.
|
774
802
|
- https://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html#follow-the-coding-conventions
|
775
803
|
|
804
|
+
Layout/IndentationStyle:
|
805
|
+
Description: 'Consistent indentation either with tabs only or spaces only.'
|
806
|
+
StyleGuide: '#spaces-indentation'
|
807
|
+
Enabled: true
|
808
|
+
VersionAdded: '0.49'
|
809
|
+
VersionChanged: '0.82'
|
810
|
+
# By default, the indentation width from Layout/IndentationWidth is used
|
811
|
+
# But it can be overridden by setting this parameter
|
812
|
+
# It is used during auto-correction to determine how many spaces should
|
813
|
+
# replace each tab.
|
814
|
+
IndentationWidth: ~
|
815
|
+
EnforcedStyle: spaces
|
816
|
+
SupportedStyles:
|
817
|
+
- spaces
|
818
|
+
- tabs
|
819
|
+
|
776
820
|
Layout/IndentationWidth:
|
777
821
|
Description: 'Use 2 spaces for indentation.'
|
778
822
|
StyleGuide: '#spaces-indentation'
|
@@ -1060,6 +1104,11 @@ Layout/SpaceAroundKeyword:
|
|
1060
1104
|
Enabled: true
|
1061
1105
|
VersionAdded: '0.49'
|
1062
1106
|
|
1107
|
+
Layout/SpaceAroundMethodCallOperator:
|
1108
|
+
Description: 'Checks method call operators to not have spaces around them.'
|
1109
|
+
Enabled: pending
|
1110
|
+
VersionAdded: '0.82'
|
1111
|
+
|
1063
1112
|
Layout/SpaceAroundOperators:
|
1064
1113
|
Description: 'Use a single space around operators.'
|
1065
1114
|
StyleGuide: '#spaces-operators'
|
@@ -1230,18 +1279,6 @@ Layout/SpaceInsideStringInterpolation:
|
|
1230
1279
|
- space
|
1231
1280
|
- no_space
|
1232
1281
|
|
1233
|
-
Layout/Tab:
|
1234
|
-
Description: 'No hard tabs.'
|
1235
|
-
StyleGuide: '#spaces-indentation'
|
1236
|
-
Enabled: true
|
1237
|
-
VersionAdded: '0.49'
|
1238
|
-
VersionChanged: '0.51'
|
1239
|
-
# By default, the indentation width from Layout/IndentationWidth is used
|
1240
|
-
# But it can be overridden by setting this parameter
|
1241
|
-
# It is used during auto-correction to determine how many spaces should
|
1242
|
-
# replace each tab.
|
1243
|
-
IndentationWidth: ~
|
1244
|
-
|
1245
1282
|
Layout/TrailingEmptyLines:
|
1246
1283
|
Description: 'Checks trailing blank lines and final newline.'
|
1247
1284
|
StyleGuide: '#newline-eof'
|
@@ -1303,6 +1340,7 @@ Lint/BooleanSymbol:
|
|
1303
1340
|
Description: 'Check for `:true` and `:false` symbols.'
|
1304
1341
|
Enabled: true
|
1305
1342
|
VersionAdded: '0.50'
|
1343
|
+
VersionChanged: '0.81'
|
1306
1344
|
|
1307
1345
|
Lint/CircularArgumentReference:
|
1308
1346
|
Description: "Default values in optional keyword arguments and optional ordinal arguments should not refer back to the name of the argument."
|
@@ -1375,11 +1413,6 @@ Lint/EmptyWhen:
|
|
1375
1413
|
Enabled: true
|
1376
1414
|
VersionAdded: '0.45'
|
1377
1415
|
|
1378
|
-
Lint/EndInMethod:
|
1379
|
-
Description: 'END blocks should not be placed inside method definitions.'
|
1380
|
-
Enabled: true
|
1381
|
-
VersionAdded: '0.9'
|
1382
|
-
|
1383
1416
|
Lint/EnsureReturn:
|
1384
1417
|
Description: 'Do not use return in an ensure block.'
|
1385
1418
|
StyleGuide: '#no-return-ensure'
|
@@ -1546,6 +1579,14 @@ Lint/PercentSymbolArray:
|
|
1546
1579
|
Enabled: true
|
1547
1580
|
VersionAdded: '0.41'
|
1548
1581
|
|
1582
|
+
Lint/RaiseException:
|
1583
|
+
Description: Checks for `raise` or `fail` statements which are raising `Exception` class.
|
1584
|
+
StyleGuide: '#raise-exception'
|
1585
|
+
Enabled: pending
|
1586
|
+
VersionAdded: '0.81'
|
1587
|
+
AllowedImplicitNamespaces:
|
1588
|
+
- 'Gem'
|
1589
|
+
|
1549
1590
|
Lint/RandOne:
|
1550
1591
|
Description: >-
|
1551
1592
|
Checks for `rand(1)` calls. Such calls always return `0`
|
@@ -1574,7 +1615,7 @@ Lint/RedundantRequireStatement:
|
|
1574
1615
|
Lint/RedundantSplatExpansion:
|
1575
1616
|
Description: 'Checks for splat unnecessarily being called on literals.'
|
1576
1617
|
Enabled: true
|
1577
|
-
|
1618
|
+
VersionAdded: '0.76'
|
1578
1619
|
|
1579
1620
|
Lint/RedundantStringCoercion:
|
1580
1621
|
Description: 'Checks for Object#to_s usage in string interpolation.'
|
@@ -1688,13 +1729,18 @@ Lint/ShadowingOuterLocalVariable:
|
|
1688
1729
|
Enabled: true
|
1689
1730
|
VersionAdded: '0.9'
|
1690
1731
|
|
1732
|
+
Lint/StructNewOverride:
|
1733
|
+
Description: 'Disallow overriding the `Struct` built-in methods via `Struct.new`.'
|
1734
|
+
Enabled: pending
|
1735
|
+
VersionAdded: '0.81'
|
1736
|
+
|
1691
1737
|
Lint/SuppressedException:
|
1692
1738
|
Description: "Don't suppress exceptions."
|
1693
1739
|
StyleGuide: '#dont-hide-exceptions'
|
1694
1740
|
Enabled: true
|
1695
|
-
AllowComments:
|
1741
|
+
AllowComments: true
|
1696
1742
|
VersionAdded: '0.9'
|
1697
|
-
VersionChanged: '0.
|
1743
|
+
VersionChanged: '0.81'
|
1698
1744
|
|
1699
1745
|
Lint/Syntax:
|
1700
1746
|
Description: 'Checks syntax error.'
|
@@ -1705,6 +1751,7 @@ Lint/Syntax:
|
|
1705
1751
|
Lint/ToJSON:
|
1706
1752
|
Description: 'Ensure #to_json includes an optional argument.'
|
1707
1753
|
Enabled: true
|
1754
|
+
VersionAdded: '0.66'
|
1708
1755
|
|
1709
1756
|
Lint/UnderscorePrefixedVariableName:
|
1710
1757
|
Description: 'Do not use prefix `_` for a variable that is used.'
|
@@ -1736,9 +1783,10 @@ Lint/UnusedMethodArgument:
|
|
1736
1783
|
StyleGuide: '#underscore-unused-vars'
|
1737
1784
|
Enabled: true
|
1738
1785
|
VersionAdded: '0.21'
|
1739
|
-
VersionChanged: '0.
|
1786
|
+
VersionChanged: '0.81'
|
1740
1787
|
AllowUnusedKeywordArguments: false
|
1741
1788
|
IgnoreEmptyMethods: true
|
1789
|
+
IgnoreNotImplementedMethods: true
|
1742
1790
|
|
1743
1791
|
Lint/UriEscapeUnescape:
|
1744
1792
|
Description: >-
|
@@ -1804,9 +1852,10 @@ Metrics/AbcSize:
|
|
1804
1852
|
- https://en.wikipedia.org/wiki/ABC_Software_Metric
|
1805
1853
|
Enabled: true
|
1806
1854
|
VersionAdded: '0.27'
|
1807
|
-
VersionChanged: '0.
|
1855
|
+
VersionChanged: '0.81'
|
1808
1856
|
# The ABC size is a calculated magnitude, so this number can be an Integer or
|
1809
1857
|
# a Float.
|
1858
|
+
IgnoredMethods: []
|
1810
1859
|
Max: 15
|
1811
1860
|
|
1812
1861
|
Metrics/BlockLength:
|
@@ -1846,6 +1895,8 @@ Metrics/CyclomaticComplexity:
|
|
1846
1895
|
of test cases needed to validate a method.
|
1847
1896
|
Enabled: true
|
1848
1897
|
VersionAdded: '0.25'
|
1898
|
+
VersionChanged: '0.81'
|
1899
|
+
IgnoredMethods: []
|
1849
1900
|
Max: 6
|
1850
1901
|
|
1851
1902
|
Metrics/MethodLength:
|
@@ -1879,6 +1930,8 @@ Metrics/PerceivedComplexity:
|
|
1879
1930
|
human reader.
|
1880
1931
|
Enabled: true
|
1881
1932
|
VersionAdded: '0.25'
|
1933
|
+
VersionChanged: '0.81'
|
1934
|
+
IgnoredMethods: []
|
1882
1935
|
Max: 7
|
1883
1936
|
|
1884
1937
|
################## Migration #############################
|
@@ -1888,6 +1941,7 @@ Migration/DepartmentName:
|
|
1888
1941
|
Check that cop names in rubocop:disable (etc) comments are
|
1889
1942
|
given with department name.
|
1890
1943
|
Enabled: true
|
1944
|
+
VersionAdded: '0.75'
|
1891
1945
|
|
1892
1946
|
#################### Naming ##############################
|
1893
1947
|
|
@@ -2178,10 +2232,12 @@ Style/AccessModifierDeclarations:
|
|
2178
2232
|
Description: 'Checks style of how access modifiers are used.'
|
2179
2233
|
Enabled: true
|
2180
2234
|
VersionAdded: '0.57'
|
2235
|
+
VersionChanged: '0.81'
|
2181
2236
|
EnforcedStyle: group
|
2182
2237
|
SupportedStyles:
|
2183
2238
|
- inline
|
2184
2239
|
- group
|
2240
|
+
AllowModifiersOnSymbols: true
|
2185
2241
|
|
2186
2242
|
Style/Alias:
|
2187
2243
|
Description: 'Use alias instead of alias_method.'
|
@@ -2372,6 +2428,15 @@ Style/CaseEquality:
|
|
2372
2428
|
StyleGuide: '#no-case-equality'
|
2373
2429
|
Enabled: true
|
2374
2430
|
VersionAdded: '0.9'
|
2431
|
+
# If AllowOnConstant is enabled, the cop will ignore violations when the receiver of
|
2432
|
+
# the case equality operator is a constant.
|
2433
|
+
#
|
2434
|
+
# # bad
|
2435
|
+
# /string/ === "string"
|
2436
|
+
#
|
2437
|
+
# # good
|
2438
|
+
# String === "string"
|
2439
|
+
AllowOnConstant: false
|
2375
2440
|
|
2376
2441
|
Style/CharacterLiteral:
|
2377
2442
|
Description: 'Checks for uses of character literals.'
|
@@ -2412,6 +2477,7 @@ Style/ClassAndModuleChildren:
|
|
2412
2477
|
|
2413
2478
|
Style/ClassCheck:
|
2414
2479
|
Description: 'Enforces consistent use of `Object#is_a?` or `Object#kind_of?`.'
|
2480
|
+
StyleGuide: '#is-a-vs-kind-of'
|
2415
2481
|
Enabled: true
|
2416
2482
|
VersionAdded: '0.24'
|
2417
2483
|
EnforcedStyle: is_a?
|
@@ -2435,7 +2501,7 @@ Style/ClassVars:
|
|
2435
2501
|
# Align with the style guide.
|
2436
2502
|
Style/CollectionMethods:
|
2437
2503
|
Description: 'Preferred collection methods.'
|
2438
|
-
StyleGuide: '#map-find-select-reduce-size'
|
2504
|
+
StyleGuide: '#map-find-select-reduce-include-size'
|
2439
2505
|
Enabled: false
|
2440
2506
|
VersionAdded: '0.9'
|
2441
2507
|
VersionChanged: '0.27'
|
@@ -2452,6 +2518,7 @@ Style/CollectionMethods:
|
|
2452
2518
|
inject: 'reduce'
|
2453
2519
|
detect: 'find'
|
2454
2520
|
find_all: 'select'
|
2521
|
+
member?: 'include?'
|
2455
2522
|
|
2456
2523
|
Style/ColonMethodCall:
|
2457
2524
|
Description: 'Do not use :: for method call.'
|
@@ -2578,6 +2645,12 @@ Style/Dir:
|
|
2578
2645
|
Enabled: true
|
2579
2646
|
VersionAdded: '0.50'
|
2580
2647
|
|
2648
|
+
Style/DisableCopsWithinSourceCodeDirective:
|
2649
|
+
Description: >-
|
2650
|
+
Forbids disabling/enabling cops within source code.
|
2651
|
+
Enabled: false
|
2652
|
+
VersionAdded: '0.82'
|
2653
|
+
|
2581
2654
|
Style/Documentation:
|
2582
2655
|
Description: 'Document classes and non-namespace modules.'
|
2583
2656
|
Enabled: true
|
@@ -2677,6 +2750,7 @@ Style/EndBlock:
|
|
2677
2750
|
StyleGuide: '#no-END-blocks'
|
2678
2751
|
Enabled: true
|
2679
2752
|
VersionAdded: '0.9'
|
2753
|
+
VersionChanged: '0.81'
|
2680
2754
|
|
2681
2755
|
Style/EvalWithLocation:
|
2682
2756
|
Description: 'Pass `__FILE__` and `__LINE__` to `eval` method, as they are used by backtraces.'
|
@@ -2695,6 +2769,17 @@ Style/ExpandPathArguments:
|
|
2695
2769
|
Enabled: true
|
2696
2770
|
VersionAdded: '0.53'
|
2697
2771
|
|
2772
|
+
Style/ExponentialNotation:
|
2773
|
+
Description: 'When using exponential notation, favor a mantissa between 1 (inclusive) and 10 (exclusive).'
|
2774
|
+
StyleGuide: '#exponential-notation'
|
2775
|
+
Enabled: pending
|
2776
|
+
VersionAdded: '0.82'
|
2777
|
+
EnforcedStyle: scientific
|
2778
|
+
SupportedStyles:
|
2779
|
+
- scientific
|
2780
|
+
- engineering
|
2781
|
+
- integral
|
2782
|
+
|
2698
2783
|
Style/FloatDivision:
|
2699
2784
|
Description: 'For performing float division, coerce one side only.'
|
2700
2785
|
StyleGuide: '#float-division'
|
@@ -2937,7 +3022,7 @@ Style/LambdaCall:
|
|
2937
3022
|
Description: 'Use lambda.call(...) instead of lambda.(...).'
|
2938
3023
|
StyleGuide: '#proc-call'
|
2939
3024
|
Enabled: true
|
2940
|
-
VersionAdded: '0.13
|
3025
|
+
VersionAdded: '0.13'
|
2941
3026
|
VersionChanged: '0.14'
|
2942
3027
|
EnforcedStyle: call
|
2943
3028
|
SupportedStyles:
|
@@ -3067,6 +3152,7 @@ Style/ModuleFunction:
|
|
3067
3152
|
SupportedStyles:
|
3068
3153
|
- module_function
|
3069
3154
|
- extend_self
|
3155
|
+
- forbidden
|
3070
3156
|
Autocorrect: false
|
3071
3157
|
SafeAutoCorrect: false
|
3072
3158
|
|
@@ -3806,22 +3892,29 @@ Style/TrailingCommaInArrayLiteral:
|
|
3806
3892
|
StyleGuide: '#no-trailing-array-commas'
|
3807
3893
|
Enabled: true
|
3808
3894
|
VersionAdded: '0.53'
|
3895
|
+
# If `comma`, the cop requires a comma after the last item in an array,
|
3809
3896
|
# but only when each item is on its own line.
|
3810
3897
|
# If `consistent_comma`, the cop requires a comma after the last item of all
|
3811
|
-
# non-empty array literals.
|
3898
|
+
# non-empty, multiline array literals.
|
3812
3899
|
EnforcedStyleForMultiline: no_comma
|
3813
3900
|
SupportedStylesForMultiline:
|
3814
3901
|
- comma
|
3815
3902
|
- consistent_comma
|
3816
3903
|
- no_comma
|
3817
3904
|
|
3905
|
+
Style/TrailingCommaInBlockArgs:
|
3906
|
+
Description: 'Checks for useless trailing commas in block arguments.'
|
3907
|
+
Enabled: false
|
3908
|
+
Safe: false
|
3909
|
+
VersionAdded: '0.81'
|
3910
|
+
|
3818
3911
|
Style/TrailingCommaInHashLiteral:
|
3819
3912
|
Description: 'Checks for trailing comma in hash literals.'
|
3820
3913
|
Enabled: true
|
3821
3914
|
# If `comma`, the cop requires a comma after the last item in a hash,
|
3822
3915
|
# but only when each item is on its own line.
|
3823
3916
|
# If `consistent_comma`, the cop requires a comma after the last item of all
|
3824
|
-
# non-empty hash literals.
|
3917
|
+
# non-empty, multiline hash literals.
|
3825
3918
|
EnforcedStyleForMultiline: no_comma
|
3826
3919
|
SupportedStylesForMultiline:
|
3827
3920
|
- comma
|
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: 1.0.1
|
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-
|
11
|
+
date: 2020-04-16 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.82.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.82.0
|
69
69
|
description:
|
70
70
|
email:
|
71
71
|
- oss@chef.io
|
@@ -96,7 +96,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
96
96
|
requirements:
|
97
97
|
- - ">="
|
98
98
|
- !ruby/object:Gem::Version
|
99
|
-
version: '2.
|
99
|
+
version: '2.4'
|
100
100
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
102
|
- - ">="
|