mirror of
https://github.com/creating2morrow/neveko.git
synced 2024-12-22 19:49:24 +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"
|