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

Add Cookstyle 6.5 release notes #631

Merged
merged 2 commits into from
May 19, 2020
Merged
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
36 changes: 36 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,39 @@
## Cookstyle 6.5

### 2 New Cops

#### ChefModernize/ShellOutHelper

The `ChefModernize/ShellOutHelper` cop detects cookbooks that use `Mixlib::ShellOut.new('foo').run_command` instead of the `shell_out('foo')` helper included in Chef Infra Client 12.11 and later.

`Enabled by default`: True

`Autocorrects`: Yes

#### ChefDeprecations/Ruby27KeywordArgumentWarnings

The `ChefDeprecations/Ruby27KeywordArgumentWarnings` cop detects cookbooks that use the `shell_out` helper with shellout options within hash braces. Using braces in this helper will result in Ruby 2.7 deprecation warnings when running on Chef Infra Client 16 and later.

**With braces:**

```ruby
shell_out!('hostnamectl status', { returns: [0, 1] })
```

**Without braces:**

```ruby
shell_out!('hostnamectl status', returns: [0, 1])
```

`Enabled by default`: True

`Autocorrects`: Yes

### Other Improvements

- The `ChefDeprecations/DeprecatedChefSpecPlatform` cop has been updated to detect and correct additional legacy platform releases in ChefSpecs.

## Cookstyle 6.4

### RuboCop 0.83
Expand Down