cookstyle 7.25.10 → 7.26.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/cookstyle.yml +8 -0
- data/config/disable_all.yml +8 -0
- data/config/upstream.yml +46 -1
- data/lib/cookstyle/version.rb +2 -2
- data/lib/rubocop/monkey_patches/directive_comment.rb +1 -1
- 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: fe0113118edcb59c64b2a176b5f4dc9e4880cedda9cdced9257bdf58901f7ad3
|
4
|
+
data.tar.gz: a0124092a6e81ef8062d6ef14e7deb18cd517ca44d26b03efbc28e6f367be220
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2be0d6a18f5e3db8a572d2561af13504b7cc752eca1e8fbd9d9d6a443a1d327c6110c93b5541f4c4df98469524f7715c6695bbe41c3489f5459590e194e1cf6
|
7
|
+
data.tar.gz: 24e0423ffdab5c801ebb640332f8cb9156f8069dfc4798b2130ca059d01e9f0b5e7962b422c857e66c303e00ec8054d22275afbb0acf6a2b3e792866de0a7322
|
data/config/cookstyle.yml
CHANGED
@@ -3035,3 +3035,11 @@ Lint/DeprecatedConstants:
|
|
3035
3035
|
# always turn on deprecation cops from rubocop
|
3036
3036
|
Lint/ErbNewArguments:
|
3037
3037
|
Enabled: true
|
3038
|
+
|
3039
|
+
# reduce file read complexity
|
3040
|
+
Style/FileRead:
|
3041
|
+
Enabled: true
|
3042
|
+
|
3043
|
+
# reduce file write complexity
|
3044
|
+
Style/FileWrite:
|
3045
|
+
Enabled: true
|
data/config/disable_all.yml
CHANGED
@@ -491,6 +491,8 @@ Naming/AccessorMethodName:
|
|
491
491
|
Enabled: false
|
492
492
|
Naming/AsciiIdentifiers:
|
493
493
|
Enabled: false
|
494
|
+
Naming/BlockForwarding:
|
495
|
+
Enabled: false
|
494
496
|
Naming/BlockParameterName:
|
495
497
|
Enabled: false
|
496
498
|
Naming/ClassAndModuleCamelCase:
|
@@ -641,6 +643,10 @@ Style/ExplicitBlockArgument:
|
|
641
643
|
Enabled: false
|
642
644
|
Style/ExponentialNotation:
|
643
645
|
Enabled: false
|
646
|
+
Style/FileRead:
|
647
|
+
Enabled: false
|
648
|
+
Style/FileWrite:
|
649
|
+
Enabled: false
|
644
650
|
Style/FloatDivision:
|
645
651
|
Enabled: false
|
646
652
|
Style/For:
|
@@ -705,6 +711,8 @@ Style/LambdaCall:
|
|
705
711
|
Enabled: false
|
706
712
|
Style/LineEndConcatenation:
|
707
713
|
Enabled: false
|
714
|
+
Style/MapToHash:
|
715
|
+
Enabled: false
|
708
716
|
Style/MethodCallWithoutArgsParentheses:
|
709
717
|
Enabled: false
|
710
718
|
Style/MethodCallWithArgsParentheses:
|
data/config/upstream.yml
CHANGED
@@ -78,6 +78,8 @@ AllCops:
|
|
78
78
|
# When specifying style guide URLs, any paths and/or fragments will be
|
79
79
|
# evaluated relative to the base URL.
|
80
80
|
StyleGuideBaseURL: https://rubystyle.guide
|
81
|
+
# Documentation URLs will be constructed using the base URL.
|
82
|
+
DocumentationBaseURL: https://docs.rubocop.org/rubocop
|
81
83
|
# Extra details are not displayed in offense messages by default. Change
|
82
84
|
# behavior by overriding ExtraDetails, or by giving the
|
83
85
|
# `-E/--extra-details` option.
|
@@ -449,7 +451,11 @@ Layout/ClosingParenthesisIndentation:
|
|
449
451
|
Layout/CommentIndentation:
|
450
452
|
Description: 'Indentation of comments.'
|
451
453
|
Enabled: true
|
454
|
+
# When true, allows comments to have extra indentation if that aligns them
|
455
|
+
# with a comment on the preceding line.
|
456
|
+
AllowForAlignment: false
|
452
457
|
VersionAdded: '0.49'
|
458
|
+
VersionChanged: '1.24'
|
453
459
|
|
454
460
|
Layout/ConditionPosition:
|
455
461
|
Description: >-
|
@@ -1796,7 +1802,9 @@ Lint/ImplicitStringConcatenation:
|
|
1796
1802
|
Lint/IncompatibleIoSelectWithFiberScheduler:
|
1797
1803
|
Description: 'Checks for `IO.select` that is incompatible with Fiber Scheduler.'
|
1798
1804
|
Enabled: pending
|
1805
|
+
SafeAutoCorrect: false
|
1799
1806
|
VersionAdded: '1.21'
|
1807
|
+
VersionChanged: '1.24'
|
1800
1808
|
|
1801
1809
|
Lint/IneffectiveAccessModifier:
|
1802
1810
|
Description: >-
|
@@ -2479,6 +2487,16 @@ Naming/BinaryOperatorParameterName:
|
|
2479
2487
|
VersionAdded: '0.50'
|
2480
2488
|
VersionChanged: '1.2'
|
2481
2489
|
|
2490
|
+
Naming/BlockForwarding:
|
2491
|
+
Description: 'Use anonymous block forwarding.'
|
2492
|
+
StyleGuide: '#block-forwarding'
|
2493
|
+
Enabled: pending
|
2494
|
+
VersionAdded: '1.24'
|
2495
|
+
EnforcedStyle: anonymous
|
2496
|
+
SupportedStyles:
|
2497
|
+
- anonymous
|
2498
|
+
- explicit
|
2499
|
+
|
2482
2500
|
Naming/BlockParameterName:
|
2483
2501
|
Description: >-
|
2484
2502
|
Checks for block parameter names that contain capital letters,
|
@@ -3492,6 +3510,18 @@ Style/ExponentialNotation:
|
|
3492
3510
|
- engineering
|
3493
3511
|
- integral
|
3494
3512
|
|
3513
|
+
Style/FileRead:
|
3514
|
+
Description: 'Favor `File.(bin)read` convenience methods.'
|
3515
|
+
StyleGuide: '#file-read'
|
3516
|
+
Enabled: pending
|
3517
|
+
VersionAdded: '1.24'
|
3518
|
+
|
3519
|
+
Style/FileWrite:
|
3520
|
+
Description: 'Favor `File.(bin)write` convenience methods.'
|
3521
|
+
StyleGuide: '#file-write'
|
3522
|
+
Enabled: pending
|
3523
|
+
VersionAdded: '1.24'
|
3524
|
+
|
3495
3525
|
Style/FloatDivision:
|
3496
3526
|
Description: 'For performing float division, coerce one side only.'
|
3497
3527
|
StyleGuide: '#float-division'
|
@@ -3650,7 +3680,7 @@ Style/HashSyntax:
|
|
3650
3680
|
StyleGuide: '#hash-literals'
|
3651
3681
|
Enabled: true
|
3652
3682
|
VersionAdded: '0.9'
|
3653
|
-
VersionChanged: '
|
3683
|
+
VersionChanged: '1.24'
|
3654
3684
|
EnforcedStyle: ruby19
|
3655
3685
|
SupportedStyles:
|
3656
3686
|
# checks for 1.9 syntax (e.g. {a: 1}) for all symbol keys
|
@@ -3661,6 +3691,13 @@ Style/HashSyntax:
|
|
3661
3691
|
- no_mixed_keys
|
3662
3692
|
# enforces both ruby19 and no_mixed_keys styles
|
3663
3693
|
- ruby19_no_mixed_keys
|
3694
|
+
# Force hashes that have a hash value omission
|
3695
|
+
EnforcedShorthandSyntax: always
|
3696
|
+
SupportedShorthandSyntax:
|
3697
|
+
# forces use of the 3.1 syntax (e.g. {foo:}) when the hash key and value are the same.
|
3698
|
+
- always
|
3699
|
+
# forces use of explicit hash literal value.
|
3700
|
+
- never
|
3664
3701
|
# Force hashes that have a symbol value to use hash rockets
|
3665
3702
|
UseHashRocketsWithSymbolValues: false
|
3666
3703
|
# Do not suggest { a?: 1 } over { :a? => 1 } in ruby19 style
|
@@ -3837,6 +3874,12 @@ Style/LineEndConcatenation:
|
|
3837
3874
|
VersionAdded: '0.18'
|
3838
3875
|
VersionChanged: '0.64'
|
3839
3876
|
|
3877
|
+
Style/MapToHash:
|
3878
|
+
Description: 'Prefer `to_h` with a block over `map.to_h`.'
|
3879
|
+
Enabled: pending
|
3880
|
+
VersionAdded: '1.24'
|
3881
|
+
Safe: false
|
3882
|
+
|
3840
3883
|
Style/MethodCallWithArgsParentheses:
|
3841
3884
|
Description: 'Use parentheses for method calls with arguments.'
|
3842
3885
|
StyleGuide: '#method-invocation-parens'
|
@@ -4205,6 +4248,8 @@ Style/NumericLiterals:
|
|
4205
4248
|
VersionChanged: '0.48'
|
4206
4249
|
MinDigits: 5
|
4207
4250
|
Strict: false
|
4251
|
+
# You can specify allowed numbers. (e.g. port number 3000, 8080, and etc)
|
4252
|
+
AllowedNumbers: []
|
4208
4253
|
|
4209
4254
|
Style/NumericPredicate:
|
4210
4255
|
Description: >-
|
data/lib/cookstyle/version.rb
CHANGED
@@ -3,7 +3,7 @@ module RuboCop
|
|
3
3
|
# we're monkey patching the config regex to allow for # cookstyle: disable whatever
|
4
4
|
# in addition to the # rubocop: disable whatever that comes with RuboCop
|
5
5
|
class DirectiveComment
|
6
|
-
remove_const(
|
6
|
+
remove_const(:DIRECTIVE_COMMENT_REGEXP)
|
7
7
|
DIRECTIVE_COMMENT_REGEXP = Regexp.new(
|
8
8
|
"# (?:rubocop|cookstyle) : ((?:disable|enable|todo))\\b #{COPS_PATTERN}"
|
9
9
|
.gsub(' ', '\s*')
|
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.26.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thom May
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-
|
12
|
+
date: 2021-12-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rubocop
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - '='
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 1.
|
20
|
+
version: 1.24.1
|
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.24.1
|
28
28
|
description:
|
29
29
|
email:
|
30
30
|
- thom@chef.io
|