chef / cookstyle

A linting tool that helps you to write better Chef Infra cookbooks and InSpec profiles by detecting and automatically correcting style, syntax, and logic mistakes in your code.
Apache License 2.0
109 stars 54 forks source link

Alert on more uses of mixlib::shellout #903

Open tas50 opened 3 years ago

tas50 commented 3 years ago

Version:

7.24.1

Environment:

N/A

Steps to Reproduce:

            cmd = Mixlib::ShellOut.new("#{nginx_binary} -t -c #{new_resource.config_file}")
            cmd.run_command.error!

Expected Result:

            shell_out!("#{nginx_binary} -t -c #{new_resource.config_file}")

Actual Result:

Norhinf