→ cookstyle -a
Inspecting 42 files
...C......................................
Offenses:
metadata.rb:6:1: R: [Corrected] ChefDeprecations/LongDescriptionMetadata: The long_description metadata.rb method is not used and is unnecessary in cookbooks
long_description 'Application cookbook which installs and configures Consul.'
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
metadata.rb:9:1: R: [Corrected] ChefDeprecations/RecipeMetadata: The recipe metadata.rb method is not used and is unnecessary in cookbooks. Recipes should be documented in the README.md file instead.
recipe 'consul::default', 'Installs and configures the Consul service.'
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
metadata.rb:9:1: C: [Corrected] Layout/EmptyLines: Extra blank line detected.
metadata.rb:10:1: R: [Corrected] ChefDeprecations/RecipeMetadata: The recipe metadata.rb method is not used and is unnecessary in cookbooks. Recipes should be documented in the README.md file instead.
recipe 'consul::client_gem', 'Installs the Consul Ruby client as a gem.'
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
metadata.rb:10:1: C: [Corrected] Layout/EmptyLines: Extra blank line detected.
metadata.rb:11:1: C: [Corrected] Layout/EmptyLines: Extra blank line detected.
metadata.rb:16:2: C: [Corrected] Layout/CommentIndentation: Incorrect indentation detected (column 1 instead of 0).
# build-essential is obsolete in chef 14+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
metadata.rb:19:1: C: [Corrected] Layout/CommentIndentation: Incorrect indentation detected (column 0 instead of 1).
# build-essential is obsolete in chef 14+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
metadata.rb:20:1: R: [Corrected] ChefModernize/UnnecessaryDependsChef14: Don't depend on cookbooks made obsolete by Chef 14
depends 'build-essential' # ~FC121
^^^^^^^^^^^^^^^^^^^^^^^^^
metadata.rb:20:2: C: [Corrected] Layout/CommentIndentation: Incorrect indentation detected (column 1 instead of 0).
# ~FC121
^^^^^^^^
metadata.rb:28:1: R: [Corrected] ChefModernize/RespondToInMetadata: It is no longer necessary to use respond_to? in metadata.rb in Chef Infra Client 12.15 and later
source_url 'https://github.com/johnbellone/consul-cookbook' if respond_to?(:source_url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
metadata.rb:29:1: R: [Corrected] ChefModernize/RespondToInMetadata: It is no longer necessary to use respond_to? in metadata.rb in Chef Infra Client 12.15 and later
issues_url 'https://github.com/johnbellone/consul-cookbook/issues' if respond_to?(:issues_url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
metadata.rb:31:1: R: [Corrected] ChefModernize/RespondToInMetadata: It is no longer necessary to use respond_to? in metadata.rb in Chef Infra Client 12.15 and later
chef_version '>= 12.1' if respond_to?(:chef_version)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42 files inspected, 13 offenses detected, 13 offenses corrected
Check List
[ ] All tests pass. See TESTING.md for details.
[ ] New functionality includes testing.
[ ] New functionality has been documented in the README if applicable.
Description
Run latest cookstyle.
Issues Resolved
https://github.com/sous-chefs/consul/issues/535
Check List