diff --git a/.gitignore b/.gitignore index 417f635afe798df5103d062fca402e2de0a1cfe1..b2c312728e6fdb06284b73b60c4afe9d631009f1 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,5 @@ CMakeUserPresets.json # VS Code devcontainer /.cpm nohup.out + +/Documentation/.vale diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c72109151d3abeb864866592a268063c02108521..3afa37f0f9e721c04d15f61ae0fc2043846e1b9f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -65,6 +65,6 @@ repos: files: \.(h|cpp)$ - id: vale name: Check spelling with vale - entry: bash -c 'if command -v vale &> /dev/null; then VALE_MIN_ALERT_LEVEL=error scripts/ci/helper/run-vale; else exit 0; fi' + entry: bash -c 'if command -v vale &> /dev/null; then vale sync; VALE_MIN_ALERT_LEVEL=error scripts/ci/helper/run-vale; else exit 0; fi' pass_filenames: false language: system diff --git a/.vale.ini b/.vale.ini index d4dd944ff32db716bf1404349739f3f6d7eab998..505d9885bd38b59383c9c29b62f26c681f5f1e00 100644 --- a/.vale.ini +++ b/.vale.ini @@ -1,6 +1,6 @@ # Vale configuration file. # -# For more information, see https://errata-ai.gitbook.io/vale/getting-started/configuration. +# For more information, see https://vale.sh/docs/topics/config StylesPath = Documentation/.vale Vocab = ogs MinAlertLevel = suggestion