From d1b535d04d4c2599146ec0a38ac83e8d93529378 Mon Sep 17 00:00:00 2001 From: Chef Expeditor Date: Wed, 29 Sep 2021 01:51:40 +0000 Subject: [PATCH] Bump version to 7.25.0 by Chef Expeditor Obvious fix; these changes are the result of automation not creative thinking. --- CHANGELOG.md | 12 +++++++++-- README.md | 2 +- VERSION | 2 +- ...hef_correctness_metadatamissingversion.yml | 20 +++++++++++++++++++ lib/cookstyle/version.rb | 2 +- 5 files changed, 33 insertions(+), 5 deletions(-) create mode 100644 docs-chef-io/data/cookstyle/cops_chef_correctness_metadatamissingversion.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ac276f9..e5b66345 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,17 @@ # Cookstyle Changelog - + +## [v7.25.0](https://github.com/chef/cookstyle/tree/v7.25.0) (2021-09-29) + +#### Merged Pull Requests +- Add Chef/Correctness/MetadataMissingVersion [#907](https://github.com/chef/cookstyle/pull/907) ([tas50](https://github.com/tas50)) - + +### Changes not yet released to rubygems.org + +#### Merged Pull Requests +- Add Chef/Correctness/MetadataMissingVersion [#907](https://github.com/chef/cookstyle/pull/907) ([tas50](https://github.com/tas50)) diff --git a/README.md b/README.md index b0a0bc58..f208ef8e 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 **247 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 **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. 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 b833f71c..35b0ccbc 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -7.24.1 \ No newline at end of file +7.25.0 \ No newline at end of file diff --git a/docs-chef-io/data/cookstyle/cops_chef_correctness_metadatamissingversion.yml b/docs-chef-io/data/cookstyle/cops_chef_correctness_metadatamissingversion.yml new file mode 100644 index 00000000..e9e38504 --- /dev/null +++ b/docs-chef-io/data/cookstyle/cops_chef_correctness_metadatamissingversion.yml @@ -0,0 +1,20 @@ +--- +short_name: MetadataMissingVersion +full_name: Chef/Correctness/MetadataMissingVersion +department: Chef/Correctness +description: metadata.rb should define a version for the cookbook. +autocorrection: true +target_chef_version: All Versions +examples: |- + ``` + + #### correct + + ```ruby + name 'foo' + version '1.0.0' + ``` +version_added: '7.25' +enabled: true +included_file_paths: +- "**/metadata.rb" diff --git a/lib/cookstyle/version.rb b/lib/cookstyle/version.rb index 373dc40c..c0a70a8b 100644 --- a/lib/cookstyle/version.rb +++ b/lib/cookstyle/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Cookstyle - VERSION = "7.24.1" # rubocop: disable Style/StringLiterals + VERSION = "7.25.0" # rubocop: disable Style/StringLiterals RUBOCOP_VERSION = '1.20.0' end