diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d216020..8c5d555e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,17 @@ # Cookstyle Changelog - + +## [v7.25.7](https://github.com/chef/cookstyle/tree/v7.25.7) (2021-10-11) + +#### Merged Pull Requests +- Update to RuboCop 1.22.1 [#914](https://github.com/chef/cookstyle/pull/914) ([tas50](https://github.com/tas50)) - + +### Changes not yet released to rubygems.org + +#### Merged Pull Requests +- Update to RuboCop 1.22.1 [#914](https://github.com/chef/cookstyle/pull/914) ([tas50](https://github.com/tas50)) diff --git a/README.md b/README.md index f208ef8e..ae8052cd 100644 --- a/README.md +++ b/README.md @@ -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 by detecting and automatically correcting style, syntax, and logic mistakes in your code. -Cookstyle is powered by the [RuboCop](http://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 **248 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](http://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 **249 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/ diff --git a/VERSION b/VERSION index d6a54222..62273b79 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -7.25.6 \ No newline at end of file +7.25.7 \ No newline at end of file diff --git a/docs-chef-io/data/cookstyle/cops_chef_modernize_declareactionclass.yml b/docs-chef-io/data/cookstyle/cops_chef_modernize_declareactionclass.yml new file mode 100644 index 00000000..132549ac --- /dev/null +++ b/docs-chef-io/data/cookstyle/cops_chef_modernize_declareactionclass.yml @@ -0,0 +1,30 @@ +--- +short_name: DeclareActionClass +full_name: Chef/Modernize/DeclareActionClass +department: Chef/Modernize +description: In Chef Infra Client 12.9 and later `action_class` can be used instead + of `declare_action_class`. +autocorrection: true +target_chef_version: 12.9+ +examples: |2- + + #### incorrect + + ```ruby + declare_action_class do + foo + end + ``` + + #### correct + + ```ruby + action_class do + foo + end + ``` +version_added: 7.26.0 +enabled: true +included_file_paths: +- "**/resources/*.rb" +- "**/libraries/*.rb" diff --git a/lib/cookstyle/version.rb b/lib/cookstyle/version.rb index 10b19bbf..3272c19f 100644 --- a/lib/cookstyle/version.rb +++ b/lib/cookstyle/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Cookstyle - VERSION = "7.25.6" # rubocop: disable Style/StringLiterals + VERSION = "7.25.7" # rubocop: disable Style/StringLiterals RUBOCOP_VERSION = '1.22.1' end