From 8ec7ed1080749bf2b4c0b17f23f9cd2c933dfdcd Mon Sep 17 00:00:00 2001 From: Lynette Miles Date: Fri, 9 May 2025 11:15:54 -0700 Subject: [PATCH] Vale: Add HeadingPunctuation test to error Signed-off-by: Lynette Miles --- CONTRIBUTING.md | 1 + .../configuring-fluent-bit/yaml/configuration-file.md | 2 +- vale-styles/FluentBit/HeadingPunctuation.yml | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6dec9e840..9427e2934 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -132,6 +132,7 @@ The following tests are at a `error` level and will prevent merging: - [Emdash](https://github.com/errata-ai/Google/blob/master/Google/EmDash.yml) - [Endash](https://github.com/errata-ai/Google/blob/master/Google/EmDash.yml) - [Exclamation](https://github.com/errata-ai/Google/blob/master/Google/Exclamation.yml) +- [HeadingPunctuation](https://developers.google.com/style/capitalization#capitalization-in-titles-and-headings) - [NonStandardQuotes](https://github.com/fluent/fluent-bit-docs/blob/master/vale-styles/FluentBit/NonStandardQuotes.yml): [Use standard quotes](https://developers.google.com/style/quotation-marks#straight-and-curly-quotation-marks). By default, Google Docs and Microsoft Word turn standard straight quotes into "smart" diff --git a/administration/configuring-fluent-bit/yaml/configuration-file.md b/administration/configuring-fluent-bit/yaml/configuration-file.md index 87e062799..4b2684cb8 100644 --- a/administration/configuring-fluent-bit/yaml/configuration-file.md +++ b/administration/configuring-fluent-bit/yaml/configuration-file.md @@ -240,7 +240,7 @@ This functionality is only exposed in YAML configuration and not in classic conf [Processor example](configuration-file.md#example-using-processors) -### Example: Using processors. +### Example: Using processors The following configuration file example demonstrates the use of processors to change the log record in the input plugin section by adding a new key "hostname" with the value "monox", and we use lua to append the tag to the log record. Also in the ouput plugin section we added a new key named "output" with the value "new data". All these without the need of routing the logs further in the pipeline. diff --git a/vale-styles/FluentBit/HeadingPunctuation.yml b/vale-styles/FluentBit/HeadingPunctuation.yml index 659260b27..bd8330809 100644 --- a/vale-styles/FluentBit/HeadingPunctuation.yml +++ b/vale-styles/FluentBit/HeadingPunctuation.yml @@ -2,7 +2,7 @@ extends: existence message: "Don't put a period at the end of a heading." link: 'https://developers.google.com/style/capitalization#capitalization-in-titles-and-headings' nonword: true -level: suggestion +level: error scope: heading action: name: edit @@ -10,4 +10,4 @@ action: - remove - '.' tokens: - - '[a-z0-9][.]\s*$' \ No newline at end of file + - '[a-z0-9][.]\s*$'