NOTE: This project is neither maintained nor endorsed by Google.
This repository contains a Vale-compatible implementation of the Google Developer Documentation Style Guide (CC BY 4.0).
To get started, add the package to your configuration file (as shown below) and then run vale sync.
StylesPath = styles
MinAlertLevel = suggestion
Packages = Google
[*]
BasedOnStyles = Vale, GoogleSee Packages for more information.
/Google- The YAML-based rule implementations that make up our style.
/fixtures- The individual unit tests. Each directory should be named after a rule found in
/Googleand include its own.vale.inifile that isolates its target rule. /testdata- The expected Vale output for each fixture directory, one
<Rule>.ctfile per fixture. We use go-cmdtest to run Vale against each fixture and compare its output. Run the suite withgo test ./...; regenerate the expectations after an intentional change withgo test ./... -update. /coverage- How much of the style guide we implement, tracked topic by topic. Each key is a subtopic set to
trueorfalse, optionally followed by a comment naming the rules that implement it. Rungo test -v -run TestCoverage ./...to print the current figures; the same test fails if a named rule no longer exists, so a topic can't silently claim coverage it has lost.