2021-10-09 20:17:25 +03:00
|
|
|
repos:
|
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: check-translation-tag
|
|
|
|
name: Check newline characters in <translation> tag
|
|
|
|
entry: .github/workflows/check_translation_tag.py
|
|
|
|
language: script
|
2022-02-20 08:43:57 +03:00
|
|
|
exclude: |
|
|
|
|
(?x)^(
|
|
|
|
src/lang/.*
|
|
|
|
)$
|
2021-10-09 20:17:25 +03:00
|
|
|
types_or:
|
|
|
|
- ts
|
|
|
|
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks.git
|
2022-06-11 07:25:12 +03:00
|
|
|
rev: v4.3.0
|
2021-10-09 20:17:25 +03:00
|
|
|
hooks:
|
|
|
|
- id: check-json
|
|
|
|
name: Check JSON files
|
|
|
|
|
|
|
|
- id: check-yaml
|
|
|
|
name: Check YAML files
|
|
|
|
|
|
|
|
- id: fix-byte-order-marker
|
|
|
|
name: Check file encoding (UTF-8 without BOM)
|
|
|
|
exclude: |
|
|
|
|
(?x)^(
|
|
|
|
src/base/unicodestrings.h
|
|
|
|
)$
|
|
|
|
|
|
|
|
- id: mixed-line-ending
|
|
|
|
name: Check line ending character (LF)
|
|
|
|
args: ["--fix=lf"]
|
|
|
|
exclude: |
|
|
|
|
(?x)^(
|
|
|
|
compile_commands.json |
|
2023-01-16 14:55:44 +03:00
|
|
|
src/webui/www/private/css/lib/.* |
|
2021-10-09 20:17:25 +03:00
|
|
|
src/webui/www/private/scripts/lib/.*
|
|
|
|
)$
|
|
|
|
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
name: Check trailing newlines
|
|
|
|
exclude: |
|
|
|
|
(?x)^(
|
|
|
|
compile_commands.json |
|
|
|
|
configure |
|
2023-01-16 14:55:44 +03:00
|
|
|
src/webui/www/private/css/lib/.* |
|
2021-10-09 20:17:25 +03:00
|
|
|
src/webui/www/private/scripts/lib/.*
|
|
|
|
)$
|
|
|
|
exclude_types:
|
|
|
|
- svg
|
|
|
|
- ts
|
|
|
|
|
|
|
|
- id: trailing-whitespace
|
|
|
|
name: Check trailing whitespaces
|
|
|
|
exclude: |
|
|
|
|
(?x)^(
|
2023-01-16 14:55:44 +03:00
|
|
|
src/webui/www/private/css/lib/.* |
|
2021-10-09 20:17:25 +03:00
|
|
|
src/webui/www/private/scripts/lib/.*
|
|
|
|
)$
|
|
|
|
exclude_types:
|
|
|
|
- ts
|