mirror of
https://github.com/uutils/coreutils.git
synced 2025-07-07 13:35:00 +00:00
Use mozilla fluent linter (and remove mine)
This commit is contained in:
parent
3214c4d604
commit
eaa6d228b1
2 changed files with 33 additions and 3 deletions
28
.github/fluent_linter_config.yml
vendored
Normal file
28
.github/fluent_linter_config.yml
vendored
Normal 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
|
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue