2021-04-28 20:24:27 +00:00
|
|
|
# See https://pre-commit.com for more information
|
|
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2021-11-20 23:20:11 +00:00
|
|
|
rev: v4.0.1
|
2021-04-28 20:24:27 +00:00
|
|
|
hooks:
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: check-merge-conflict
|
|
|
|
|
|
|
|
# Quick syntax checkers
|
|
|
|
- id: check-xml
|
|
|
|
- id: check-yaml
|
|
|
|
- id: check-toml
|
|
|
|
- id: check-json
|
|
|
|
exclude: "tsconfig\\.json$"
|
|
|
|
|
|
|
|
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
|
2021-11-20 23:20:11 +00:00
|
|
|
rev: 2.3.54
|
2021-04-28 20:24:27 +00:00
|
|
|
hooks:
|
|
|
|
- id: editorconfig-checker
|
|
|
|
args: ['-disable-indentation']
|
|
|
|
exclude: "^(.*\\.(bat)|LICENSE)$"
|
|
|
|
|
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: checkstyle
|
|
|
|
name: Check Java codestyle
|
|
|
|
files: ".*\\.java$"
|
|
|
|
language: system
|
|
|
|
entry: ./gradlew checkstyleMain checkstyleTest
|
|
|
|
pass_filenames: false
|
|
|
|
require_serial: true
|
2021-05-15 20:27:48 +00:00
|
|
|
- id: license
|
|
|
|
name: Check Java license headers
|
|
|
|
files: ".*\\.java$"
|
|
|
|
language: system
|
|
|
|
entry: ./gradlew licenseFormat
|
|
|
|
pass_filenames: false
|
|
|
|
require_serial: true
|
2021-04-28 20:24:27 +00:00
|
|
|
- id: illuaminate
|
|
|
|
name: Check Lua code
|
|
|
|
files: ".*\\.(lua|java|md)"
|
2022-09-11 13:11:32 +00:00
|
|
|
language: system
|
|
|
|
entry: ./gradlew lintLua -i
|
2021-04-28 20:24:27 +00:00
|
|
|
pass_filenames: false
|
|
|
|
require_serial: true
|
|
|
|
|
|
|
|
exclude: |
|
|
|
|
(?x)^(
|
|
|
|
src/generated|
|
|
|
|
src/test/resources/test-rom/data/json-parsing/|
|
2021-08-17 18:36:56 +00:00
|
|
|
src/testMod/server-files/|
|
2021-12-21 22:20:45 +00:00
|
|
|
config/idea/|
|
|
|
|
.*\.dfpwm
|
2021-04-28 20:24:27 +00:00
|
|
|
)
|