# Cookstyle 6.14 released with 2 new Chef cops!

**URL:** <https://discourse.chef.io/t/cookstyle-6-14-released-with-2-new-chef-cops/17478>\
**Category:** Chef Release Announcements\
**Created:** [July 30, 2020, 5:30pm UTC](https://discourse.chef.io/t/cookstyle-6-14-released-with-2-new-chef-cops/17478 "2020-07-30T17:30:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tas50](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/tas50/32/941_2.png) [@tas50](https://discourse.chef.io/u/tas50)\
**Post date:** [July 30, 2020, 5:30pm UTC](https://discourse.chef.io/t/cookstyle-6-14-released-with-2-new-chef-cops/17478/1 "2020-07-30T17:30:12Z")

</div>

Hey folks,

Just in time for your Chef Infra Client 16.3 upgrades we have a new release of Cookstyle out with 2 new cops to cleanup `macos_userdefaults` usage.

#### ChefCorrectness/MacosUserdefaultsInvalidType

The `macos_userdefaults` resource prior to Chef Infra Client 16.3 would silently continue if invalid types were passed resulting in unexpected behavior. Valid values are `array`, `bool`, `dict`, `float`, `int`, and `string`. The `ChefCorrectness/MacosUserdefaultsInvalidType` will detect invalid types and autocorrect several common mistakes such as using `integer` instead of `int`.

`Enabled by default`: True

`Autocorrects`: Yes

#### ChefDeprecations/MacosUserdefaultsGlobalProperty

The `ChefDeprecations/MacosUserdefaultsGlobalProperty` cop detects the usage of the `global` property in the macos\_userdefaults resource which was deprecated in Chef Infra Client 16.3. You can now omit the `domain` property to set global default values instead.

`Enabled by default`: True

`Autocorrects`: Yes

### Other Improvements

- `ChefCorrectness/InvalidPlatformFamilyHelper` will now autocorrect offenses.
- `ChefEffortless/CookbookUsesEnvironmments` has been renamed `ChefEffortless/CookbookUsesEnvironments`. Sticky Macbook keyboards are not fun.
- `ChefStyle/FileMode` now detects the `files_mode` property in `remote_directory` resources.
- Many styleguide links have been fixed to properly point to the docs in the Cookstyle repo.

Enjoy,  
Tim
