Skip to content

Commit

Permalink
Bump version to 7.32.7 by Chef Expeditor
Browse files Browse the repository at this point in the history
Obvious fix; these changes are the result of automation not creative thinking.
  • Loading branch information
chef-ci committed Jan 23, 2024
1 parent 936d856 commit 81327f8
Show file tree
Hide file tree
Showing 9 changed files with 75 additions and 6 deletions.
7 changes: 4 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# Cookstyle Changelog

<!-- latest_release 7.32.6 -->
## [v7.32.6](https://github.com/chef/cookstyle/tree/v7.32.6) (2023-11-29)
<!-- latest_release 7.32.7 -->
## [v7.32.7](https://github.com/chef/cookstyle/tree/v7.32.7) (2024-01-23)

#### Merged Pull Requests
- Remove docs team as required for md here [#966](https://github.com/chef/cookstyle/pull/966) ([tpowell-progress](https://github.com/tpowell-progress))
- [chefstyle] import Chefstyle cops and config [#968](https://github.com/chef/cookstyle/pull/968) ([dafyddcrosby](https://github.com/dafyddcrosby))
<!-- latest_release -->

<!-- release_rollup since=7.32.2 -->
### Changes not yet released to rubygems.org

#### Merged Pull Requests
- [chefstyle] import Chefstyle cops and config [#968](https://github.com/chef/cookstyle/pull/968) ([dafyddcrosby](https://github.com/dafyddcrosby)) <!-- 7.32.7 -->
- Remove docs team as required for md here [#966](https://github.com/chef/cookstyle/pull/966) ([tpowell-progress](https://github.com/tpowell-progress)) <!-- 7.32.6 -->
- Simplify setting default cops [#965](https://github.com/chef/cookstyle/pull/965) ([dafyddcrosby](https://github.com/dafyddcrosby)) <!-- 7.32.5 -->
- Update README.md [#964](https://github.com/chef/cookstyle/pull/964) ([snohio](https://github.com/snohio)) <!-- 7.32.4 -->
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

Cookstyle is a [code linting](https://en.wikipedia.org/wiki/Lint_%28software%29) tool that helps you to write better Chef Infra cookbooks and InSpec profiles by detecting and automatically correcting style, syntax, logic, and security mistakes in your code.

Cookstyle is powered by the [RuboCop](https://www.rubocop.org) linting engine. RuboCop ships with over three-hundred rules, or cops, designed to detect common Ruby coding mistakes and enforce a common coding style. We've customized Cookstyle with a subset of those cops that we believe are perfectly tailored for cookbook development. We also ship **254 Chef Infra specific cops** that catch common cookbook coding mistakes, cleanup portions of code that are no longer necessary, and detect deprecations that prevent cookbooks from running on the latest releases of Chef Infra Client.
Cookstyle is powered by the [RuboCop](https://www.rubocop.org) linting engine. RuboCop ships with over three-hundred rules, or cops, designed to detect common Ruby coding mistakes and enforce a common coding style. We've customized Cookstyle with a subset of those cops that we believe are perfectly tailored for cookbook development. We also ship **259 Chef Infra specific cops** that catch common cookbook coding mistakes, cleanup portions of code that are no longer necessary, and detect deprecations that prevent cookbooks from running on the latest releases of Chef Infra Client.

For complete usage documentation along with documentation for all the included cops see https://docs.chef.io/workstation/cookstyle/

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.32.6
7.32.7
14 changes: 14 additions & 0 deletions docs-chef-io/assets/cookstyle/cops_chef_ruby_gemspeclicense.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
short_name: GemspecLicense
full_name: Chef/Ruby/GemspecLicense
department: Chef/Ruby
description: All gemspec files should define their license.
autocorrection: false
target_chef_version: All Versions
examples: |2-
# good
spec.license = "Apache-2.0"
```
version_added:
enabled: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
short_name: GemspecRequireRubygems
full_name: Chef/Ruby/GemspecRequireRubygems
department: Chef/Ruby
description: Rubygems does not need to be required in a Gemspec. It's already loaded
out of the box in Ruby now.
autocorrection: true
target_chef_version: All Versions
examples:
version_added:
enabled: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
short_name: LegacyPowershellOutMethods
full_name: Chef/Ruby/LegacyPowershellOutMethods
department: Chef/Ruby
description: |-
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.
autocorrection: false
target_chef_version: All Versions
examples:
version_added:
enabled: false
19 changes: 19 additions & 0 deletions docs-chef-io/assets/cookstyle/cops_chef_ruby_requirenethttps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
short_name: RequireNetHttps
full_name: Chef/Ruby/RequireNetHttps
department: Chef/Ruby
description: net/https is deprecated and just includes net/http and openssl. We should
include those directly instead.
autocorrection: true
target_chef_version: All Versions
examples: |2-
# bad
require 'net/https'
# good
require 'net/http'
require 'openssl'
```
version_added:
enabled: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
short_name: UnlessDefinedRequire
full_name: Chef/Ruby/UnlessDefinedRequire
department: Chef/Ruby
description: |-
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.
autocorrection: true
target_chef_version: All Versions
examples:
version_added:
enabled: false
2 changes: 1 addition & 1 deletion lib/cookstyle/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true
module Cookstyle
VERSION = "7.32.6" # rubocop: disable Style/StringLiterals
VERSION = "7.32.7" # rubocop: disable Style/StringLiterals
RUBOCOP_VERSION = '1.25.1'
end

0 comments on commit 81327f8

Please sign in to comment.