This PR contains the results of a cookstyle -a on the repo, this repo has been identified as a cookbook repo by topics of chef-cookbook
Changes
Cookstyle Fixes
Issues found and resolved with attributes/default.rb
50:1 refactor: ChefStyle/UnnecessaryPlatformCaseStatement - Use the platform?() and platform_family?() helpers instead of a case statement that only includes a single when statement.
Issues found and resolved with libraries/helpers.rb
386:1 refactor: ChefCorrectness/IncorrectLibraryInjection - Libraries should be injected into the Chef::DSL::Recipe or Chef::DSL::Resource classes and not Recipe/Resource/Provider classes directly.
387:1 refactor: ChefCorrectness/IncorrectLibraryInjection - Libraries should be injected into the Chef::DSL::Recipe or Chef::DSL::Resource classes and not Recipe/Resource/Provider classes directly.
This PR contains the results of a
cookstyle -a
on the repo, this repo has been identified as a cookbook repo by topics of chef-cookbookChanges
Cookstyle Fixes
Issues found and resolved with attributes/default.rb
ChefStyle/UnnecessaryPlatformCaseStatement
- Use the platform?() and platform_family?() helpers instead of a case statement that only includes a single when statement.Issues found and resolved with libraries/helpers.rb
ChefCorrectness/IncorrectLibraryInjection
- Libraries should be injected into the Chef::DSL::Recipe or Chef::DSL::Resource classes and not Recipe/Resource/Provider classes directly.ChefCorrectness/IncorrectLibraryInjection
- Libraries should be injected into the Chef::DSL::Recipe or Chef::DSL::Resource classes and not Recipe/Resource/Provider classes directly.