Use mozilla fluent linter (and remove mine)

This commit is contained in:
Sylvestre Ledru 2025-06-28 18:49:15 +02:00
parent 3214c4d604
commit eaa6d228b1
2 changed files with 33 additions and 3 deletions

28
.github/fluent_linter_config.yml vendored Normal file
View file

@ -0,0 +1,28 @@
---
ID01:
enabled: true
exclusions:
messages: []
files: []
ID02:
enabled: true
min_length: 7
VC:
disabled: true
# Disable: # TE01: single quote instead of apostrophe for genitive (foo's)
TE01:
enabled: false
# TE03: single quotes ('foo')
TE03:
enabled: false
# TE04: Double-quoted strings should use Unicode " instead of "foo".
TE04:
enabled: false
# Disable: TE05: 3 dots for ellipsis ("...")
TE05:
enabled: false
# Should be fixed
VC01:
disabled: true
ID03:
enabled: true

View file

@ -19,10 +19,12 @@ repos:
args: [ --fix=lf ] args: [ --fix=lf ]
- id: trailing-whitespace - id: trailing-whitespace
- repo: https://github.com/uutils/pre-commit-fluent-hook - repo: https://github.com/mozilla-l10n/moz-fluent-linter
rev: v0.0.1 rev: v0.4.8
hooks: hooks:
- id: check-fluent - id: fluent_linter
files: \.ftl$
args: [--config, .github/fluent_linter_config.yml, src/uu/]
- repo: local - repo: local
hooks: hooks: