File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -327,18 +327,21 @@ def self.github_workflow_files
327327
328328 def self . shellcheck
329329 require "formula"
330- Formula [ "shellcheck" ] . ensure_installed! ( latest : true , reason : "shell style checks" ) . opt_bin /"shellcheck"
330+ shellcheck_stub = Formulary . factory ( "shellcheck" , prefer_stub : true )
331+ shellcheck_stub . ensure_installed! ( latest : true , reason : "shell style checks" ) . opt_bin /"shellcheck"
331332 end
332333
333334 def self . shfmt
334335 require "formula"
335- Formula [ "shfmt" ] . ensure_installed! ( latest : true , reason : "formatting shell scripts" )
336+ shfmt_stub = Formulary . factory ( "shfmt" , prefer_stub : true )
337+ shfmt_stub . ensure_installed! ( latest : true , reason : "formatting shell scripts" )
336338 HOMEBREW_LIBRARY /"Homebrew/utils/shfmt.sh"
337339 end
338340
339341 def self . actionlint
340342 require "formula"
341- Formula [ "actionlint" ] . ensure_installed! ( latest : true , reason : "GitHub Actions checks" ) . opt_bin /"actionlint"
343+ actionlint_stub = Formulary . factory ( "actionlint" , prefer_stub : true )
344+ actionlint_stub . ensure_installed! ( latest : true , reason : "GitHub Actions checks" ) . opt_bin /"actionlint"
342345 end
343346
344347 # Collection of style offenses.
You can’t perform that action at this time.
0 commit comments