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

FC044 - False positive for function calls #720

Open
Nokel81 opened this issue Jan 22, 2018 · 0 comments
Open

FC044 - False positive for function calls #720

Nokel81 opened this issue Jan 22, 2018 · 0 comments

Comments

@Nokel81
Copy link

Nokel81 commented Jan 22, 2018

I have the following code (simplified)

def server_pager_team
    return 'locale_prod' if node['tags'].include? 'prod'
    'locale_test'
end

node.run_state['pager_team'] = server_pager_team

And the final line of that snippet is being caught for 44, from reading the description of 44 I don't think that it applies since it is a function call not treating it as a node parameter

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