mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-08 16:30:30 +00:00
Fix build failures
- Add license headers. Also check these during pre-commit. - Fix javadoc issue.
This commit is contained in:
parent
3d589eda4a
commit
349a7543b0
@ -31,6 +31,13 @@ repos:
|
|||||||
entry: ./gradlew checkstyleMain checkstyleTest
|
entry: ./gradlew checkstyleMain checkstyleTest
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
require_serial: true
|
require_serial: true
|
||||||
|
- id: license
|
||||||
|
name: Check Java license headers
|
||||||
|
files: ".*\\.java$"
|
||||||
|
language: system
|
||||||
|
entry: ./gradlew licenseFormat
|
||||||
|
pass_filenames: false
|
||||||
|
require_serial: true
|
||||||
- id: illuaminate
|
- id: illuaminate
|
||||||
name: Check Lua code
|
name: Check Lua code
|
||||||
files: ".*\\.(lua|java|md)"
|
files: ".*\\.(lua|java|md)"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of ComputerCraft - http://www.computercraft.info
|
* This file is part of the public ComputerCraft API - http://www.computercraft.info
|
||||||
* Copyright Daniel Ratcliffe, 2011-2021. Do not distribute without permission.
|
* Copyright Daniel Ratcliffe, 2011-2021. This API may be redistributed unmodified and in full only.
|
||||||
* Send enquiries to dratcliffe@gmail.com
|
* For help using the API, and posting your mods, visit the forums at computercraft.info.
|
||||||
*/
|
*/
|
||||||
package dan200.computercraft.api.lua;
|
package dan200.computercraft.api.lua;
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ import javax.annotation.Nonnull;
|
|||||||
*
|
*
|
||||||
* <pre>{@code
|
* <pre>{@code
|
||||||
* public class InventoryMethods implements GenericSource {
|
* public class InventoryMethods implements GenericSource {
|
||||||
* @LuaFunction( mainThread = true )
|
* \@LuaFunction( mainThread = true )
|
||||||
* public static int size(IItemHandler inventory) {
|
* public static int size(IItemHandler inventory) {
|
||||||
* return inventory.getSlots();
|
* return inventory.getSlots();
|
||||||
* }
|
* }
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of ComputerCraft - http://www.computercraft.info
|
||||||
|
* Copyright Daniel Ratcliffe, 2011-2021. Do not distribute without permission.
|
||||||
|
* Send enquiries to dratcliffe@gmail.com
|
||||||
|
*/
|
||||||
package dan200.computercraft.core.asm;
|
package dan200.computercraft.core.asm;
|
||||||
|
|
||||||
import dan200.computercraft.ComputerCraft;
|
import dan200.computercraft.ComputerCraft;
|
||||||
|
Loading…
Reference in New Issue
Block a user