Vale ".vale.ini StylesPath not found" in CI
Vale reads StylesPath from .vale.ini to locate its rule packages. If that directory is missing on the runner (styles never synced, or gitignored), Vale errors before checking any prose.
What this error means
Vale exits with an error such as "runtime error: could not find styles" or reports zero rules applied because the StylesPath directory does not exist in the CI checkout.
Error: could not find "StylesPath" (styles) relative to the config file
.vale.ini: StylesPath = stylesCommon causes
Styles are gitignored and never synced in CI
Teams often gitignore the synced styles/ folder. CI then has no styles because vale sync was not run.
StylesPath is relative to the wrong directory
The path in .vale.ini is resolved relative to the config file; running Vale from another directory or a shallow checkout can miss it.
How to fix it
Run vale sync before vale
- Add a
vale syncstep to download the packages listed in.vale.ini. - Then run
valeagainst your docs. - Cache the styles folder to speed subsequent runs.
- run: vale sync
- run: vale docs/Set StylesPath and Packages explicitly
Declare both so Vale knows where styles live and what to sync.
StylesPath = styles
Packages = Google, write-good
[*.md]
BasedOnStyles = Vale, GoogleHow to prevent it
- Always run
vale syncin CI whenstyles/is gitignored. - Keep
StylesPathrelative to.vale.iniand run Vale from that root. - Cache the synced styles directory keyed on
.vale.ini.