cookstyle
cookstyle copied to clipboard
Detect using run_action on the resource block to force compile_time
When someone does this
file tokenpath do
owner new_resource.owner
group new_resource.group
mode '644'
content authz.file_content
action :nothing
end.run_action(:create)
We should autocorrect to:
file tokenpath do
owner new_resource.owner
group new_resource.group
mode '644'
content authz.file_content
action :create
compile_time true
end
- Update action with action from run_action method
- Remove run_action method call
- Add compile_time true
This would be a modernize cop that requires 16.0