Closed jonathonlacher closed 1 month ago
Ah, it is mentioned in the docs.
Make sure your rule files end in extension .yml. Do not end them in .yaml, as Vale will not detect them.
Is there an appetite to support .yaml
extension? I haven't fully looked at the codebase, but is the current barrier that it's just hard coded to look for .yml
?
Like here for example: https://github.com/errata-ai/vale/blob/871dafd1e24500cee9d8ad82b25d42a136bb2103/internal/check/action.go#L118
Check for existing issues
Environment
Mac Brew vale version 3.7.1
Describe the bug / provide steps to reproduce it
It seems that custom YAML Style files must have the extension
*.yml
.This tripped me up for a while; my style file I had was a
*.yaml
.Example
Given this config:
My
vale ls-config
:My rule:
With
.yaml
With rule:
styles/Hello/PreferedTerms.yaml
With
.yaml
With rule:
styles/Hello/PreferedTerms.yml
It couldn't find an existing issue for this, though surely someone else must have been in the same position as me.
It does seem like it would be useful to support both
.yaml
and.yml
.In RFC 9512 section 3.3 they do say: