Add pre-commit to check syntax

This commit is contained in:
Marcello Teodori
2022-02-23 22:26:13 +01:00
parent ce7f300ed7
commit 157e261dde
2 changed files with 19 additions and 1 deletions

16
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,16 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: check-json
- id: check-xml
- id: check-merge-conflict
- id: fix-byte-order-marker
- id: mixed-line-ending
args: ['--fix=lf']
- id: end-of-file-fixer
- repo: https://github.com/sirosen/check-jsonschema
rev: 0.13.0
hooks:
- id: check-travis
- id: check-github-workflows

View File

@@ -1,4 +1,6 @@
--- import:
- source: Alfresco/alfresco-build-tools:.travis.pre-commit.yml@v1.1.9
language: java language: java
jdk: openjdk11 jdk: openjdk11
os: linux os: linux