Scroll to navigation

FOODCRITIC(1) FOODCRITIC(1)

NAME

foodcritic - lint tool for chef cookbooks

SYNOPSIS

foodcritic [options...] cookbook...

foodcritic [options...] --list

DESCRIPTION

foodcritic makes it easier to flag problems in your Chef cookbooks that will cause Chef to blow up when you attempt to converge. This is about faster feedback.

Each cookbook path specified will be examined for common problems and poor style.

OPTIONS

Only check against rules with the specified tags. Prefix tags with a tilde ~ to exclude rules.
Do not perform a lint check; instead simply list the rules that would be enabled based on the defaults and the rule selection options (-t, -I)
Exit non-zero if any of the specified tags are matched. Use the pseudo-tag any to fail if any tag is matched.
Only check against rules valid for this version of Chef.
Cookbook path(s) to check.
Show lines matched against rather than the default summary.
Environment path(s) to check.
Additional rule file path(s) to load.
Role path(s) to check.
Specify grammar to use when validating search syntax. (Default: the grammar of any installed Chef)
Display the foodcritic version.
Exclude path(s) from being linted.

RETURN VALUES

By default, foodcritic will always return 0.

If --epic-fail is specified, then foodcritic will return 3 if any tags are matched.

COPYRIGHT

foodcritic is Copyright 2011 by Andrew Crump.

SEE ALSO

chef(1)

July 2018