This vale package contains the styles for the InnerSource Commons.
We use vale for two purposes:
- to spell check our content (we use American English)
- to keep a consistent style across all of our written resources (e.g. Patterns, Learning Path content, etc)
For now (May 2023) we only have a single custom rule (InnerSource.yml) that checks that "InnerSource" is spelled correctly. We expect to add further rules in the future.
- install vale
- add a
.vale.ini
to the root of your project with this content:
StylesPath = .github/vale
MinAlertLevel = suggestion
Packages = https://github.com/InnerSourceCommons/isc-styles/releases/latest/download/ISC.zip
[*]
BasedOnStyles = ISC
; If you don't want to check for the correct spelling of "InnerSource", comment this in
; ISC.InnerSource = NO
- Synchronize your vale packages:
$ vale sync
- Run vale on your files:
$ vale .
As you are downloading these styles via vale sync
to your local repository, you want to make sure that you don't commit them to your repository. Therefore add this entry to your .gitignore
:
# We want to ignore the vale StylesPath
.github/vale/*
If you want to add a custom Vocab for your repo (e.g. in .github/vale/Vocab/Base
), we recommend to use git add -f
to bypass the .gitignore entry. The vale documentation about Packages and VCS does mention a way to add an exception to the .gitignore
on a folder level, however we have not been able to get that to work.
When you starting using vale, you likely want to do a one time run as explained above to highlight all spelling/styles issues, and to fix them accordingly.
Besides that, we recommend to integrate vale into the regular CI runs of your project, to identify issues as they happen.
To do that, copy this vale.yml GitHub Action and configure it according to your needs.
Further information about this topic:
- https://redhat-documentation.github.io/vale-at-red-hat/docs/main/user-guide/using-vale-github-action/
- https://github.com/errata-ai/vale-action
We use a custom dictionary for American English (provided by Libre Office).
However it can still happen that a word that you consider correct, is flagged by vale as incorrect. This happen especially when you are using domain-specific words like hackathon
or similar that might be common in the software development domain but still not a proper word in the dicitonary sense :)
If in doubt, please check the spelling of a word against the Meriam Webster dictionary.
- We should try learn how others have used vale, and what of that we want to adopt for our purposes. For an example of another org see https://github.com/aiven/devportal/blob/main/.github/vale/README.rst