cookstyle 8.1.2 → 8.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b0a0f48e51e07c907ee52c36eb20c24b03e250431e6dc43da57da92d8bab57f
|
4
|
+
data.tar.gz: 7cdc395630dcb1218803ac218c59b8134f440ec3ce43781529e23f73b32539ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e5c89d3d080c42b174bca6c289afb0f20de9f1198e1d058a815494778b552bb4ce1180972b2e18079f10010f11bf967b3a35c723c2486ba64db332f70209721
|
7
|
+
data.tar.gz: 876cb3847fac787f1f48dd7897ea006893cc9c6009a1ced85e46a5afe9727b12504f11dec30687601cd86233ba35a1bf0d9902a0462d6b9e82b814f1caccaf28
|
data/config/chefstyle.yml
CHANGED
@@ -477,7 +477,7 @@ Layout/TrailingWhitespace:
|
|
477
477
|
Style/RedundantCapitalW:
|
478
478
|
Enabled: true
|
479
479
|
Style/RedundantInterpolation:
|
480
|
-
Enabled: false # buggy: https://github.com/rubocop
|
480
|
+
Enabled: false # buggy: https://github.com/rubocop/rubocop/issues/6099
|
481
481
|
#Style/RedundantPercentQ: # would like to enable this one but its buggy as of 0.35.1
|
482
482
|
# Enabled: true
|
483
483
|
Naming/VariableName:
|
data/config/cookstyle.yml
CHANGED
@@ -171,7 +171,7 @@ Chef/Style/NegatingOnlyIf:
|
|
171
171
|
|
172
172
|
Chef/Style/IncludeRecipeWithParentheses:
|
173
173
|
Description: There is no need to wrap the recipe in parentheses when using the include_recipe helper
|
174
|
-
StyleGuide: '
|
174
|
+
StyleGuide: 'chef_style_includerecipewithparentheses'
|
175
175
|
VersionAdded: '6.11.0'
|
176
176
|
Enabled: true
|
177
177
|
Exclude:
|
@@ -208,7 +208,7 @@ Chef/Correctness/NodeNormal:
|
|
208
208
|
|
209
209
|
Chef/Correctness/NodeNormalUnless:
|
210
210
|
Description: Do not use the node.normal_unless method
|
211
|
-
StyleGuide: '
|
211
|
+
StyleGuide: 'chef_correctness_nodenormalunless'
|
212
212
|
Enabled: true
|
213
213
|
VersionAdded: '5.1.0'
|
214
214
|
Exclude:
|
@@ -402,7 +402,7 @@ Chef/Correctness/ChefApplicationFatal:
|
|
402
402
|
|
403
403
|
Chef/Correctness/PowershellScriptDeleteFile:
|
404
404
|
Description: Use the `file` or `directory` resources built into Chef Infra Client with the :delete action to remove files/directories instead of using Remove-Item in a powershell_script resource
|
405
|
-
StyleGuide: '
|
405
|
+
StyleGuide: 'chef_correctness_powershellscriptdeletefile'
|
406
406
|
Enabled: true
|
407
407
|
VersionAdded: '6.0.0'
|
408
408
|
Exclude:
|
@@ -599,7 +599,7 @@ Chef/Sharing/EmptyMetadataField:
|
|
599
599
|
|
600
600
|
Chef/Sharing/IncludePropertyDescriptions:
|
601
601
|
Description: Properties should include description fields to allow automated documentation. Requires Chef Infra Client 13.9 or later.
|
602
|
-
StyleGuide: '
|
602
|
+
StyleGuide: 'chef_sharing_includepropertydescriptions'
|
603
603
|
Enabled: false
|
604
604
|
VersionAdded: '6.1.0'
|
605
605
|
Include:
|
@@ -1082,7 +1082,7 @@ Chef/Deprecations/LogResourceNotifications:
|
|
1082
1082
|
|
1083
1083
|
Chef/Deprecations/HWRPWithoutProvides:
|
1084
1084
|
Description: In Chef Infra Client 16 and later a legacy HWRP resource must use `provides` to define how the resource is called in recipes or other resources. To maintain compatibility with Chef Infra Client < 16 use both `resource_name` and `provides`.
|
1085
|
-
StyleGuide: '
|
1085
|
+
StyleGuide: 'chef_deprecations_hwrpwithoutprovides'
|
1086
1086
|
Enabled: true
|
1087
1087
|
VersionAdded: '6.0.0'
|
1088
1088
|
VersionChanged: '6.8.0'
|
@@ -1173,7 +1173,7 @@ Chef/Deprecations/MacosUserdefaultsGlobalProperty:
|
|
1173
1173
|
|
1174
1174
|
Chef/Deprecations/CookbooksDependsOnSelf:
|
1175
1175
|
Description: A cookbook cannot depend on itself in Chef Infra Client 13 or later.
|
1176
|
-
StyleGuide: '
|
1176
|
+
StyleGuide: 'chef_deprecations_cookbooksdependsonself'
|
1177
1177
|
Enabled: true
|
1178
1178
|
VersionAdded: '5.2.0'
|
1179
1179
|
VersionChanged: '6.16.0'
|
@@ -1861,7 +1861,7 @@ Chef/Modernize/NodeRolesInclude:
|
|
1861
1861
|
|
1862
1862
|
Chef/Modernize/RespondToCompileTime:
|
1863
1863
|
Description: There is no need to check if the chef_gem resource supports compile_time as Chef Infra Client 12.1 and later support the compile_time property.
|
1864
|
-
StyleGuide: '
|
1864
|
+
StyleGuide: 'chef_modernize_respondtocompiletime'
|
1865
1865
|
Enabled: true
|
1866
1866
|
VersionAdded: '6.3.0'
|
1867
1867
|
Exclude:
|
@@ -2269,7 +2269,7 @@ Chef/Effortless/CookbookUsesDatabags:
|
|
2269
2269
|
# https://github.com/chef/cookstyle/issues/346
|
2270
2270
|
Chef/Effortless/ChefVaultUsed:
|
2271
2271
|
Description: Cookbook uses Chef Vault, which cannot be used in the Effortless Infra pattern
|
2272
|
-
StyleGuide: '
|
2272
|
+
StyleGuide: 'chef_effortless_chefvaultused'
|
2273
2273
|
Enabled: false
|
2274
2274
|
VersionAdded: '6.19'
|
2275
2275
|
Exclude:
|
@@ -2279,7 +2279,7 @@ Chef/Effortless/ChefVaultUsed:
|
|
2279
2279
|
# https://github.com/chef/cookstyle/issues/346
|
2280
2280
|
Chef/Effortless/DependsChefVault:
|
2281
2281
|
Description: Cookbook depends on Chef Vault, which cannot be used in the Effortless Infra pattern
|
2282
|
-
StyleGuide: '
|
2282
|
+
StyleGuide: 'chef_effortless_dependschefvault'
|
2283
2283
|
Enabled: false
|
2284
2284
|
VersionAdded: '6.19'
|
2285
2285
|
Include:
|
@@ -3019,7 +3019,7 @@ Lint/BinaryOperatorWithIdenticalOperands:
|
|
3019
3019
|
Enabled: true
|
3020
3020
|
|
3021
3021
|
# returning at the top level with an arg is invalid
|
3022
|
-
# @TODO we can enable this once this is fixed: https://github.com/rubocop
|
3022
|
+
# @TODO we can enable this once this is fixed: https://github.com/rubocop/rubocop/issues/8462
|
3023
3023
|
# Lint/TopLevelReturnWithArgument:
|
3024
3024
|
# Enabled: true
|
3025
3025
|
|
data/lib/cookstyle/version.rb
CHANGED
@@ -38,7 +38,7 @@ module RuboCop
|
|
38
38
|
add_offense(range, severity: :warning)
|
39
39
|
end
|
40
40
|
|
41
|
-
# An empty / simple TOML file can also be
|
41
|
+
# An empty / simple TOML file can also be syntactically valid Ruby, so
|
42
42
|
# RuboCop may start an investigation instead of calling on_other_file.
|
43
43
|
alias_method :on_new_investigation, :on_other_file
|
44
44
|
end
|
@@ -49,7 +49,7 @@ module RuboCop
|
|
49
49
|
PATTERN
|
50
50
|
|
51
51
|
def on_send(node)
|
52
|
-
# The need for this goes away once https://github.com/rubocop
|
52
|
+
# The need for this goes away once https://github.com/rubocop/rubocop/pull/8365 is pulled into Cookstyle
|
53
53
|
if node.method?(:libarchive_file)
|
54
54
|
add_offense(node, severity: :refactor) do |corrector|
|
55
55
|
corrector.replace(node, node.source.gsub('libarchive_file', 'archive_file'))
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cookstyle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.1.
|
4
|
+
version: 8.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thom May
|
8
8
|
- Tim Smith
|
9
|
+
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
+
date: 2025-05-30 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: rubocop
|
@@ -16,14 +17,15 @@ dependencies:
|
|
16
17
|
requirements:
|
17
18
|
- - '='
|
18
19
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.75.
|
20
|
+
version: 1.75.8
|
20
21
|
type: :runtime
|
21
22
|
prerelease: false
|
22
23
|
version_requirements: !ruby/object:Gem::Requirement
|
23
24
|
requirements:
|
24
25
|
- - '='
|
25
26
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.75.
|
27
|
+
version: 1.75.8
|
28
|
+
description:
|
27
29
|
email:
|
28
30
|
- thom@chef.io
|
29
31
|
- tsmith84@gmail.com
|
@@ -322,6 +324,7 @@ metadata:
|
|
322
324
|
source_code_uri: https://github.com/chef/cookstyle
|
323
325
|
documentation_uri: https://docs.chef.io/workstation/cookstyle/
|
324
326
|
bug_tracker_uri: https://github.com/chef/cookstyle/issues
|
327
|
+
post_install_message:
|
325
328
|
rdoc_options: []
|
326
329
|
require_paths:
|
327
330
|
- lib
|
@@ -336,7 +339,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
336
339
|
- !ruby/object:Gem::Version
|
337
340
|
version: '0'
|
338
341
|
requirements: []
|
339
|
-
rubygems_version: 3.
|
342
|
+
rubygems_version: 3.3.7
|
343
|
+
signing_key:
|
340
344
|
specification_version: 4
|
341
345
|
summary: Cookstyle is a code linting tool that helps you to write better Chef Infra
|
342
346
|
cookbooks by detecting and automatically correcting style, syntax, and logic mistakes
|