Hello, i have the following recipe[1] and runing foodcritic says:
FC005: Avoid repetition of resource declarations: site-cookbooks/unicorn_vox/recipes/default.rb:28
I have no idead why this happens.
Maybe because the template is in a loop ?
Hello, i have the following recipe[1] and runing foodcritic says:
FC005: Avoid repetition of resource declarations: site-cookbooks/unicorn_vox/recipes/default.rb:28
I have no idead why this happens.
Maybe because the template is in a loop ?
On Fri, Sep 28, 2012 at 8:15 AM, Alfredo Palhares
masterkorp@masterkorp.net wrote:
Hello, i have the following recipe[1] and runing foodcritic says:
FC005: Avoid repetition of resource declarations: site-cookbooks/unicorn_vox/recipes/default.rb:28
Does node["apps"] end up with two identical values in it?
Bryan
Hi Alfredo,
Thanks for reporting this behaviour. This is a bug in foodcritic.
FC005 is intended to flag when there are a series of resources that
vary only in a single attribute.
http://acrmp.github.com/foodcritic/#FC005
In this case we don't seem to be decoding all resource attributes
correctly when we are within a block so FC005 incorrectly thinks the
template resources are similar enough to raise this warning.
I've raised an issue here and we'll look into it:
Thanks,
Andrew.
On Fri, Sep 28, 2012 at 1:15 PM, Alfredo Palhares
masterkorp@masterkorp.net wrote:
Hello, i have the following recipe[1] and runing foodcritic says:
FC005: Avoid repetition of resource declarations: site-cookbooks/unicorn_vox/recipes/default.rb:28I have no idead why this happens.
Maybe because the template is in a loop ?