Closed martinmosegaard closed 6 years ago
@martinmosegaard I just noticed that this was broken on my own. I've added a spec that's failing right now and I'm going to get things green in foodcritic then do another release. Expect something in the next hour or two.
To clarify this should only be firing on ruby_blocks, but it's firing on all resources instead.
12.2.1 fixes this. I'll make sure we get this one into ChefDK current as well
Thanks for the fast turnaround! I have verified the fix. :+1:
I have a CI pipeline that just does a
gem install foodcritic
and I just got foodcritic 12.2.0 with the FC104 rule.But it fires on a recipe with contents like this:
But
action :run
does not make sense for these resources. Is this a bug in the rule? Unfortunately, the pull request https://github.com/Foodcritic/foodcritic/pull/693 does not reference an issue, so it is hard to see the motivation for the new rule.I may need to pin my foodcritic version.