style: brew style check Dockerfile as shell script

This commit is contained in:
XuehaiPan 2021-09-14 21:23:39 +08:00
parent 8a363b2fb5
commit bc0663baba
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
ARG version=20.04 ARG version=20.04
FROM ubuntu:$version # shellcheck disable=SC2154
FROM ubuntu:"${version}"
ARG DEBIAN_FRONTEND=noninteractive ARG DEBIAN_FRONTEND=noninteractive
# hadolint ignore=DL3008 # hadolint ignore=DL3008

View File

@ -177,6 +177,7 @@ module Homebrew
files = [ files = [
HOMEBREW_BREW_FILE, HOMEBREW_BREW_FILE,
HOMEBREW_REPOSITORY/"completions/bash/brew", HOMEBREW_REPOSITORY/"completions/bash/brew",
HOMEBREW_REPOSITORY/"Dockerfile",
*HOMEBREW_LIBRARY.glob("Homebrew/*.sh"), *HOMEBREW_LIBRARY.glob("Homebrew/*.sh"),
*HOMEBREW_LIBRARY.glob("Homebrew/shims/**/*").map(&:realpath).uniq *HOMEBREW_LIBRARY.glob("Homebrew/shims/**/*").map(&:realpath).uniq
.reject { |path| path.directory? || path.basename.to_s == "cc" }, .reject { |path| path.directory? || path.basename.to_s == "cc" },