I'm using rubocop with syntastic to write Chef code.
Something weird happens where after I satisfy all of rubocop's suggestions it flags every function call "undefined".
For example here it is flagging an extra space (this is a Chef resource I am writing):

OK so I remove the extra space and run a syntax check and then it flags everything as undefined:

Why is it doing this and how can I stop this behavior?
You'll have to disable that Rubocop rule. Chef uses a DSL, meaning there are methods that are magically injected into the context which Rubocop can't know about.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With