From f02dc84b61bc21b190e73fb1ae5e920b85a7c38e Mon Sep 17 00:00:00 2001 From: Jack Baldry Date: Wed, 20 Sep 2023 16:59:36 +0100 Subject: [PATCH] Ignore the inline token representing bold emphasis (#321) Means that writers no longer have to worry about spell checking in bold text which is used in our style to represent UI elements which are frequently spelled using non dictionary words. Signed-off-by: Jack Baldry --- .vale.ini | 2 +- vale/.vale.ini | 2 +- vale/.vale.jsonnet | 2 +- vale/Makefile | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.vale.ini b/.vale.ini index b9377f013..855c78f93 100644 --- a/.vale.ini +++ b/.vale.ini @@ -6,4 +6,4 @@ BasedOnStyles = Google, Grafana Google.Quotes = NO Google.Units = NO Google.WordList = NO -TokenIgnores = (+?) +TokenIgnores = (+?), \*\*[^\n]+\*\* diff --git a/vale/.vale.ini b/vale/.vale.ini index 15017bfb4..63973a7f7 100644 --- a/vale/.vale.ini +++ b/vale/.vale.ini @@ -6,4 +6,4 @@ BasedOnStyles = Google, Grafana Google.Quotes = NO Google.Units = NO Google.WordList = NO -TokenIgnores = (+?) +TokenIgnores = (+?), \*\*[^\n]+\*\* diff --git a/vale/.vale.jsonnet b/vale/.vale.jsonnet index 1b0d7b050..fd4a0d405 100644 --- a/vale/.vale.jsonnet +++ b/vale/.vale.jsonnet @@ -16,7 +16,7 @@ 'Google.WordList': 'NO', // https://github.com/errata-ai/vale/issues/288 - TokenIgnores: @'(+?)', + TokenIgnores: @'(+?), \*\*[^\n]+\*\*', }, }, }, diff --git a/vale/Makefile b/vale/Makefile index 960126804..cf6e2f743 100644 --- a/vale/Makefile +++ b/vale/Makefile @@ -9,7 +9,7 @@ MAKEFLAGS += --no-builtin-rule .PHONY: help help: ## Display this help help: - @awk 'BEGIN {FS = ": ##"; printf "Usage:\n make \n\nTargets:\n"} /^[a-zA-Z0-9_\.\-\/%]+: ##/ { printf " %-45s %s\n", $$1, $$2 }' $(MAKEFILE_LIST) + @awk 'BEGIN {FS = ": ##"; printf "Usage:\n make \n\nTargets:\n"} /^[a-zA-Z0-9_\.\-\/% ]+: ##/ { printf " %-45s %s\n", $$1, $$2 }' $(MAKEFILE_LIST) PODMAN := $(shell if command -v podman >/dev/null 2>&1; then echo podman; else echo docker; fi) GIT_ROOT := $(shell git rev-parse --show-toplevel)