Navigation Menu

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

FC033 Failing to find template not ending in .erb #131

Closed
nvwls opened this issue May 3, 2013 · 2 comments
Closed

FC033 Failing to find template not ending in .erb #131

nvwls opened this issue May 3, 2013 · 2 comments

Comments

@nvwls
Copy link
Contributor

nvwls commented May 3, 2013

Unless the template source is named .erb FC033 will fail to find the source.

template '/etc/resolv.conf' do
  source 'resolv.conf'
end

If I change the filename and source to resolv.conf.erb the warning goes away. I can understand wanting to suggest a naming convention but that is a different beast from failing to find a valid file.

@acrmp
Copy link
Member

acrmp commented May 4, 2013

Thanks for raising this. I think this was originally reported in #96 too.

I've pushed a fix for this and a similar issue with FC034. Can you test against master and let me know if this resolves the problem for you?

Cheers,

Andrew.

@acrmp
Copy link
Member

acrmp commented Jul 20, 2013

Closing this as fixed with the release of foodcritic 2.2.0.

Thanks,

Andrew.

@acrmp acrmp closed this as completed Jul 20, 2013
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

2 participants