Foodcritic looking for README in test directory

When I use chef generate recipe foo

Foodcritic complains about there not being a README and metadata in the “test” directory.

So I have a couple of options.

Create the relevant files, but then this should have been done by the generate function.

Ignore the foodcritic warnings, but then this will ignore real warnings.

remove the test directory

Any ideas or pointers ?

Just exclude the test directory, and usually the spec directory too (which was not there when foodcritic was written) with --exclude command line parameter.

Foodcritic assume any directory not attributes/recipe/libraries/provider/resource (cookbook structure) are another cookbook and so check them as so.