[chef] Re: Repetition of resource declarations problem


Chronological Thread 
  • From: Andrew Crump < >
  • To:
  • Subject: [chef] Re: Repetition of resource declarations problem
  • Date: Fri, 28 Sep 2012 18:57:05 +0100

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:
https://github.com/acrmp/foodcritic/issues/76

Thanks,

Andrew.

On Fri, Sep 28, 2012 at 1:15 PM, Alfredo Palhares
< >
 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
>
> I have no idead why this happens.
> Maybe because the template is in a loop ?
>
>
> [1] http://pastie.org/private/kl7ww5ilehchdebrww89a



Archive powered by MHonArc 2.6.16.

§