How do i check a cookbook has all the required dependencies?
-
Website link: http://www.foodcritic.io
foodcritic is lint for cookbooks.
foodcritic command will check for dependencies.
$ foodcritic ../local_cookbook/ Checking 2 files xx FC007: Ensure recipe dependencies are reflected in cookbook metadata: ../local_cookbook/recipes/default.rb:7
Here it it checking the cookbook local_cookbook and found that it is missing dependencies in the metadata.rb file.
The foodcritic checks a number of things dependencies is just one of them. foodcritic will return an empty line if all checks are passed ok.
© Lightnetics 2024