1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-10-31 13:42:59 +00:00

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/
This commit is contained in:
Jonathan Coates
2021-04-28 21:24:27 +01:00
parent 74dae4ec17
commit eb2d617ed8
12 changed files with 90 additions and 77 deletions

View File

@@ -5,7 +5,7 @@
local colours = _ENV
for k, v in pairs(colors) do
colours[k] = v
colours[k] = v
end
--- Grey. Written as `7` in paint files and @{term.blit}, has a default

View File

@@ -1,4 +1,4 @@
--[[
Alright then, don't ignore me. This file is to ensure the existence of the "autorun" folder, files placed in this folder
using resource packs will always run when computers startup.
]]
]]