Vale CMS Need more than a rule playground? Explore
Home

Open source

Vale for open source

The README, the contributing guide, and the log a project keeps.

An open-source project is read first through a handful of files: a README that says what it is and how to install it, a contributing guide that tells a newcomer where to start, a changelog, and the commit log. Each has a published convention. The OpenSource package checks the README against Standard Readme and the contributing guide against The Good Docs Project and GitHub’s Open Source Guides, with a welcoming-language style on both; Changelog and Commits cover the rest.

Start with this config

Each file gets the style written for it, chosen by its name, and the README and the contributing guide share the welcoming-language rules. Add a [COMMIT_EDITMSG] section with Commits to check the log in a commit-msg hook.

.vale.ini

StylesPath = styles
MinAlertLevel = suggestion
Packages = OpenSource, Commits, Changelog

[**/README.md]
BasedOnStyles = Vale, Readme, Welcoming

[**/CONTRIBUTING.md]
BasedOnStyles = Vale, Contributing, Welcoming

[CHANGELOG.md]
BasedOnStyles = Changelog

Then download the packages it names and run Vale over the project:

$ vale sync
$ vale .

Formats

Where this kind of writing lives. Vale parses each one, so rules see the prose and skip the markup, the code, and the URLs.