1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-09-17 17:59:46 +00:00
CC-Tweaked/config/pre-commit/illuaminate-lint.sh
Jonathan Coates eb2d617ed8 Add a pre commit hook to lint code
This uses pre-commit [1] to check patches are well formed and run
several linters on them. We currently do some boring things (check files
are syntactically valid) as well as some project-specific ones:
 - Run illuaminate on the Lua files
 - Run checkstyle on Java

[1]: https://pre-commit.com/
2021-04-28 21:24:27 +01:00

10 lines
229 B
Bash
Executable File

#!/usr/bin/env sh
set -e
test -d bin || mkdir bin
test -f bin/illuaminate || curl -s -obin/illuaminate https://squiddev.cc/illuaminate/linux-x86-64/illuaminate
chmod +x bin/illuaminate
./gradlew luaJavadoc
bin/illuaminate lint