Closed yacn closed 2 years ago
This is a great improvement. Thanks
@yacn This PR is a bit too aggressive on finding issues. You probably want to add a doesn't detect spec for something like this:
template '/etc/mysql/cakephp-grants.sql' do
path '/etc/mysql/cakephp-grants.sql'
source 'grants.sql.erb'
owner 'root'
group 'root'
mode '0600'
variables(
user: node['cakephp']['db']['user'],
password: node['cakephp']['db']['password'],
database: node['cakephp']['db']['database']
)
notifies :run, 'execute[mysql-install-cakephp-privileges]', :immediately
end
@yacn Let me know if you see any issue with https://github.com/chef/cookstyle/pull/945
This PR is a bit too aggressive on finding issues. You probably want to add a doesn't detect spec for something like this:
Great catch!
Description
path
if provided to the resource to cover cases where the path is provided to it and not the name propertyRelated Issue
https://github.com/chef/cookstyle/issues/943
Types of changes
Checklist: