Merge pull request #14219 from bevanjkay/cask-audit-enable-signing-flag

dev-cmd/audit: enable --[no-]signing flag for audits
This commit is contained in:
Mike McQuaid 2022-12-06 10:20:48 +00:00 committed by GitHub
commit f656f816bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,6 +52,8 @@ module Homebrew
"`--strict` and `--online`."
switch "--[no-]appcast",
description: "Audit the appcast."
switch "--[no-]signing",
description: "Audit for signed apps, which are required on ARM"
switch "--token-conflicts",
description: "Audit for token conflicts."
flag "--tap=",
@ -234,6 +236,8 @@ module Homebrew
download: nil,
# No need for `|| nil` for `--[no-]appcast` because boolean switches are already `nil` if not passed
appcast: args.appcast?,
# No need for `|| nil` for `--[no-]signing` because boolean switches are already `nil` if not passed
signing: args.signing?,
online: args.online? || nil,
strict: args.strict? || nil,
new_cask: args.new_cask? || nil,