Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump Hugo module chef/cookstyle:main to latest stable. #4235

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generated/_vendor/modules.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# github.com/chef/cookstyle/docs-chef-io v0.0.0-20230825054940-2971520aef80
# github.com/chef/cookstyle/docs-chef-io v0.0.0-20240206215225-64410f1feded
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
- [MacosUserdefaultsGlobalProperty](/workstation/cookstyle/cops/chef_deprecations_macosuserdefaultsglobalproperty)
- [NamePropertyWithDefaultValue](/workstation/cookstyle/cops/chef_deprecations_namepropertywithdefaultvalue)
- [NodeDeepFetch](/workstation/cookstyle/cops/chef_deprecations_nodedeepfetch)
- [NodeMethodsInsteadofAttributes](/workstation/cookstyle/cops/chef_deprecations_nodemethodsinsteadofattributes)

Check failure on line 111 in generated/generated_content/workstation/cookstyle/cops/_index.md

View workflow job for this annotation

GitHub Actions / cspell-action

Unknown word (Insteadof)
- [NodeSet](/workstation/cookstyle/cops/chef_deprecations_nodeset)
- [NodeSetUnless](/workstation/cookstyle/cops/chef_deprecations_nodesetunless)
- [NodeSetWithoutLevel](/workstation/cookstyle/cops/chef_deprecations_nodesetwithoutlevel)
Expand Down Expand Up @@ -149,7 +149,7 @@
- [ChefVaultUsed](/workstation/cookstyle/cops/chef_effortless_chefvaultused)
- [CookbookUsesDatabags](/workstation/cookstyle/cops/chef_effortless_cookbookusesdatabags)
- [CookbookUsesEnvironments](/workstation/cookstyle/cops/chef_effortless_cookbookusesenvironments)
- [CookbookUsesPolicygroups](/workstation/cookstyle/cops/chef_effortless_cookbookusespolicygroups)

Check failure on line 152 in generated/generated_content/workstation/cookstyle/cops/_index.md

View workflow job for this annotation

GitHub Actions / cspell-action

Unknown word (Policygroups)
- [CookbookUsesRoles](/workstation/cookstyle/cops/chef_effortless_cookbookusesroles)
- [CookbookUsesSearch](/workstation/cookstyle/cops/chef_effortless_cookbookusessearch)
- [DependsChefVault](/workstation/cookstyle/cops/chef_effortless_dependschefvault)
Expand Down Expand Up @@ -227,14 +227,14 @@
- [UseChefLanguageCloudHelpers](/workstation/cookstyle/cops/chef_modernize_usecheflanguagecloudhelpers)
- [UseChefLanguageEnvHelpers](/workstation/cookstyle/cops/chef_modernize_usecheflanguageenvhelpers)
- [UseChefLanguageSystemdHelper](/workstation/cookstyle/cops/chef_modernize_usecheflanguagesystemdhelper)
- [UseMultipackageInstalls](/workstation/cookstyle/cops/chef_modernize_usemultipackageinstalls)

Check failure on line 230 in generated/generated_content/workstation/cookstyle/cops/_index.md

View workflow job for this annotation

GitHub Actions / cspell-action

Unknown word (Multipackage)
- [UseRequireRelative](/workstation/cookstyle/cops/chef_modernize_userequirerelative)
- [UsesZypperRepo](/workstation/cookstyle/cops/chef_modernize_useszypperrepo)
- [WhyRunSupportedTrue](/workstation/cookstyle/cops/chef_modernize_whyrunsupportedtrue)
- [WindowsRegistryUAC](/workstation/cookstyle/cops/chef_modernize_windowsregistryuac)
- [WindowsScResource](/workstation/cookstyle/cops/chef_modernize_windowsscresource)
- [WindowsZipfileUsage](/workstation/cookstyle/cops/chef_modernize_windowszipfileusage)

Check failure on line 236 in generated/generated_content/workstation/cookstyle/cops/_index.md

View workflow job for this annotation

GitHub Actions / cspell-action

Unknown word (Zipfile)
- [ZipfileResource](/workstation/cookstyle/cops/chef_modernize_zipfileresource)

Check failure on line 237 in generated/generated_content/workstation/cookstyle/cops/_index.md

View workflow job for this annotation

GitHub Actions / cspell-action

Unknown word (Zipfile)

## Chef/RedundantCode

Expand Down Expand Up @@ -264,6 +264,16 @@
- [UnnecessaryNameProperty](/workstation/cookstyle/cops/chef_redundantcode_unnecessarynameproperty)
- [UseCreateIfMissing](/workstation/cookstyle/cops/chef_redundantcode_usecreateifmissing)

## Chef/Ruby

<nil>

- [GemspecLicense](/workstation/cookstyle/cops/chef_ruby_gemspeclicense)
- [GemspecRequireRubygems](/workstation/cookstyle/cops/chef_ruby_gemspecrequirerubygems)
- [LegacyPowershellOutMethods](/workstation/cookstyle/cops/chef_ruby_legacypowershelloutmethods)
- [RequireNetHttps](/workstation/cookstyle/cops/chef_ruby_requirenethttps)
- [UnlessDefinedRequire](/workstation/cookstyle/cops/chef_ruby_unlessdefinedrequire)

## Chef/Security

These cops detect potential security issues in your cookbook code.
Expand All @@ -287,7 +297,7 @@
These cops check for stylistic problems in your cookbook code.

- [AttributeKeys](/workstation/cookstyle/cops/chef_style_attributekeys)
- [ChefWhaaat](/workstation/cookstyle/cops/chef_style_chefwhaaat)

Check failure on line 300 in generated/generated_content/workstation/cookstyle/cops/_index.md

View workflow job for this annotation

GitHub Actions / cspell-action

Unknown word (Whaaat)
- [CommentFormat](/workstation/cookstyle/cops/chef_style_commentformat)
- [CommentSentenceSpacing](/workstation/cookstyle/cops/chef_style_commentsentencespacing)
- [CopyrightCommentFormat](/workstation/cookstyle/cops/chef_style_copyrightcommentformat)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
+++
title = "Chef/Ruby/GemspecLicense"
aliases = ["/workstation/cookstyle/chef_ruby_gemspeclicense/"]

Check failure on line 3 in generated/generated_content/workstation/cookstyle/cops/chef_ruby_gemspeclicense.md

View workflow job for this annotation

GitHub Actions / cspell-action

Unknown word (gemspeclicense)

+++

<!-- This content is automatically generated. See https://github.com/chef/chef-web-docs/blob/main/generated/README.md -->

[Cookstyle cops page](/workstation/cookstyle/cops/)

The Cookstyle cops department: `Chef/Ruby`

| Enabled by default | Supports autocorrection | Target Chef Version |
| --- | --- | --- |
| Not Enabled | No | All Versions |

All gemspec files should define their license.

## Examples

# good
spec.license = "Apache-2.0"
```
## Configurable attributes
<table>
<tbody><tr>
<th>Name</th>
<th>Default value</th>
<th>Configurable values</th>
</tr>
<tr>
<td style="text-align:center">Version Added</td>
<td style="text-align:center"><nil></td>
<td style="text-align:center">String</td>
</tr>
<tr><td style="text-align:center">Include</td>
<td style="text-align:center"><ul>
</ul>
</td>
<td style="text-align:center">Array</td>
</tr></tbody></table>
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
+++
title = "Chef/Ruby/GemspecRequireRubygems"
aliases = ["/workstation/cookstyle/chef_ruby_gemspecrequirerubygems/"]

Check failure on line 3 in generated/generated_content/workstation/cookstyle/cops/chef_ruby_gemspecrequirerubygems.md

View workflow job for this annotation

GitHub Actions / cspell-action

Unknown word (gemspecrequirerubygems)

+++

<!-- This content is automatically generated. See https://github.com/chef/chef-web-docs/blob/main/generated/README.md -->

[Cookstyle cops page](/workstation/cookstyle/cops/)

The Cookstyle cops department: `Chef/Ruby`

| Enabled by default | Supports autocorrection | Target Chef Version |
| --- | --- | --- |
| Not Enabled | Yes | All Versions |

Rubygems does not need to be required in a Gemspec. It's already loaded out of the box in Ruby now.

## Examples
<nil>

## Configurable attributes

<table>
<tbody><tr>
<th>Name</th>
<th>Default value</th>
<th>Configurable values</th>
</tr>
<tr>
<td style="text-align:center">Version Added</td>
<td style="text-align:center"><nil></td>
<td style="text-align:center">String</td>
</tr>
<tr><td style="text-align:center">Include</td>
<td style="text-align:center"><ul>
</ul>
</td>
<td style="text-align:center">Array</td>
</tr></tbody></table>
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
+++
title = "Chef/Ruby/LegacyPowershellOutMethods"
aliases = ["/workstation/cookstyle/chef_ruby_legacypowershelloutmethods/"]

Check failure on line 3 in generated/generated_content/workstation/cookstyle/cops/chef_ruby_legacypowershelloutmethods.md

View workflow job for this annotation

GitHub Actions / cspell-action

Unknown word (legacypowershelloutmethods)

+++

<!-- This content is automatically generated. See https://github.com/chef/chef-web-docs/blob/main/generated/README.md -->

[Cookstyle cops page](/workstation/cookstyle/cops/)

The Cookstyle cops department: `Chef/Ruby`

| Enabled by default | Supports autocorrection | Target Chef Version |
| --- | --- | --- |
| Not Enabled | No | All Versions |

Use powershell_exec!/powershell_exec instead of powershell_out!/powershell_out. The new
methods don't spawn 2 shells per shellout and instead use .NET bindings to call PS directly.

## Examples
<nil>

## Configurable attributes

<table>
<tbody><tr>
<th>Name</th>
<th>Default value</th>
<th>Configurable values</th>
</tr>
<tr>
<td style="text-align:center">Version Added</td>
<td style="text-align:center"><nil></td>
<td style="text-align:center">String</td>
</tr>
<tr><td style="text-align:center">Include</td>
<td style="text-align:center"><ul>
</ul>
</td>
<td style="text-align:center">Array</td>
</tr></tbody></table>
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
+++
title = "Chef/Ruby/RequireNetHttps"
aliases = ["/workstation/cookstyle/chef_ruby_requirenethttps/"]

Check failure on line 3 in generated/generated_content/workstation/cookstyle/cops/chef_ruby_requirenethttps.md

View workflow job for this annotation

GitHub Actions / cspell-action

Unknown word (requirenethttps)

+++

<!-- This content is automatically generated. See https://github.com/chef/chef-web-docs/blob/main/generated/README.md -->

[Cookstyle cops page](/workstation/cookstyle/cops/)

The Cookstyle cops department: `Chef/Ruby`

| Enabled by default | Supports autocorrection | Target Chef Version |
| --- | --- | --- |
| Not Enabled | Yes | All Versions |

net/https is deprecated and just includes net/http and openssl. We should include those directly instead.

## Examples

# bad
require 'net/https'

# good
require 'net/http'
require 'openssl'
```
## Configurable attributes
<table>
<tbody><tr>
<th>Name</th>
<th>Default value</th>
<th>Configurable values</th>
</tr>
<tr>
<td style="text-align:center">Version Added</td>
<td style="text-align:center"><nil></td>
<td style="text-align:center">String</td>
</tr>
<tr><td style="text-align:center">Include</td>
<td style="text-align:center"><ul>
</ul>
</td>
<td style="text-align:center">Array</td>
</tr></tbody></table>
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
+++
title = "Chef/Ruby/UnlessDefinedRequire"
aliases = ["/workstation/cookstyle/chef_ruby_unlessdefinedrequire/"]

+++

<!-- This content is automatically generated. See https://github.com/chef/chef-web-docs/blob/main/generated/README.md -->

[Cookstyle cops page](/workstation/cookstyle/cops/)

The Cookstyle cops department: `Chef/Ruby`

| Enabled by default | Supports autocorrection | Target Chef Version |
| --- | --- | --- |
| Not Enabled | Yes | All Versions |

Rubygems is VERY slow to require gems even if they've already been loaded. To work around this
wrap your require statement with an `if defined?()` check.

## Examples
<nil>

## Configurable attributes

<table>
<tbody><tr>
<th>Name</th>
<th>Default value</th>
<th>Configurable values</th>
</tr>
<tr>
<td style="text-align:center">Version Added</td>
<td style="text-align:center"><nil></td>
<td style="text-align:center">String</td>
</tr>
<tr><td style="text-align:center">Include</td>
<td style="text-align:center"><ul>
</ul>
</td>
<td style="text-align:center">Array</td>
</tr></tbody></table>
4 changes: 2 additions & 2 deletions generated/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ module github.com/chef/chef-web-docs/generated
go 1.17

require (
github.com/chef/cookstyle v7.32.3+incompatible // indirect
github.com/chef/cookstyle/docs-chef-io v0.0.0-20230825054940-2971520aef80 // indirect
github.com/chef/cookstyle v7.32.8+incompatible // indirect
github.com/chef/cookstyle/docs-chef-io v0.0.0-20240206215225-64410f1feded // indirect
)
Loading
Loading