mirror of
https://github.com/creating2morrow/neveko.git
synced 2024-10-30 00:27:36 +00:00
16 lines
462 B
Bash
Executable file
16 lines
462 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Run the formatter and linter before commits
|
|
# TODO: automatically squash in formatting changes
|
|
# For now if there formatting changes just undo the
|
|
# previous commit and commit again.
|
|
|
|
# If any command fails exit immediately with that code
|
|
set -eo pipefail
|
|
|
|
# Check source without compiling
|
|
./scripts/check_all.sh
|
|
echo "source code checks complete"
|
|
|
|
# Run the formatter
|
|
./scripts/fmtall.sh
|
|
echo "source code formatting complete"
|