Rylan Polster 0faf17b1e6 use safe_popen_read instead of popen_read
RuboCop requires using Utils.safe_popen_read and Utils.safe_popen_write
instead of Utils.popen_read and Utils.popen_write respectively.

Using the "safe" version means that an error will be shown if the
command fails. Previously, when using `popen_read`, a failed command can
go unnoticed and have negative consequences that go undetected (as
happened for pipend in
https://github.com/Homebrew/homebrew-core/pull/55682)

RuboCop does not require Utils.safe_popen_read in a test do block
because there can be some legitimate uses for Utils.popen_read in these
cases.
2020-06-23 13:57:33 -04:00
..
2020-06-16 11:41:06 +02:00
2020-04-07 09:58:26 +01:00
2020-06-02 09:49:23 +01:00
2020-06-20 14:14:56 +08:00
2020-03-27 19:18:25 +00:00
2020-06-10 10:06:46 +01:00
2020-06-23 09:51:56 +08:00
2020-06-10 10:06:46 +01:00
2020-04-21 14:36:01 +01:00
2020-03-10 10:51:20 +00:00
2020-05-18 13:50:46 +01:00
2020-05-18 13:50:46 +01:00
2020-02-19 11:24:12 +00:00
2020-05-02 13:45:04 +01:00
2020-06-02 09:49:23 +01:00
2020-05-23 19:39:11 +01:00
2020-02-05 20:22:21 +00:00
2020-06-02 09:49:23 +01:00
2020-02-28 14:57:28 -05:00