chefstyle 0.13.3 → 0.14.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 +8 -0
- data/config/upstream.yml +40 -4
- 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: cb78064a361dca0a730e3489b3eeb560a2117874cd488d03de829d440c5c1e9a
|
4
|
+
data.tar.gz: 472490913aed2ea0c6b2f96fc110a5e315d413212e69e47d43e104aefa17e7d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01c605facf1c040b685aab49390a0b77ea76f3335ae2ad99d90467321356ccf246ff8d67c8aded6c8f7502e1662efba168e85223b6de7eb31608fd7c5ebb3ff5
|
7
|
+
data.tar.gz: dc9769bc1fcdac6141e5a12b4d0cf760e49b5757a91702401dbc80da9c3eac3ac47d61fdd3c0a3e633721c5bfacc975bb721ee2a3db4c67f4013aa2423ec93ca
|
data/config/disable_all.yml
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
---
|
2
|
+
Migration/DepartmentName:
|
3
|
+
Enabled: false
|
2
4
|
Bundler/DuplicatedGem:
|
3
5
|
Enabled: false
|
4
6
|
Bundler/GemComment:
|
@@ -303,6 +305,8 @@ Lint/SafeNavigationWithEmpty:
|
|
303
305
|
Enabled: false
|
304
306
|
Lint/ScriptPermission:
|
305
307
|
Enabled: false
|
308
|
+
Lint/SendWithMixinArgument:
|
309
|
+
Enabled: false
|
306
310
|
Lint/ShadowedArgument:
|
307
311
|
Enabled: false
|
308
312
|
Lint/ShadowedException:
|
@@ -465,6 +469,8 @@ Style/DocumentationMethod:
|
|
465
469
|
Enabled: false
|
466
470
|
Style/Documentation:
|
467
471
|
Enabled: false
|
472
|
+
Style/DoubleCopDisableDirective:
|
473
|
+
Enabled: false
|
468
474
|
Style/DoubleNegation:
|
469
475
|
Enabled: false
|
470
476
|
Style/EachForSimpleLoop:
|
@@ -569,6 +575,8 @@ Style/MultilineMemoization:
|
|
569
575
|
Enabled: false
|
570
576
|
Style/MultilineTernaryOperator:
|
571
577
|
Enabled: false
|
578
|
+
Style/MultilineWhenThen:
|
579
|
+
Enabled: false
|
572
580
|
Style/MultipleComparison:
|
573
581
|
Enabled: false
|
574
582
|
Style/MutableConstant:
|
data/config/upstream.yml
CHANGED
@@ -1591,6 +1591,11 @@ Lint/ScriptPermission:
|
|
1591
1591
|
VersionAdded: '0.49'
|
1592
1592
|
VersionChanged: '0.50'
|
1593
1593
|
|
1594
|
+
Lint/SendWithMixinArgument:
|
1595
|
+
Description: 'Checks for `send` method when using mixin.'
|
1596
|
+
Enabled: true
|
1597
|
+
VersionAdded: '0.75'
|
1598
|
+
|
1594
1599
|
Lint/ShadowedArgument:
|
1595
1600
|
Description: 'Avoid reassigning arguments before they were used.'
|
1596
1601
|
Enabled: true
|
@@ -1662,6 +1667,7 @@ Lint/UnneededSplatExpansion:
|
|
1662
1667
|
Description: 'Checks for splat unnecessarily being called on literals.'
|
1663
1668
|
Enabled: true
|
1664
1669
|
VersionAdded: '0.43'
|
1670
|
+
VersionChanged: '0.74'
|
1665
1671
|
|
1666
1672
|
Lint/UnreachableCode:
|
1667
1673
|
Description: 'Unreachable code.'
|
@@ -1745,7 +1751,7 @@ Metrics/AbcSize:
|
|
1745
1751
|
branches, and conditions.
|
1746
1752
|
Reference:
|
1747
1753
|
- http://c2.com/cgi/wiki?AbcMetric
|
1748
|
-
- https://en.wikipedia.org/wiki/ABC_Software_Metric
|
1754
|
+
- https://en.wikipedia.org/wiki/ABC_Software_Metric
|
1749
1755
|
Enabled: true
|
1750
1756
|
VersionAdded: '0.27'
|
1751
1757
|
VersionChanged: '0.66'
|
@@ -1809,7 +1815,7 @@ Metrics/LineLength:
|
|
1809
1815
|
- https
|
1810
1816
|
# The IgnoreCopDirectives option causes the LineLength rule to ignore cop
|
1811
1817
|
# directives like '# rubocop: enable ...' when calculating a line's length.
|
1812
|
-
IgnoreCopDirectives:
|
1818
|
+
IgnoreCopDirectives: true
|
1813
1819
|
# The IgnoredPatterns option is a list of !ruby/regexp and/or string
|
1814
1820
|
# elements. Strings will be converted to Regexp objects. A line that matches
|
1815
1821
|
# any regular expression listed in this option will be ignored by LineLength.
|
@@ -1848,6 +1854,14 @@ Metrics/PerceivedComplexity:
|
|
1848
1854
|
VersionAdded: '0.25'
|
1849
1855
|
Max: 7
|
1850
1856
|
|
1857
|
+
################## Migration #############################
|
1858
|
+
|
1859
|
+
Migration/DepartmentName:
|
1860
|
+
Description: >-
|
1861
|
+
Check that cop names in rubocop:disable (etc) comments are
|
1862
|
+
given with department name.
|
1863
|
+
Enabled: false
|
1864
|
+
|
1851
1865
|
#################### Naming ##############################
|
1852
1866
|
|
1853
1867
|
Naming/AccessorMethodName:
|
@@ -1983,6 +1997,13 @@ Naming/MethodName:
|
|
1983
1997
|
SupportedStyles:
|
1984
1998
|
- snake_case
|
1985
1999
|
- camelCase
|
2000
|
+
# Method names matching patterns are always allowed.
|
2001
|
+
#
|
2002
|
+
# IgnoredPatterns:
|
2003
|
+
# - '\A\s*onSelectionBulkChange\s*'
|
2004
|
+
# - '\A\s*onSelectionCleared\s*'
|
2005
|
+
#
|
2006
|
+
IgnoredPatterns: []
|
1986
2007
|
|
1987
2008
|
Naming/PredicateName:
|
1988
2009
|
Description: 'Check the names of predicate methods.'
|
@@ -2557,6 +2578,11 @@ Style/DocumentationMethod:
|
|
2557
2578
|
- 'test/**/*'
|
2558
2579
|
RequireForNonPublicMethods: false
|
2559
2580
|
|
2581
|
+
Style/DoubleCopDisableDirective:
|
2582
|
+
Description: 'Checks for double rubocop:disable comments on a single line.'
|
2583
|
+
Enabled: true
|
2584
|
+
VersionAdded: '0.73'
|
2585
|
+
|
2560
2586
|
Style/DoubleNegation:
|
2561
2587
|
Description: 'Checks for uses of double negation (!!).'
|
2562
2588
|
StyleGuide: '#no-bang-bang'
|
@@ -2700,7 +2726,7 @@ Style/FormatStringToken:
|
|
2700
2726
|
- template
|
2701
2727
|
- unannotated
|
2702
2728
|
VersionAdded: '0.49'
|
2703
|
-
VersionChanged: '0.
|
2729
|
+
VersionChanged: '0.75'
|
2704
2730
|
|
2705
2731
|
Style/FrozenStringLiteralComment:
|
2706
2732
|
Description: >-
|
@@ -2893,6 +2919,7 @@ Style/MethodCallWithArgsParentheses:
|
|
2893
2919
|
VersionChanged: '0.61'
|
2894
2920
|
IgnoreMacros: true
|
2895
2921
|
IgnoredMethods: []
|
2922
|
+
IgnoredPatterns: []
|
2896
2923
|
IncludedMacros: []
|
2897
2924
|
AllowParenthesesInMultilineCall: false
|
2898
2925
|
AllowParenthesesInChaining: false
|
@@ -3043,6 +3070,12 @@ Style/MultilineTernaryOperator:
|
|
3043
3070
|
Enabled: true
|
3044
3071
|
VersionAdded: '0.9'
|
3045
3072
|
|
3073
|
+
Style/MultilineWhenThen:
|
3074
|
+
Description: 'Do not use then for multi-line when statement.'
|
3075
|
+
StyleGuide: '#no-then'
|
3076
|
+
Enabled: true
|
3077
|
+
VersionAdded: '0.73'
|
3078
|
+
|
3046
3079
|
Style/MultipleComparison:
|
3047
3080
|
Description: >-
|
3048
3081
|
Avoid comparing a variable with multiple items in a conditional,
|
@@ -3574,6 +3607,8 @@ Style/StringHashKeys:
|
|
3574
3607
|
StyleGuide: '#symbols-as-keys'
|
3575
3608
|
Enabled: false
|
3576
3609
|
VersionAdded: '0.52'
|
3610
|
+
VersionChanged: '0.75'
|
3611
|
+
Safe: false
|
3577
3612
|
|
3578
3613
|
Style/StringLiterals:
|
3579
3614
|
Description: 'Checks if uses of quotes match the configured preference.'
|
@@ -3892,8 +3927,9 @@ Style/YodaCondition:
|
|
3892
3927
|
- require_for_all_comparison_operators
|
3893
3928
|
# enforce yoda only for equality operators: `!=` and `==`
|
3894
3929
|
- require_for_equality_operators_only
|
3930
|
+
Safe: false
|
3895
3931
|
VersionAdded: '0.49'
|
3896
|
-
VersionChanged: '0.
|
3932
|
+
VersionChanged: '0.75'
|
3897
3933
|
|
3898
3934
|
Style/ZeroLengthPredicate:
|
3899
3935
|
Description: 'Use #empty? when testing for objects of length 0.'
|
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.14.0
|
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: 2019-08
|
11
|
+
date: 2019-11-08 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.75.1
|
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.75.1
|
69
69
|
description:
|
70
70
|
email:
|
71
71
|
- oss@chef.io
|