mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-25 18:56:34 +03:00
0d376e7fd6
The javascript implementation of multi-select menu is from the source https://github.com/PhilippeMarcMeyer/vanillaSelectBox. It is licensed under the MIT License. Some minor fixes is made to pass the lint. Co-authored-by: brvphoenix <30111323+brvphoenix@users.noreply.github.com> Co-authored-by: ttyS3 <ttys3.rust@gmail.com> PR #18290.
62 lines
1.4 KiB
YAML
62 lines
1.4 KiB
YAML
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: check-translation-tag
|
|
name: Check newline characters in <translation> tag
|
|
entry: .github/workflows/check_translation_tag.py
|
|
language: script
|
|
exclude: |
|
|
(?x)^(
|
|
src/lang/.*
|
|
)$
|
|
types_or:
|
|
- ts
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks.git
|
|
rev: v4.3.0
|
|
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 |
|
|
src/webui/www/private/css/lib/.* |
|
|
src/webui/www/private/scripts/lib/.*
|
|
)$
|
|
|
|
- id: end-of-file-fixer
|
|
name: Check trailing newlines
|
|
exclude: |
|
|
(?x)^(
|
|
compile_commands.json |
|
|
configure |
|
|
src/webui/www/private/css/lib/.* |
|
|
src/webui/www/private/scripts/lib/.*
|
|
)$
|
|
exclude_types:
|
|
- svg
|
|
- ts
|
|
|
|
- id: trailing-whitespace
|
|
name: Check trailing whitespaces
|
|
exclude: |
|
|
(?x)^(
|
|
src/webui/www/private/css/lib/.* |
|
|
src/webui/www/private/scripts/lib/.*
|
|
)$
|
|
exclude_types:
|
|
- ts
|