1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
# Windjammer pre-commit hook
# Runs formatter, linter, and tests before allowing a commit
#
# Install this hook by running: ./scripts/install-hooks.sh
# 1. Auto-format code and stage formatting changes
# Stage any formatting changes so they're included in the commit
FORMATTED_FILES=
if [; then
|
else
fi
# 2. Run linter
if ! | ; then
fi
# 3. Run tests
if ! | | ; then
fi