Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/fluent_linter_config.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 5 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ repos:
args: [ --fix=lf ]
- id: trailing-whitespace

- repo: https://github.com/uutils/pre-commit-fluent-hook
rev: v0.0.1
- repo: https://github.com/mozilla-l10n/moz-fluent-linter
rev: v0.4.8
hooks:
- id: check-fluent
- id: fluent_linter
files: \.ftl$
args: [--config, .github/fluent_linter_config.yml, src/uu/]

- repo: local
hooks:
Expand Down
Loading