From c4e2df7eb64eb69211d71594f1c26acb47dc8253 Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Fri, 10 May 2024 22:19:44 -0700 Subject: [PATCH] fix: shellcheck linter setup --- scaffold.yaml | 1 + {{ .ProjectSnake }}/.aspect/cli/config.yaml | 1 + {{ .ProjectSnake }}/.shellcheckrc | 2 ++ {{ .ProjectSnake }}/BUILD.bazel | 1 + 4 files changed, 5 insertions(+) create mode 100644 {{ .ProjectSnake }}/.shellcheckrc diff --git a/scaffold.yaml b/scaffold.yaml index 87949ef..d4a3a86 100644 --- a/scaffold.yaml +++ b/scaffold.yaml @@ -41,6 +41,7 @@ features: globs: - "*/tools/format/*" - "*/tools/lint/*" + - "*/.shellcheckrc" - value: "{{ .Scaffold.stamp }}" globs: - "*/tools/workspace_status.sh" diff --git a/{{ .ProjectSnake }}/.aspect/cli/config.yaml b/{{ .ProjectSnake }}/.aspect/cli/config.yaml index f16ec28..d773638 100644 --- a/{{ .ProjectSnake }}/.aspect/cli/config.yaml +++ b/{{ .ProjectSnake }}/.aspect/cli/config.yaml @@ -6,6 +6,7 @@ configure: lint: aspects: + - //tools/lint:linters.bzl%shellcheck {{- if eq .Computed.javascript "true" }} - //tools/lint:linters.bzl%eslint {{- end }} diff --git a/{{ .ProjectSnake }}/.shellcheckrc b/{{ .ProjectSnake }}/.shellcheckrc new file mode 100644 index 0000000..21132dd --- /dev/null +++ b/{{ .ProjectSnake }}/.shellcheckrc @@ -0,0 +1,2 @@ +# Configuration options for shellcheck +# See https://github.com/koalaman/shellcheck/blob/master/shellcheck.1.md#rc-files diff --git a/{{ .ProjectSnake }}/BUILD.bazel b/{{ .ProjectSnake }}/BUILD.bazel index 7720c4a..625369a 100644 --- a/{{ .ProjectSnake }}/BUILD.bazel +++ b/{{ .ProjectSnake }}/BUILD.bazel @@ -15,6 +15,7 @@ alias( exports_files( [ + ".shellcheckrc", {{- if eq .Computed.python "true" }} "pyproject.toml", {{- end }}