Skip to content
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

Automated PR: Cookstyle Changes #310

Merged
merged 1 commit into from
Jul 13, 2020
Merged

Automated PR: Cookstyle Changes #310

merged 1 commit into from
Jul 13, 2020

Conversation

xorimabot
Copy link
Contributor

Hey!
I ran Cookstyle 6.11.4 against this repo and here are the results.
This repo was selected due to the topics of chef-cookbook

Changes

Issues found and resolved with test/cookbooks/test/recipes/user_database.rb

  • 1:1 refactor: ChefCorrectness/IncorrectLibraryInjection - Libraries should be injected into the Chef::DSL::Recipe class and not Chef::Recipe or Chef::Provider classes directly.
  • 17:3 refactor: ChefModernize/ConditionalUsingTest - Use ::File.exist?('/foo/bar') instead of the slower 'test -f /foo/bar' which requires shelling out
  • 27:3 refactor: ChefModernize/ConditionalUsingTest - Use ::File.exist?('/foo/bar') instead of the slower 'test -f /foo/bar' which requires shelling out
  • 37:3 refactor: ChefModernize/ConditionalUsingTest - Use ::File.exist?('/foo/bar') instead of the slower 'test -f /foo/bar' which requires shelling out
  • 47:3 refactor: ChefModernize/ConditionalUsingTest - Use ::File.exist?('/foo/bar') instead of the slower 'test -f /foo/bar' which requires shelling out
  • 57:3 refactor: ChefModernize/ConditionalUsingTest - Use ::File.exist?('/foo/bar') instead of the slower 'test -f /foo/bar' which requires shelling out
  • 67:3 refactor: ChefModernize/ConditionalUsingTest - Use ::File.exist?('/foo/bar') instead of the slower 'test -f /foo/bar' which requires shelling out

Issues found and resolved with: test/cookbooks/test/recipes/user_database.rb

 - 1:1 refactor: ChefCorrectness/IncorrectLibraryInjection - Libraries should be injected into the Chef::DSL::Recipe class and not Chef::Recipe or Chef::Provider classes directly.
 - 17:3 refactor: ChefModernize/ConditionalUsingTest - Use ::File.exist?'/foo/bar' instead of the slower 'test -f /foo/bar' which requires shelling out
 - 27:3 refactor: ChefModernize/ConditionalUsingTest - Use ::File.exist?'/foo/bar' instead of the slower 'test -f /foo/bar' which requires shelling out
 - 37:3 refactor: ChefModernize/ConditionalUsingTest - Use ::File.exist?'/foo/bar' instead of the slower 'test -f /foo/bar' which requires shelling out
 - 47:3 refactor: ChefModernize/ConditionalUsingTest - Use ::File.exist?'/foo/bar' instead of the slower 'test -f /foo/bar' which requires shelling out
 - 57:3 refactor: ChefModernize/ConditionalUsingTest - Use ::File.exist?'/foo/bar' instead of the slower 'test -f /foo/bar' which requires shelling out
 - 67:3 refactor: ChefModernize/ConditionalUsingTest - Use ::File.exist?'/foo/bar' instead of the slower 'test -f /foo/bar' which requires shelling out

Signed-off-by: Xorima Bot <[email protected]>
@xorimabot xorimabot requested a review from a team July 10, 2020 00:05
@ramereth ramereth merged commit faa2274 into master Jul 13, 2020
@ramereth ramereth deleted the automated/cookstyle branch July 13, 2020 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants