Skip to content
This repository has been archived by the owner on Sep 19, 2020. It is now read-only.

FC033 false positive when there is a "template" word in the template source path #804

Open
grdz opened this issue Jul 16, 2019 · 0 comments

Comments

@grdz
Copy link

grdz commented Jul 16, 2019

How to reproduce:

create in your cookbook folder templates/default/something/template/something.txt and then try to use it with "template" resource:

template 'something.txt' do
  source 'something/template/something.txt'
end

it will trigger FC033, but when you will change templates/default/something/template directory name to let's say templates/default/something/notatemplate and also change it in the resource:

template 'something.txt' do
  source 'something/notatemplate/something.txt'
end

then the error disappear.

@grdz grdz changed the title FC033 false positive when there is a "template" word in the source path FC033 false positive when there is a "template" word in the template source path Jul 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant