-
Notifications
You must be signed in to change notification settings - Fork 10
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
Cookstyle Bot Auto Corrections with Cookstyle 7.31.1 #33
Open
cookstyle
wants to merge
1
commit into
master
Choose a base branch
from
cookstyle_bot/cookstyle_7_31_1
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This change is automatically generated by the Cookstyle Bot using the latest version of Cookstyle (7.31.1). Adopting changes suggested by Cookstyle improves cookbook readability, avoids common coding mistakes, and eases upgrades to newer versions of the Chef Infra Client. ### Style/Encoding - **/Berksfile:1**: Unnecessary utf-8 encoding comment. (https://rubystyle.guide#utf-8) - **/Gemfile:1**: Unnecessary utf-8 encoding comment. (https://rubystyle.guide#utf-8) - **/Guardfile:1**: Unnecessary utf-8 encoding comment. (https://rubystyle.guide#utf-8) - **/Rakefile:2**: Unnecessary utf-8 encoding comment. (https://rubystyle.guide#utf-8) - **/attributes/default.rb:1**: Unnecessary utf-8 encoding comment. (https://rubystyle.guide#utf-8) - **/attributes/hardening.rb:1**: Unnecessary utf-8 encoding comment. (https://rubystyle.guide#utf-8) - **/recipes/default.rb:1**: Unnecessary utf-8 encoding comment. (https://rubystyle.guide#utf-8) - **/recipes/hardening.rb:1**: Unnecessary utf-8 encoding comment. (https://rubystyle.guide#utf-8) - **/spec/spec_helper.rb:1**: Unnecessary utf-8 encoding comment. (https://rubystyle.guide#utf-8) - **/spec/unit/recipes/default_spec.rb:1**: Unnecessary utf-8 encoding comment. (https://rubystyle.guide#utf-8) - **/spec/unit/recipes/hardening_spec.rb:1**: Unnecessary utf-8 encoding comment. (https://rubystyle.guide#utf-8) ### Chef/Modernize/LegacyBerksfileSource - **/Berksfile:3**: Do not use legacy Berksfile community sources. Use Chef Supermarket instead. (https://docs.chef.io/workstation/cookstyle/chef_modernize_legacyberksfilesource) ### Style/RegexpLiteral - **/Guardfile:7**: Use `%r` around regular expression. (https://rubystyle.guide#percent-r) - **/Guardfile:11**: Use `%r` around regular expression. (https://rubystyle.guide#percent-r) - **/Guardfile:12**: Use `%r` around regular expression. (https://rubystyle.guide#percent-r) - **/Guardfile:13**: Use `%r` around regular expression. (https://rubystyle.guide#percent-r) - **/Guardfile:14**: Use `%r` around regular expression. (https://rubystyle.guide#percent-r) - **/Guardfile:19**: Use `%r` around regular expression. (https://rubystyle.guide#percent-r) - **/Guardfile:20**: Use `%r` around regular expression. (https://rubystyle.guide#percent-r) - **/Guardfile:25**: Use `%r` around regular expression. (https://rubystyle.guide#percent-r) - **/Guardfile:26**: Use `%r` around regular expression. (https://rubystyle.guide#percent-r) - **/Guardfile:27**: Use `%r` around regular expression. (https://rubystyle.guide#percent-r) - **/Guardfile:28**: Use `%r` around regular expression. (https://rubystyle.guide#percent-r) - **/Guardfile:29**: Use `%r` around regular expression. (https://rubystyle.guide#percent-r) - **/Guardfile:30**: Use `%r` around regular expression. (https://rubystyle.guide#percent-r) - **/Guardfile:31**: Use `%r` around regular expression. (https://rubystyle.guide#percent-r) ### Layout/ExtraSpacing - **/Guardfile:20**: Unnecessary spacing detected. - **/Guardfile:21**: Unnecessary spacing detected. ### Chef/Style/CommentFormat - **/attributes/default.rb:3**: Properly format header comments (https://docs.chef.io/workstation/cookstyle/chef_style_commentformat) - **/attributes/default.rb:6**: Properly format header comments (https://docs.chef.io/workstation/cookstyle/chef_style_commentformat) - **/attributes/default.rb:7**: Properly format header comments (https://docs.chef.io/workstation/cookstyle/chef_style_commentformat) - **/attributes/hardening.rb:3**: Properly format header comments (https://docs.chef.io/workstation/cookstyle/chef_style_commentformat) - **/attributes/hardening.rb:6**: Properly format header comments (https://docs.chef.io/workstation/cookstyle/chef_style_commentformat) - **/attributes/hardening.rb:7**: Properly format header comments (https://docs.chef.io/workstation/cookstyle/chef_style_commentformat) - **/recipes/default.rb:3**: Properly format header comments (https://docs.chef.io/workstation/cookstyle/chef_style_commentformat) - **/recipes/default.rb:6**: Properly format header comments (https://docs.chef.io/workstation/cookstyle/chef_style_commentformat) - **/recipes/default.rb:7**: Properly format header comments (https://docs.chef.io/workstation/cookstyle/chef_style_commentformat) - **/recipes/hardening.rb:3**: Properly format header comments (https://docs.chef.io/workstation/cookstyle/chef_style_commentformat) - **/recipes/hardening.rb:6**: Properly format header comments (https://docs.chef.io/workstation/cookstyle/chef_style_commentformat) - **/recipes/hardening.rb:7**: Properly format header comments (https://docs.chef.io/workstation/cookstyle/chef_style_commentformat) ### Chef/Sharing/InvalidLicenseString - **/metadata.rb:4**: Cookbook metadata.rb does not use a SPDX compliant license string or "all rights reserved". See https://spdx.org/licenses/ for a complete list of license identifiers. (https://docs.chef.io/workstation/cookstyle/chef_sharing_invalidlicensestring) ### Chef/RedundantCode/LongDescriptionMetadata - **/metadata.rb:6**: The long_description metadata.rb method is not used and is unnecessary in cookbooks. (https://docs.chef.io/workstation/cookstyle/chef_redundantcode_longdescriptionmetadata) ### Chef/RedundantCode/RecipeMetadata - **/metadata.rb:11**: The recipe metadata.rb method is not used and is unnecessary in cookbooks. Recipes should be documented in the cookbook's README.md file instead. (https://docs.chef.io/workstation/cookstyle/chef_redundantcode_recipemetadata) - **/metadata.rb:12**: The recipe metadata.rb method is not used and is unnecessary in cookbooks. Recipes should be documented in the cookbook's README.md file instead. (https://docs.chef.io/workstation/cookstyle/chef_redundantcode_recipemetadata) ### Chef/Style/IncludeRecipeWithParentheses - **/recipes/default.rb:22**: There is no need to wrap the recipe in parentheses when using the include_recipe helper (https://docs.chef.io/workstation/cookstyle/#includerecipewithparentheses) ### Layout/TrailingEmptyLines - **/spec/spec_helper.rb:7**: 1 trailing blank lines detected. (https://rubystyle.guide#newline-eof) ### Chef/Deprecations/ChefSpecCoverageReport - **/spec/spec_helper.rb:9**: Don't use the deprecated ChefSpec coverage report functionality in your specs. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_chefspeccoveragereport) ### Layout/EmptyLinesAroundBlockBody - **/spec/unit/recipes/default_spec.rb:6**: Extra empty line detected at block body beginning. (https://rubystyle.guide#empty-lines-around-bodies) - **/spec/unit/recipes/default_spec.rb:20**: Extra empty line detected at block body end. (https://rubystyle.guide#empty-lines-around-bodies) - **/spec/unit/recipes/hardening_spec.rb:6**: Extra empty line detected at block body beginning. (https://rubystyle.guide#empty-lines-around-bodies) - **/spec/unit/recipes/hardening_spec.rb:18**: Extra empty line detected at block body beginning. (https://rubystyle.guide#empty-lines-around-bodies) - **/spec/unit/recipes/hardening_spec.rb:24**: Extra empty line detected at block body end. (https://rubystyle.guide#empty-lines-around-bodies) - **/spec/unit/recipes/hardening_spec.rb:30**: Extra empty line detected at block body beginning. (https://rubystyle.guide#empty-lines-around-bodies) - **/spec/unit/recipes/hardening_spec.rb:34**: Extra empty line detected at block body end. (https://rubystyle.guide#empty-lines-around-bodies) - **/spec/unit/recipes/hardening_spec.rb:38**: Extra empty line detected at block body beginning. (https://rubystyle.guide#empty-lines-around-bodies) - **/spec/unit/recipes/hardening_spec.rb:40**: Extra empty line detected at block body beginning. (https://rubystyle.guide#empty-lines-around-bodies) - **/spec/unit/recipes/hardening_spec.rb:44**: Extra empty line detected at block body end. (https://rubystyle.guide#empty-lines-around-bodies) - **/spec/unit/recipes/hardening_spec.rb:46**: Extra empty line detected at block body end. (https://rubystyle.guide#empty-lines-around-bodies) - **/spec/unit/recipes/hardening_spec.rb:50**: Extra empty line detected at block body beginning. (https://rubystyle.guide#empty-lines-around-bodies) - **/spec/unit/recipes/hardening_spec.rb:52**: Extra empty line detected at block body beginning. (https://rubystyle.guide#empty-lines-around-bodies) - **/spec/unit/recipes/hardening_spec.rb:58**: Extra empty line detected at block body end. (https://rubystyle.guide#empty-lines-around-bodies) - **/spec/unit/recipes/hardening_spec.rb:60**: Extra empty line detected at block body end. (https://rubystyle.guide#empty-lines-around-bodies) - **/spec/unit/recipes/hardening_spec.rb:64**: Extra empty line detected at block body beginning. (https://rubystyle.guide#empty-lines-around-bodies) - **/spec/unit/recipes/hardening_spec.rb:67**: Extra empty line detected at block body end. (https://rubystyle.guide#empty-lines-around-bodies) - **/spec/unit/recipes/hardening_spec.rb:71**: Extra empty line detected at block body beginning. (https://rubystyle.guide#empty-lines-around-bodies) - **/spec/unit/recipes/hardening_spec.rb:74**: Extra empty line detected at block body end. (https://rubystyle.guide#empty-lines-around-bodies) - **/spec/unit/recipes/hardening_spec.rb:76**: Extra empty line detected at block body end. (https://rubystyle.guide#empty-lines-around-bodies) Signed-off-by: Cookstyle <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
None yet
0 participants
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change is automatically generated by the Cookstyle Bot using the latest version of Cookstyle (7.31.1). Adopting changes suggested by Cookstyle improves cookbook readability, avoids common coding mistakes, and eases upgrades to newer versions of the Chef Infra Client.
Style/Encoding
Chef/Modernize/LegacyBerksfileSource
Style/RegexpLiteral
%r
around regular expression. (https://rubystyle.guide#percent-r)%r
around regular expression. (https://rubystyle.guide#percent-r)%r
around regular expression. (https://rubystyle.guide#percent-r)%r
around regular expression. (https://rubystyle.guide#percent-r)%r
around regular expression. (https://rubystyle.guide#percent-r)%r
around regular expression. (https://rubystyle.guide#percent-r)%r
around regular expression. (https://rubystyle.guide#percent-r)%r
around regular expression. (https://rubystyle.guide#percent-r)%r
around regular expression. (https://rubystyle.guide#percent-r)%r
around regular expression. (https://rubystyle.guide#percent-r)%r
around regular expression. (https://rubystyle.guide#percent-r)%r
around regular expression. (https://rubystyle.guide#percent-r)%r
around regular expression. (https://rubystyle.guide#percent-r)%r
around regular expression. (https://rubystyle.guide#percent-r)Layout/ExtraSpacing
Chef/Style/CommentFormat
Chef/Sharing/InvalidLicenseString
Chef/RedundantCode/LongDescriptionMetadata
Chef/RedundantCode/RecipeMetadata
Chef/Style/IncludeRecipeWithParentheses
Layout/TrailingEmptyLines
Chef/Deprecations/ChefSpecCoverageReport
Layout/EmptyLinesAroundBlockBody
Signed-off-by: Cookstyle [email protected]