style: ignore SC2310-2312 for now

This commit is contained in:
Bo Anderson 2021-11-08 03:11:39 +00:00
parent cf7def0c68
commit 98c082ca94
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

View File

@ -167,7 +167,16 @@ module Homebrew
def run_shellcheck(files, output_type) def run_shellcheck(files, output_type)
files = shell_scripts if files.blank? files = shell_scripts if files.blank?
args = ["--shell=bash", "--enable=all", "--external-sources", "--source-path=#{HOMEBREW_LIBRARY}", "--", *files] args = [
"--shell=bash",
"--enable=all",
"--external-sources",
"--source-path=#{HOMEBREW_LIBRARY}",
# TODO: fix these
"--exclude=SC2310,SC2311,SC2312",
"--",
*files,
]
case output_type case output_type
when :print when :print