We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4884c93 commit d74dfe7Copy full SHA for d74dfe7
.github/workflows/workflow.yml
@@ -55,4 +55,4 @@ jobs:
55
run: brew install shfmt
56
57
- name: Run shfmt
58
- run: shfmt -d .
+ run: shfmt -i 2 -d .
scripts/lint
@@ -0,0 +1,16 @@
1
+#!/usr/bin/env bash
2
+
3
+# Unoffical Bash "strict mode"
4
+# http://redsymbol.net/articles/unofficial-bash-strict-mode/
5
+set -euo pipefail
6
+#ORIGINAL_IFS=$IFS
7
+IFS=$'\t\n' # Stricter IFS settings
8
9
+# This script exists to make linting during local development easy. These checks
10
+# are identical to the ones run by the Github workflow.
11
12
+# Run shellcheck on Bash scripts
13
+shellcheck bin/* scripts/*
14
15
+# Run formatter
16
+shfmt -i 2 -d .
0 commit comments